Irserver's options on Linux

All LINUX related questions (Installation & usage)

Moderator: marcus

Irserver's options on Linux

Postby IR_man » Sun 11. Jul 2010, 00:09

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!
IR_man
 
Posts: 20
Joined: Tue 6. Jul 2010, 09:34

Re: Irserver's options on Linux

Postby IRTrans » Sun 11. Jul 2010, 08:18

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
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: Irserver's options on Linux

Postby IR_man » Sun 11. Jul 2010, 15:30

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?
IR_man
 
Posts: 20
Joined: Tue 6. Jul 2010, 09:34

Re: Irserver's options on Linux

Postby IRTrans » Sun 11. Jul 2010, 17:20

No, all that is correct. You must be doing something else wrong.

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

Re: Irserver's options on Linux

Postby IR_man » Wed 14. Jul 2010, 16:10

I think the problem is the user's right of writing the file.
IR_man
 
Posts: 20
Joined: Tue 6. Jul 2010, 09:34

Re: Irserver's options on Linux

Postby IR_man » Wed 14. Jul 2010, 19:16

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?
IR_man
 
Posts: 20
Joined: Tue 6. Jul 2010, 09:34

Re: Irserver's options on Linux

Postby IRTrans » Wed 14. Jul 2010, 19:46

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
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: Irserver's options on Linux

Postby IR_man » Wed 14. Jul 2010, 20:34

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?
IR_man
 
Posts: 20
Joined: Tue 6. Jul 2010, 09:34

Re: Irserver's options on Linux

Postby IRTrans » Wed 14. Jul 2010, 21:03

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
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: Irserver's options on Linux

Postby IR_man » Thu 15. Jul 2010, 08:12

Thank so much IRTrans, I've got it :) . The problem is the baudrate is not good (I used 9600)
IR_man
 
Posts: 20
Joined: Tue 6. Jul 2010, 09:34


Return to LINUX

Who is online

Users browsing this forum: No registered users and 7 guests

cron