Announcement

Collapse
No announcement yet.

Port 2 RS232 Question

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts


  • Port 2 RS232 Question

    Hi all... searched a bit and couldn't find my topic so sorry in advance if it's already been covered. I am trying to send two simple hex strings to a lighting controller. One for on and one for off. I have tried using hex to ascii converters and am having no luck. Here are the strings I need to send.... also... I have seen some add a carriage return?
    On-
    02 62 30 ed 5e 05 11 ff

    Off-
    02 62 30 ed 5e 05 13 00

    Any help is greatly appreciated.
    Side note.... Trying to control an Insteon Powerlinc.
    Last edited by rriss; 12-01-2014, 09:49 PM. Reason: Added note.


  • #2
    Which PLC?
    Also, many times the device on the other end will look for a CRLF, so if your code won't work, then try adding it.
    Circumstances don't determine who we are, they only reveal it.
    Jason Wolthuis

    Comment



    • #3
      In another thread you were using a CLICK, it that the case here?
      Do you need to literally send hex as ASCII, or does the device want binary data?, if the latter, look at the "embed ASCII code" option in the "SEND" box, (click the bar on the right to get values higher than $7F) to see how character constants are formatted, also click the "Help" button, the help is actually pretty good.

      Comment



      • #4
        Sorry for the lack of information.... PLC is a CLICK. Unsure right now of which model but it has 3 com ports and relay outputs. The hex strings I wrote in the original post are the exact strings pulled when running a port sniffer when original hardware is being used to send.

        Comment



        • #5
          Did the sniffer indicate voltage level and idle state?
          Insteon docs indicate 19,200 baud 8 data bits No parity 1 stop bit

          If you are using the 2413S, this is the port pinout from the quick start guide
          Pin 1: RS232 to PC pin 2 (Rx)
          Pin 2: Not connected
          Pin 3: TTL output (from PLM)
          Pin 4: Not connected
          Pin 5: Not connected
          Pin 6: TTL input (from PLM)
          Pin 7: Common ground
          Pin 8: RS232 from PC pin 3 (Tx)
          Attached Files
          Last edited by kewakl; 12-02-2014, 06:20 AM. Reason: port

          Comment

          Working...
          X