Hi, I found on Simple Transport Plugin only 2 devices, I hope, there should be much more. Can you help me?
Hi, I found on Simple Transport Plugin only 2 devices, I hope, there should be much more. Can you help me?
This plugin is very new, so not much has been contributed. What are you trying to control?
Ron
No support through PM
I need to control Harman Kardon AVR via RS232, and LG TV via RS232, I have all specification for it. But Im beginner to write my own plugin.
Sure let's work on the TV first. Can you link the specs?
Ron
No support through PM
yes, thats wonderful, thank you!
Ok let's start with power on / off and mute on / off. Please import the attached .tcf, set the correct comport and then use the actions via the "Simple Transport/Send Predefined Action".
Ron
No support through PM
yes, it works, thank you. Is possible to write it via code?
Certainly. You'll need to transport ID, on my machine it's "{29810f4c-f89c-4183-a2a8-5f8d0c042624}" and if you open the predefined commands in the transport edit dialog you'll find the ID for the action. Power On is "{89a2fd0c-aadb-40c6-b815-5fd26a40956b}"
or if you want to work without predefined actionsCode:simpleTransport.sendPredefined("{29810f4c-f89c-4183-a2a8-5f8d0c042624}","{89a2fd0c-aadb-40c6-b815-5fd26a40956b}")
Code:simpleTransport.sendData("{29810f4c-f89c-4183-a2a8-5f8d0c042624}","ka 00 01\n")
Ron
No support through PM
yes, that I can understand. Next step, how can I:
- check acknowledgement after sending command? After command I need to wait to acknowledgement, on correct do nothing, on timeout and error generate message and event?
- generate text events parsed to receive data?
- set variable with status of device?
-is possible to receive data not with fixed lenght or terminator, but with timeout?
thank you very much
Martin
Well that is going beyond the Simple transportYou'll need a full lua object. All those things are possible.
Ron
No support through PM