Home AMX User Forum NetLinx Studio
Options

Help with DirecTV HR21P rs-232

I'm having a little trouble communicating with a DirecTV HR21P receiver via rs-232. This particular receiver has an actual serial port for control, as opposed to using the USB-to-serial adapter method.

I am using the HR21P with an NI-4100. When I attempt to issue commands to the HR21P via telnet and the SEND_STRING command, I see the TX/RX lights light up, but the receiver doesn't respond at all. Does anyone have a example SEND_STRING command for the HR21P (or similar) that I could use to double check my formatting?

I'm a new AMX programmer, so any help is appreciated. Thanks.

Comments

  • Options
    ondrovicondrovic Posts: 217
    Have you verified that the cable is the correct pinout for the device?
    Why don't you post the code so that we may look at it
  • Options
    I've tried both of these.
    SEND_STRING 5001:7:1,"'$FA','$81'"
    SEND_STRING 5001:7:1,"'$FA,$81'"
  • Options
    ondrovicondrovic Posts: 217
    have you set the baud rate for the device?

    Data_Event[Sat]
    {
    Online:
    {
    Send_Command Data.Device,"'SET BAUD 9600,N,8,1'"
    }
    }
  • Options
    AMXJeffAMXJeff Posts: 450
    kingpikey wrote: »
    I've tried both of these.
    SEND_STRING 5001:7:1,"'$FA','$81'"
    SEND_STRING 5001:7:1,"'$FA,$81'"


    // Try this... You are using single quotes around the hex bytes, that is not correct. Double quotes on the outside is all you need.

    SEND_STRING 5001:7:1,"$FA,$81"
  • Options
    Got it guys, had neglected to include the:
    Data_Event[Sat]
    {
    Online:
    {
    Send_Command Data.Device,"'SET BAUD 9600,N,8,1'"
    }
    }

    ondrovic mentioned. Plus, SEND_STRING 5001:7:1,"$FA,$81" as AMXJeff suggested, worked great.

    Thanks!
Sign In or Register to comment.