serout code structure
Night-Hawk
Posts: 2
I have played enough to understand the serin and out commands (really really roughly) but I'm working on trying to control a zoom lens that uses RS-232 or TTL commands and I'm not sure how to write the code. I have attached the files that show packet and related info......the question is do I just put the command syntax into the data [outputdata] field?
Serout tpin, baudmode, {pace,} [outputdata]
Serout tpin, baudmode, {pace,} [8x 01 04 07 00 FF]
The second question is about flow control which the device does not support. Can I send out serout commands only and have the device work properly? I've done that wirelessly (sent basic serial commands through supplied software) using Scott's servo controller and an xbee but this may be a new ball game.
I'm sure I'm missing most of the puzzle. Help if you can and thanks for reading!
Serout tpin, baudmode, {pace,} [outputdata]
Serout tpin, baudmode, {pace,} [8x 01 04 07 00 FF]
The second question is about flow control which the device does not support. Can I send out serout commands only and have the device work properly? I've done that wirelessly (sent basic serial commands through supplied software) using Scott's servo controller and an xbee but this may be a new ball game.
I'm sure I'm missing most of the puzzle. Help if you can and thanks for reading!
Comments
The output data is separated by commas, in most cases:
Serout tpin, baudmode,[hex2 8x,hex2 01,hex2 04,hex2 07,hex2 00,hex2 FF]
Cheers,
That was exactly what I wanted to know, thanks Tom