Hello,
I'm trying to interface my own emulator to the blinkenlights panel of the PiDP11.
Sofar I can talk to portmap (to find the udp-port of the process) and can request a list of panels and controls. Unfortunately setting the state of the lamps fails.
When I send a blinkenlight_api_setpanel_controlvalues of all the outputs I found, I get:
[5:20:23.976] blinkenlight_api_setpanel_controlvalues(i_panel=0)
[5:20:23.976] Error in blinkenlight_api_setpanel_controlvalues():
[5:20:23.976] Sum (Panel[11/70].outputcontrols.value_bytelen) is 19, but 16 values were transmitted.
This is a bit strange because I only get 16 outputs when I invoke blinkenlight_api_getpanelinfo:
Anyone got an idea what might be going wrong here?
Sofar I can talk to portmap (to find the udp-port of the process) and can request a list of panels and controls. Unfortunately setting the state of the lamps fails.
When I send a blinkenlight_api_setpanel_controlvalues of all the outputs I found, I get:
[5:20:23.976] Sum (Panel[11/70].outputcontrols.value_bytelen) is 19, but 16 values were transmitted.
This is a bit strange because I only get 16 outputs when I invoke blinkenlight_api_getpanelinfo:
Fwiw: got it to work!
Apparently every byte for the setcontrols message is encoded in a seperate word (32 bit). And some other stuff.
Am now integrating it in the main code of my emulator. Stay tuned! :-D