Page 1 of 3

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

PostPosted: Tue 18. Dec 2012, 13:12
by reiniertc
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?

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

PostPosted: Tue 18. Dec 2012, 14:20
by eric
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

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

PostPosted: Tue 18. Dec 2012, 21:26
by reiniertc
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?

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

PostPosted: Tue 18. Dec 2012, 22:05
by IRTrans
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

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

PostPosted: Tue 18. Dec 2012, 22:21
by reiniertc
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

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

PostPosted: Tue 18. Dec 2012, 22:38
by reiniertc
please ignore that last part: It's solved (my mistake in beleiving the entire database gets flashed when I press the flash button)

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

PostPosted: Wed 19. Dec 2012, 03:00
by IRTrans
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

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

PostPosted: Wed 19. Dec 2012, 08:32
by reiniertc
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?!

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

PostPosted: Wed 19. Dec 2012, 09:08
by eric
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

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

PostPosted: Wed 19. Dec 2012, 11:15
by reiniertc
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