ArduinoGeneral

DFR0174 for XBee on Linux

userHead _tirramissu 2014-02-25 02:35:10 3416 Views3 Replies
Hello.
I have currently an XBee module connected to DFR0174 board and plugged in a linux host.

Device is recognized by the OS as expected:
[tt]lsusb -s 003:004 -v

Bus 003 Device 004: ID 2341:0001 Arduino SA Uno (CDC ACM)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x2341 Arduino SA
idProduct 0x0001 Uno (CDC ACM)
bcdDevice 0.01
iManufacturer 1 Arduino ([url=http://www.arduino.cc]www.arduino.cc[/url])
iProduct 2 Arduino Uno
iSerial 220 85235333135351C0C1E2
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 62
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2 Communications
bInterfaceSubClass 2 Abstract (modem)
bInterfaceProtocol 1 AT-commands (v.25ter)
iInterface 0
CDC Header:
bcdCDC 10.01
CDC ACM:
bmCapabilities 0x06
sends break
line coding and serial state
CDC Union:
bMasterInterface 0
bSlaveInterface 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 255
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Device Status: 0x0000
(Bus Powered)
[/tt]

The only problem I have - I can't communicate with it via '/dev/ttyACM0'.
I tried to use minicom utility, perl and python serial port bindings but without any luck.

Can anyone help me with it?
2014-02-25 20:38:32 Interesting,

Looks like you've tried quite a bit. I've never had such problem.

My guess is that pre configured and on windows working at the very least you should be able to listen something broadcasting.
So the port configuration is probably failing somewhere.
Make sure is the right port, perhaps you have some other ACM attached that is not receiving anything?
If baudrate was wrong, you should at least receive some garbled text.

Tailing /dev/ttyACM0 should work if you set up the port before. such us baudrate and so on. Without that will probably not work even if the port is right. So I suggest you start with minicom first to make sure it works instead of tailing.

[quote="_tirramissu"]
And when I start minicom with 'minicom arduino-uno-xbee ' all it shows is the following screen and nothing happens:
[/quote]

Are you typing this in the terminal?

[quote="_tirramissu"]
By the way this module responds to commands from other XBee module (it's alsco connected using DFR0174) on windows.
[/quote]
What do you mean? How did you connect it?
how does it respond to commands?

Cheers^^
userHeadPic Jose
2014-02-25 03:21:59 Hi Jose!

XBee module is XBee ZB.
It works perfectly in Windows 7 x64 and is available both for XCTU 6.1.0 and serial port connection (COMXX Arduino or whatever name it has).

My minicom settings in '/etc/minirc.arduino-uno-xbee' are:
[code]# Machine-generated file - use "minicom -s" to change parameters.
pu port            /dev/ttyACM0
pu baudrate        9600
pu bits            8
pu parity          N
pu stopbits        1
pu rtscts          No
[/code]


And when I start minicom with 'minicom arduino-uno-xbee ' all it shows is the following screen and nothing happens:
[code]Welcome to minicom 2.6.2

OPTIONS: I18n
Compiled on Jun 25 2013, 10:33:48.
Port /dev/ttyACM0, 12:50:48

Press CTRL-A Z for help on special keys

CTRL-A Z for help |  9600 8N1 | NOR | Minicom 2.6.2  | VT102 |      Offline
[/code]

Currently XBee is in API mode and I suppose it should support serial port interaction. Tailing /dev/ttyACM0 shows nothing though Coordinator in Zigbee network is broadcasting packets from other machine.
By the way this module responds to commands from other XBee module (it's alsco connected using DFR0174) on windows.
userHeadPic _tirramissu
2014-02-25 02:49:03 Hi and welcome!

What is the previous configuration of the Xbee? Have you tried AT mode before?

what steps you've followed with minicom ? have you disabled hardware flow control?

If its configure and paired with other xbees, you should be able to read something as well from minicom if the parameters are set right, have you tried as receving and got any results?

Cheers^^
userHeadPic Jose