Page 1 of 1

Irserver's options on Linux

PostPosted: Sun 11. Jul 2010, 00:09
by IR_man
I've started the irserver on Debian Lenny by using the command :
./irserver -daemon -<option> dev/ttyS0
where <option> is hexfile or hexdump or codedump but nothing happens. Could anybody explains how to use these options on Linux? Thanks!

Re: Irserver's options on Linux

PostPosted: Sun 11. Jul 2010, 08:18
by IRTrans
The hexdump info is Debug info.

Therefore you need to set the loglevel to 4 (-loglevel 4) to see that info:

./irserver -daemon -hexdump -loglevel 4 dev/ttyS0

When you are using the -daemon mode all the output is sent to the file "irserver.log" by default.

IRTrans

Re: Irserver's options on Linux

PostPosted: Sun 11. Jul 2010, 15:30
by IR_man
Hello IRTrans,

I used this command to run the server :

./irserver -daemon -hexdump -loglevel 4 dev/ttyS0

then I started the IR client:
./irclient localhost

I used the menu of the IR Client to select remote, to learn and to send the IR codes. I could have my own .rem file in the remotes folder. But I didn't see any change in the irserver.log. Am i wrong at any step?

Re: Irserver's options on Linux

PostPosted: Sun 11. Jul 2010, 17:20
by IRTrans
No, all that is correct. You must be doing something else wrong.

IRTrans

Re: Irserver's options on Linux

PostPosted: Wed 14. Jul 2010, 16:10
by IR_man
I think the problem is the user's right of writing the file.

Re: Irserver's options on Linux

PostPosted: Wed 14. Jul 2010, 19:16
by IR_man
Hello IRTrans,

While I could not create log file, I have captured the frame sent by irserver via COM port for a certain command like that:
C9 E9 42 42 42 08 42 42 C2 84 42 63
But when I use the terminal to resend this frame, it does work. The IRTrans RS232 return an FF cod but it does not emit the IR Tx LED.

P/S: I have only this solution to hope that it works, I can not buy another module (Media Controller) because of by limited budget and time for this project. Could you please help me IRTrans?

Re: Irserver's options on Linux

PostPosted: Wed 14. Jul 2010, 19:46
by IRTrans
You have captured BINARY data shown as Hex bytes.

You will need to send that binary data (and not the Hex printout). That is not possible using a terminal programm.

Perhaps you should ask someone who has a bit of experience with stuff like that.

IRTrans

Re: Irserver's options on Linux

PostPosted: Wed 14. Jul 2010, 20:34
by IR_man
I myself have experience with Hex and Bit data. I use Bray Terminal Tool to send and receive data via serial port. I often do that in my job so I know exactly how to send binary hex (not ascii hex).

For ex., in Bray Terminal, to send a value 0xC9 out to the serial port, I should format my data $C9.

I have even reproduced the same data frame sent by the irserver software. But it does not work until now. Do you have other idea?

Re: Irserver's options on Linux

PostPosted: Wed 14. Jul 2010, 21:03
by IRTrans
When you are sending the correct data that will surely work - the irserver is not doing anything different.

The return code by the IRTrans should be either "O" for OK or "E" for Error.

If it is not working there must be an error on your side:

- Wrong baudrate (that would explain the 0xff return code). Baudrate setting should 38400,N,8,1
- Wrong data sample or wrong send mode (with blanks or wrong hex data)

IRTrans

Re: Irserver's options on Linux

PostPosted: Thu 15. Jul 2010, 08:12
by IR_man
Thank so much IRTrans, I've got it :) . The problem is the baudrate is not good (I used 9600)