Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Problem interfacing RF modem through USB port in Linux

Status
Not open for further replies.

ponnus

Full Member level 2
Full Member level 2
Joined
Mar 17, 2011
Messages
142
Helped
8
Reputation
16
Reaction score
8
Trophy points
1,298
Location
Cochin, INDIA
satheeshchalackal.blogspot.in
Activity points
2,226
Hai,
Pardon me if this is not the right forum to ask this question.

I'm working on RHEL6 Linux platform. I've a 24Xstream RF modem. I've interfaced it with linux usb port and able to communicate with the modem.

I've written a program to receive data from another RF modem. Also, added the linux user to the group dialout, so that the program has the permission to access usb port ttyUSB0.

Everything is working fine and the RF modem is receiving correct data...except for the first time.....i.e,When I connect the modem to the port for the first time and run the program, the modem is responding to all AT commands. But it receives only 'zeros' from the other RF module........

But,if I send a command to the modem through terminal and then again run the program,......it is reciving correct data from the other RF modem....

Thanks
 

Hai,

My problem is solved. I've checked the signalling of uart.
I was setting 9600 baudrate for uart, but when I connect the modem for the first time, my program was sending data at 115200 baud rate. I don't why this happens?

The modem has an IC to convert the usb data to serial data. I've configured the baudrate of the IC to 9600. So, at whatever baudrate the system tries to communicate with the modem, the IC converts it to 9600 baud rate. Now it is working from my program...

But still ,I don't understand, why the system sends at 115200 baudrate, even if I set uart at 9600.
Thanks

- - - Updated - - -
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top