@Jan, hi! I thought I asked you directly this time.
I’m still trying to get my head around switching snapshots with an arduino-based Control Chain device.
My progress so far:
- Working Arduino-based prototype on a breadboard with two button-type actuators
- CC_MODE_TOGGLE works as a charm on both actuators, no issues there, I parse and output assignment parameters on an LCD in an event callback func
- I created a group out of these two buttons, with CC_MODE_MOMENTARY | CC_MODE_OPTIONS | CC_MODE_GROUP (and | CC_MODE_REVERSE for one of the buttons)
- Assigned the group to snapshot change (Snapshots → Load/Manage → Assign All → Control Chain → name of the group)
- I can track the debugging information in the ssh
Now, when I scroll through the snapshots with the buttons, it seems that my Dwarf performs unassignment and assignment at every update from an activator (see the example from the terminal below).
The question is: is it the expected behaviour (unassignment/assignment)?
Also, sometimes switching of snapshots sort of stalls, and the terminal shows [cc-lib] device timeout (device id: 1)
, as if the devices go out of sync, or don’t keep up with the changes, or something.
Any thoughts what could be the cause of such behaviour?
I’m trying to debug momentary_process
routine in actuator.c
, but all seems to be smooth there; could it be something on the MOD’s side?
---
[cc-lib] updates received (device_id: 1, count: 1)
[cc-lib] unassignment received (id: 0, ret: 0)
[cc-lib] requesting unassignment to device (id: 0)
SEND: device: 1, command: unassignment, data size: 1
data: 00
text:
---
RECV: device: 1, command: unassignment, data size: 0
data:
text:
---
[cc-lib] unassignment done (id: 0)
[cc-lib] assignment received (id: 0)
[cc-lib] requesting assignment to device (id: 0)
SEND: device: 1, command: assignment, data size: 79
data: 00 01 0A 50 45 44 41 4C 42 4F 41 52 44 00 00 00 40 00 00 00 00 00 00 40 40 00 00 00 00 24 00 00
00 02 00 04 4E 4F 4E 45 03 07 44 45 46 41 55 4C 54 00 00 00 00 08 31 3A 53 4F 4E 47 20 41 00 00
80 3F 08 32 3A 53 4F 4E 47 20 42 00 00 00 40
text: PEDALBOARD@@@$NONEDEFAULT1:SONG A?2:SONG B@
---
RECV: device: 1, command: assignment, data size: 0
data:
text:
---
[cc-lib] assignment done (id: 0)