LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-05-2009, 06:01 AM   #16
solo0805
LQ Newbie
 
Registered: Jul 2009
Posts: 10

Original Poster
Rep: Reputation: 0

- rf module
http://devicemart.co.kr/mart7/upload...0509151232.pdf

- usb-uart
https://www.silabs.com/Support%20Doc...ocs/cp2102.pdf

but i use usb-uart module(made by korean company).
 
Old 08-05-2009, 07:28 AM   #17
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by solo0805 View Post
but i use usb-uart module(made by korean company).
Datasheet or specs ?
 
Old 08-05-2009, 10:09 AM   #18
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Well, your system is not nearly as simple as it seemed from your original post. There are numerous links in the chain between two systems, all of which are potential problems.
To diagnose, I would start by using loopback connectors on all of the places where there is a Tx and Rx pin on a single device. Send data, and confirm that the same data can be read back. Use a program that is known to work correctly on whatever platform it is running.
There is a whole host of potential problems with the RF transceiver interface(s). There is a considerable amount of programming of the RF transceiver(s) that is required, and you have not shown any of this code. I guess that you have written some driver code that you embedded in your ARM kernel? Is there any vendor-supplied linux device driver fro you RF modules? The datasheet shows two or three modes of operation; which mode are you using? The RF devices behave very much like a telephone-line modem, where you can send commands to and receive replies from the modem itself. Have you succeeded in communicating with the RF devices at such a level?
It appears that there is no RS-232 signaling whatsoever in your system. A 60 cm cable carrying 3.3V CMOS logic sounds like a significant probability of error. I assume that the cable(s) to which you refer are between the RF modems and the USB/UART dongle. Can you reduce this cable length to something much less, like 2 or 3 cm? What type of cable and connectors are you using? The fact that you have reduced or eliminated the error rate by reducing the bitrate would be consistent with cross-talk or other cable-induced errors.
--- rod.
 
Old 08-05-2009, 10:49 AM   #19
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
After checking with the loopback connectors, do a direct connection of both uarts at the 'RS232 side' with (as said by theNbomr) the shortest possible cable and check if it works.
Next you can try a longer length if required and test thoroughly (spit data for a day and verify the result).
And the last step will be to add the rf devices in the chain (again with the shortest possible cable).
 
Old 08-05-2009, 11:49 AM   #20
solo0805
LQ Newbie
 
Registered: Jul 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Datasheet or specs ?
i can't understand what mean.

uart-usb connector is consist of the cp201x chip.
one company made that connector.
but that connector's manual is written by korean.
then i found core chip i think(there is no chip name in korean manual..)

http://devicemart.co.kr/mart7/mall.p...=view&no=20360
if you join this site, there is connector image.

--

then,

oh i didn't think loopback connector.

it's a great idea.

i need to use that.

Quote:
The datasheet shows two or three modes of operation; which mode are you using? The RF devices behave very much like a telephone-line modem, where you can send commands to and receive replies from the modem itself. Have you succeeded in communicating with the RF devices at such a level?
It appears that there is no RS-232 signaling whatsoever in your system. A 60 cm cable carrying 3.3V CMOS logic sounds like a significant probability of error. I assume that the cable(s) to which you refer are between the RF modems and the USB/UART dongle. Can you reduce this cable length to something much less, like 2 or 3 cm? What type of cable and connectors are you using? The fact that you have reduced or eliminated the error rate by reducing the bitrate would be consistent with cross-talk or other cable-induced errors.
in this part, i don't setting specific option. maybe common option is not address mode(all modem received in rage)

and i didn't use command protocol. i just use command protocol in X-CTU(setting program made by zigbee company)



i check that, and reply.

thanks you. this site is really wonderful.
 
Old 08-05-2009, 12:48 PM   #21
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by solo0805 View Post
i can't understand what mean.

uart-usb connector is consist of the cp201x chip.
one company made that connector.
but that connector's manual is written by korean.
then i found core chip i think(there is no chip name in korean manual..)
If it's a module, it might contain more than only the chip (usb-to-serial converter) but e.g. also line drivers. That is why I like to see the spec sheet. It might also show if it uses an external power supply or that it pulls power from the usb connector which might be another possible cause for the problem that you're experiencing (as you're saying that it works the one way but not the other if I understood your initial post correctly).

It's quite unusual for an usb-to-serial converter not to have the appropriate line drivers (in this case RS232) because it makes it a product for a very small market. I mean, I can not use it to connect 2 PCs, one with USB and one with serial port.

I did follow your link hoping for a useful 'english' button. And unfortunately my korean is far worse (read non-existing) than your english so it indeed did not ring any bells.
 
Old 08-05-2009, 01:46 PM   #22
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Wim Sturkenboom, if you look closely at the images in the page at solo0805's link to devicemart.co.kr, you can see that there are only a couple of passive components and connectors, as well as the main chip, on the USB/UART dongle. I think solo0805 is correct about the absence of line drivers. I agree that this makes the device a very small niche market product, but it does appear to be what solo0805 describes.
--- rod.

Last edited by theNbomr; 08-05-2009 at 01:47 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using USB<->Serial and serial gender changer to transmit data between computers JoeyAdams Linux - Hardware 4 04-17-2008 05:15 AM
problem in invoking interrupt handler for serial port in 2.4.21-ELsmp Redhat linux mrinal mishra Linux - Kernel 1 08-15-2006 02:52 PM
Problem in Configuring Serial Port based UPS on Linux AS 4 nadravian Linux - Hardware 0 06-08-2006 12:03 AM
Problem Programming Serial Ports in Linux 7.2 esi-eric Linux - Hardware 1 07-19-2004 12:03 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration