Page 1 of 4 123 ... LastLast
Results 1 to 10 of 33

Thread: Simple transport plugin - Import from WEB - only 2 devices

  1. #1
    Join Date
    Nov 2015
    Posts
    107

    Default Simple transport plugin - Import from WEB - only 2 devices

    Hi, I found on Simple Transport Plugin only 2 devices, I hope, there should be much more. Can you help me?
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	2015-11-18 (1).png 
Views:	44 
Size:	4.1 KB 
ID:	6936  

  2. #2
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,553

    Default

    This plugin is very new, so not much has been contributed. What are you trying to control?
    Ron
    No support through PM

  3. #3
    Join Date
    Nov 2015
    Posts
    107

    Default

    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.

  4. #4
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,553

    Default

    Sure let's work on the TV first. Can you link the specs?
    Ron
    No support through PM

  5. #5
    Join Date
    Nov 2015
    Posts
    107

    Default

    yes, thats wonderful, thank you!
    Attached Files Attached Files

  6. #6
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,553

    Default

    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".
    Attached Files Attached Files
    Ron
    No support through PM

  7. #7
    Join Date
    Nov 2015
    Posts
    107

    Default

    yes, it works, thank you. Is possible to write it via code?

  8. #8
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,553

    Default

    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}"

    Code:
    simpleTransport.sendPredefined("{29810f4c-f89c-4183-a2a8-5f8d0c042624}","{89a2fd0c-aadb-40c6-b815-5fd26a40956b}")
    or if you want to work without predefined actions

    Code:
    simpleTransport.sendData("{29810f4c-f89c-4183-a2a8-5f8d0c042624}","ka 00 01\n")
    Ron
    No support through PM

  9. #9
    Join Date
    Nov 2015
    Posts
    107

    Default

    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

  10. #10
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,553

    Default

    Well that is going beyond the Simple transport You'll need a full lua object. All those things are possible.
    Ron
    No support through PM

Page 1 of 4 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •