IRT-WiFi-DB: how do I send RS232 commands?!

Ethernet specific questions and answers - IRTrans LAN, LAN Controller devices

Moderator: marcus

IRT-WiFi-DB: how do I send RS232 commands?!

Postby reiniertc » Tue 18. Dec 2012, 13:12

I’m a newbie with Irtrans products and have bought the IRT-WiFi-DB with the optional RS-232 bi-directional port.

I have two devices I want to control: a samsung TV via IR and a denon S302 receveiver with a rs232 port.
Controlling the TV with IR was fairly easy, but sending RS232 commands to my Denon seems to be a pain in the…

My goal is to send a rs232 command to the irtrans (preferrably via the browser using the htttp-api, thus without IR-server). Commands are formatted like this : PWON <CR>
I’ve read all the instructions, but can’t seem to find:
(a) how I can store a rs232 command in the IRDB, just like a IR command
(b) how I can execute a rs232 command via the http command line.

Can anyone give me any pointers to how I can setup my communication with the denon receiver?
reiniertc
 
Posts: 18
Joined: Sun 16. Dec 2012, 11:56

Re: IRT-WiFi-DB: how do I send RS232 commands?!

Postby eric » Tue 18. Dec 2012, 14:20

Hi,

creating a RS232 command is very similar to learning a "regular" IR command:

1.) open the "learn IR command" dialogue
2.) select your remote and type in the name of the command
3.) click "add RS232 command"
4.) enter the RS232 command string. For example: To send "PWON<CR>" type: "PWON\r" - "\r" creates a carriage return, "\n" newline
5.) access this command just like an IR command through any client

regards,

Eric
eric
Administrator
 
Posts: 157
Joined: Mon 22. Oct 2012, 10:05

Re: IRT-WiFi-DB: how do I send RS232 commands?!

Postby reiniertc » Tue 18. Dec 2012, 21:26

thanks! I can see the commands in the .rem file :-)

But somhow my denon doesn't respond to any command.
I've put the diagnostics in debug mode, but can't see if the string is send.
Is there any way to monitor if the string is actually send?
reiniertc
 
Posts: 18
Joined: Sun 16. Dec 2012, 11:56

Re: IRT-WiFi-DB: how do I send RS232 commands?!

Postby IRTrans » Tue 18. Dec 2012, 22:05

Sending will surely work. Did you check the pin-out of the connector? The RS232 cable has the same pin-out as a RS232 port on a PC.

Marcus
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: IRT-WiFi-DB: how do I send RS232 commands?!

Postby reiniertc » Tue 18. Dec 2012, 22:21

hi Marcus,
I'm not sure what you mean by "checking the pin out of the connector".

the denon has these specs:
DB-9pin female type, slave straight connection (DCE type)

I'm using the cable I ordered with the irtrans


At the same time, I keep getting "Error Sending IR Code: Remote Control not found" errors when trying to perform an action via my browser. And I know for sure I have flashed my remotes to the module
reiniertc
 
Posts: 18
Joined: Sun 16. Dec 2012, 11:56

Re: IRT-WiFi-DB: how do I send RS232 commands?!

Postby reiniertc » Tue 18. Dec 2012, 22:38

please ignore that last part: It's solved (my mistake in beleiving the entire database gets flashed when I press the flash button)
reiniertc
 
Posts: 18
Joined: Sun 16. Dec 2012, 11:56

Re: IRT-WiFi-DB: how do I send RS232 commands?!

Postby IRTrans » Wed 19. Dec 2012, 03:00

You will need to check if the pin-out matches that of the Denon. Our device has got the same pin-out as a PC.

Marcus
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: IRT-WiFi-DB: how do I send RS232 commands?!

Postby reiniertc » Wed 19. Dec 2012, 08:32

the denon requires a straight cable, so I presume the irtrans cable can be directly connected to the denon.
I find "RS232" options all over the software: in the setup (checked!), as well as in the device database (checked!) and the command within the remote (checked!)

I've got the feeling that I am overlooking something: but what can it be?!
reiniertc
 
Posts: 18
Joined: Sun 16. Dec 2012, 11:56

Re: IRT-WiFi-DB: how do I send RS232 commands?!

Postby eric » Wed 19. Dec 2012, 09:08

probably yes, but still - please check the pinout of your denon receiver, if the command physically arrives at the wrong pin we will be searching the error for ages...
If you are not sure how the connection has to look like, copy the relevant part of the denon manual here, we will double check.

Also: In the device settings: Did you select the correct Baud Rate, Number of Data Bits, Stop Bits, Parity?
The options of the device database dialogue (on remote level as well as command level) are only relevant for receiving, they can be left at default values.

regards,

Eric
eric
Administrator
 
Posts: 157
Joined: Mon 22. Oct 2012, 10:05

Re: IRT-WiFi-DB: how do I send RS232 commands?!

Postby reiniertc » Wed 19. Dec 2012, 11:15

ah, I get what you mean!

Denon:
1. GND
2. TxD
3. RxD
4.
5. Common (GND)
6.
7.
8.
9.

9600bps, 8bit, no parity control, 1 start bit, 1 stop bit, half duplex
reiniertc
 
Posts: 18
Joined: Sun 16. Dec 2012, 11:56

Next

Return to Ethernet

Who is online

Users browsing this forum: Bing [Bot] and 13 guests

cron