XBee-API and Libelium Waspmote

279 views
Skip to first unread message

Lars Rademacher

unread,
Feb 8, 2012, 12:55:16 PM2/8/12
to xbee-api
Hi everyone,

i am going through some trouble with some Sensor-Modules i am
developing on.

I wonder if anyone has used the XBee-API to send Packets to a Libelium
Waspmote.
I bought 5 of them and a zigbee-gateway here: http://www.libelium.com/
It is a arduino-based platform.
I am trying this for a long time now and there is no success at all.

What i can do easily is sending from one sensorboard to another or
from one sensorboard to the Gateway. But sending from the Gateway to a
sensorboard just doesn't work.

I am grateful for any answers

Regards
Lars

Lars Rademacher

unread,
Feb 13, 2012, 9:52:10 AM2/13/12
to xbee-api
Hi,

i found something new:
I logged the Packetstructure which works between two Sensor-Nodes and
the Packetstructure which the xbee-api outputs.
In the Version of the xbee-api, there is a lack of 6 byte.

Sensor-Node:
7E 00 14 00 52 00 7D 33 <A2 00 40 86 7A 5D> 00 52 01 23 00 56 78 48 69
21 45

XBEE-API:
7E 00 0E 00 52 00 7D 33 <A2 00 40 86 7A EC> 00 -- -- -- -- -- -- 48 69
21 FA

The Payload of both messages was: <48 69 21>
I put brackets around the mac-adresses, but the first byte is not
actually there.

In the Bytes which are not in the packet, there seems to be: 52<-frame-
id
01 23<- Maybe the Destination-16bit-address? (Set to 1234)
56 78<-The Origin-16bit-address!

Is there any way to get the missing bytes into the packet?

Best regards
Lars

Andrew Rapp

unread,
Feb 14, 2012, 12:02:22 AM2/14/12
to xbee...@googlegroups.com
Looking at the digi documentation, the 64-bit address is followed by the option byte (0), then the payload and checksum. So, the extra bytes the sensor node is sending do not appear to be valid. Are all radios on the same firmware?  


--
You received this message because you are subscribed to the Google Groups "xbee-api" group.
To post to this group, send email to xbee...@googlegroups.com.
To unsubscribe from this group, send email to xbee-api+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xbee-api?hl=en.


Lars Rademacher

unread,
Feb 16, 2012, 5:52:49 AM2/16/12
to xbee...@googlegroups.com
Yes they are.

I changed from Series 2 to Series 1 Modules (simple 802.15.4).
I haven't made changes to the firmware-version, but it was the newest one on both.
The settings for both modules are the same except for the MY-Option.

Best regards

Lars

Lars Rademacher

unread,
Feb 16, 2012, 6:49:09 AM2/16/12
to xbee...@googlegroups.com
My Problem is, that the API on the Nodes seems not to be as easily changeable as the java XBee-API so I would like to change the java implementation to be working together with the nodes even when the structure is wrong.

Is there an easy way to achieve such a packet structure? When i just change the bytearray in the XBeePacket i want to send, the Checksum has to be reajusted, but even this doesn't work since it has to be done before escaping the Packet? (I read this last thing somewhere)

Im really lost here:-(

Best regards

Lars
Reply all
Reply to author
Forward
0 new messages