Posted: Wednesday Nov 3rd, 2010 10:17 pm |
|
1st Post |
cab123
Member
Joined: | Saturday Oct 3rd, 2009 |
Location: | Coimbra, Portugal |
Posts: | 25 |
Status: |
Offline
|
back to top
|
Hi,
I've recently bought a Evaluation Kit where the UCM included was a UCM/USB.
I'm in the process of starting to code the necessary serial protocol messages to interface with 3rd party hardware based on arduino/router with openwrt however i do not seem to get serial out of the COM port that is installed when i plug USB on my PC.
As per the documentation i have two possibilities, getting the RS232 or the Ethernet daughterboard on a UCM05.
Wanting to access the serial protocol,
- Is there any way to make it work with the USB connection?
- Can i use ethernet to interface directly to my system without any PCs?
- Is RS232 is my only option?
Best regards
|
Posted: Thursday Nov 4th, 2010 04:09 am |
|
2nd Post |
ident
Administrator
Joined: | Wednesday Aug 9th, 2006 |
Location: | Singapore |
Posts: | 3493 |
Status: |
Offline
|
back to top
|
I am not sure how the UCM is to be connected to the 3rd party device. What interface does this device have? Rs232 or Ethernet? IF Rs232 then you should use RS232 to connect directly to it. Note that plug in modules RS232M (male) and RS232 F (female) versions are available so the straignt Rs232 cable can be used.
See http://www.cytech.biz/rs232_plug_in_female.html?category_id=75 and http://www.cytech.biz/rs232_plug_in_male.html?category_id=75
The UCM will communicate through the virtual serial port (COM) on the PC, but are you connecting to a PC or third party device? If third party device then you should not be connecting to a PC
|
Posted: Thursday Nov 4th, 2010 11:11 am |
|
3rd Post |
cab123
Member
Joined: | Saturday Oct 3rd, 2009 |
Location: | Coimbra, Portugal |
Posts: | 25 |
Status: |
Offline
|
back to top
|
I have both options open for implementation and i would prefer ethernet. Can Ethernet work directly connected to a embbeded linux device or a TCP/IP implementation stack on a microcontroller?
|
Posted: Friday Nov 5th, 2010 02:21 am |
|
4th Post |
ident
Administrator
Joined: | Wednesday Aug 9th, 2006 |
Location: | Singapore |
Posts: | 3493 |
Status: |
Offline
|
back to top
|
UCM/Ethernet can work directly connected to another eithernet port with a crossed cable. It would be better to connect both to a switch or hub and connect by the IP address and Port
|
Posted: Sunday Nov 7th, 2010 06:00 pm |
|
5th Post |
cab123
Member
Joined: | Saturday Oct 3rd, 2009 |
Location: | Coimbra, Portugal |
Posts: | 25 |
Status: |
Offline
|
back to top
|
Hi,
Thank you, i've figured out how to connect with the UCM/USB in ubuntu 10.10:
- connect the USB and get the output of "dsmeg" to get the device
[ 5047.433972] usb 2-5: FTDI USB Serial Device converter now attached to ttyUSB0
Now with putty just insert the following options (for this example):
under session:
Serial Line: /dev/ttyUSB0
Speed: 9600
under Terminal:
Implicit CR in every LF on
Implicit LF in every CR on
Local Echo -> Force On
Local Line Editing -> Force On
Under Connection->Serial
Speed: 9600
Data Bits: 8
Stop Bits: 1
Parity: None
Flow Control: None
connect and log in:
LI1234
if there is a response, the connection is set up properly.
Thanks!
Best regards
|
Posted: Monday Nov 8th, 2010 11:38 am |
|
6th Post |
ident
Administrator
Joined: | Wednesday Aug 9th, 2006 |
Location: | Singapore |
Posts: | 3493 |
Status: |
Offline
|
back to top
|
That good, please let us know how it works out
|
|