More Serial Questions

steve holmes's picture

Hi everyone I am trying to use the kineme serial plugin to control a panasonic video mixer. I have the commands but they seem to be a combination of hex and ascii, is there a way of combining these to be sent using the kineme plugin or do they have to be converted to ascii or hex. I also have the converted hex strings but seem to be unable to send them as a sequence with a hex value per byte. Just wondering if anyone has any ideas. Cheers for the help Steve

cwright's picture
Re: More Serial Questions

Currently, there's no way to send hex strings, unless you convert them to ASCII first (which isn't always possible).

Adding support for hex strings wouldn't be particularly difficult though, and would solve a bunch of related problems with the serial patch pretty elegantly -- would you be open to commissioning such a project?

Just kidding -- use the Binary Input input port, with raw hex ("feedface"), and it'll send binary data (any hex string). Ascii stuff needs to get converted to hex as well (a simple bit of javascript will do the trick)

steve holmes's picture
Re: More Serial Questions

If I use the binary input does it send each hex pair as a byte, I am trying to send 02 56 4d 41 3a 31 39 32 03 which should send as 9 bytes (and be <02>VMA:192<03>). If it does do this I am a bit stumped as to why it is not working. Cheers Steve

cwright's picture
Re: More Serial Questions

it will send each pair as a byte. however, you shouldn't use spaces between the pairs ("02564d", not "02 56 4d"), otherwise it'll send incorrect data.