problem with serial connection

Xbee projects like the adapter, xbee tutorials, tweetawatt/wattcher, etc. purchased at Adafruit

Moderators: adafruit_support_bill, adafruit

problem with serial connection

Postby lab » Mon Apr 16, 2012 10:42 pm

I am having trouble establishing a connection between the XBee Series 1 and my computer.

Here are the steps I took:

I soldered/assembled the adapter and affixed the XBee module. Using the FTDI cable, I connected it to my computer and established that the green LED was blinking as it should. I disconnected it.

Since I run Linux, I installed Wine on my Ubuntu 11.10 system. Under home/.wine/dosdevices I ran "ln -s /dev/ttyUSB0 COM5", "ln -s /dev/tty USB1 COM6" to link my serial ports (tty) to Windows' COM ports.

From the following link I downloaded the X-CTU installer:
http://ftp1.digi.com/support/utilities/40003002_B.exe

I installed X-CTU using Wine.

I hooked up my XBee module and adapter to the computer again.

When I did "grep USB /var/log/syslog", it showed:
Apr 16 17:35:57 LeNovo kernel: [14071.239717] USB Serial support registered for FTDI USB Serial Device
Apr 16 17:35:57 LeNovo kernel: [14071.240215] ftdi_sio 3-1:1.0: FTDI USB Serial Device converter detected
Apr 16 17:35:57 LeNovo kernel: [14071.243438] usb 3-1: FTDI USB Serial Device converter now attached to ttyUSB0
Apr 16 17:35:57 LeNovo kernel: [14071.243505] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
Apr 16 17:35:57 LeNovo modem-manager[611]: <info> (ttyUSB0) opening serial port...
Apr 16 17:36:10 LeNovo modem-manager[611]: <info> (ttyUSB0) closing serial port...
Apr 16 17:36:10 LeNovo modem-manager[611]: <info> (ttyUSB0) serial port closed
Apr 16 17:36:10 LeNovo modem-manager[611]: <info> (ttyUSB0) opening serial port...
Apr 16 17:36:16 LeNovo modem-manager[611]: <info> (ttyUSB0) closing serial port
and it ends with 'serial port closed' -- that is, it opens and closes it twice.

Using the X-CTU software I added the user port COM5 (corresponding to USB0, see above symlinks) but not surprisingly when I ran 'test/query' it was unable to open the COM port (I say 'not surprisingly' given the log results above).

I wonder why the serial port will not stay open?

I don't know if I am on the right track, but after some research I learned that the standard Linux driver for the FTDI chip sets DTR when you open the serial connection. From what I read, the DTR line is normally high in Ubuntu, but normally low in Windows. Following some results in the Ubuntu forum, I used gtkterm to toggle the DTR while I had X-CTU open, but I still was not able to open the COM port.

At this point, suggestions would be appreciated! Thank you.
lab
 
Posts: 14
Joined: Mon Jan 23, 2012 2:05 pm

Re: problem with serial connection

Postby adafruit_support_bill » Tue Apr 17, 2012 5:42 am

Not sure what is going on there. Others have had success with XCTU under WINE.
You might post this over on the Digi forums too. http://forums.digi.com/support/forum/index
User avatar
adafruit_support_bill
 
Posts: 16607
Joined: Sat Feb 07, 2009 9:11 am


Return to XBee products from Adafruit

Who is online

Users browsing this forum: No registered users and 2 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [113]

Raspberry Pi[81]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]