[zb4osgi Dev] problem with ZB4osgi with dongle CC2531

christophe.demottie at orange.com christophe.demottie at orange.com
Thu May 24 09:19:59 CEST 2012


Hello,

currently, I didn't succeeded to have a good behavior without tempo, but 
I have more informations due to my test and trace.

In zb4osgi, we write a mask channel (0x400000)  which correspond to the 
channel 0x16 (22). And we check the channel. In the getChannel method, I 
added a read of the mask. And the mask is good while the channel is bad !

------------------- the log with a tempo of 1 second 
--------------------------
[SimpleDriver[/dev/ttyS56,38400]] DEBUG 
it.cnr.isti.zigbee.dongle.CC2530.impl.DriverCC2530 - getCurrentMask : 
1337841965103
[ZToolPacketParser] DEBUG com.itaca.ztool.api.ZToolPacketParser - 
Response is class com.itaca.ztool.api.simple.ZB_READ_CONFIGURATION_RSP 
-> Packet: length = 7, apiId = 0x66 0x04,
full data = 0xfe 0x07 0x66 0x04 0x00 0x84 0x04          0x00 0x00 0x40 
0x00       0xa5, checksum = 0xa5, error = false, type = null, subsys = 
null, errorMessage = null
                 ---- the channel 00 00 40 00 in little indian
[SimpleDriver[/dev/ttyS55,38400]] DEBUG 
it.cnr.isti.zigbee.dongle.CC2530.impl.DriverCC2530 - currentMask : 
1337841965128 : Packet: length = 7, apiId = 0x66 0x04, full data = 0xfe 
0x07 0x66 0x04 0x00 0x84 0x04 0x00 0x00 0x40 0x00 0xa5, checksum = 0xa5, 
error = false, type = null, subsys = null, errorMessage = null 
--details-- configId 84, len 4, status 0 ,values 0 0 40 0
[SimpleDriver[/dev/ttyS55,38400]] DEBUG 
it.cnr.isti.zigbee.dongle.CC2530.impl.DriverCC2530 - tempo : 1337841965128
[SimpleDriver[/dev/ttyS55,38400]] DEBUG 
it.cnr.isti.zigbee.dongle.CC2530.impl.DriverCC2530 - getCurrentChannel : 
1337841966128 (1000)
[ZToolPacketParser] DEBUG com.itaca.ztool.api.ZToolPacketParser - 
Response is class com.itaca.ztool.api.simple.ZB_GET_DEVICE_INFO_RSP -> 
Packet: length = 9, apiId = 0x66 0x06,
full data = 0xfe 0x09 0x66 0x06 0x05       0x00        0x00 0x02 0x27 
0xe2 0x01 0xb8 0x00 0x12, checksum = 0x12, error = false, type = null, 
subsys = null, errorMessage = null
                ---- the mask is 00 !!!!


------------------- the log with a tempo of 4,8 second 
--------------------------
[SimpleDriver[/dev/ttyS55,38400]] DEBUG 
it.cnr.isti.zigbee.dongle.CC2530.impl.DriverCC2530 - getCurrentMask : 
1337843051037
[ZToolPacketParser] DEBUG com.itaca.ztool.api.ZToolPacketParser - 
Response is class com.itaca.ztool.api.simple.ZB_READ_CONFIGURATION_RSP 
-> Packet: length = 7, apiId = 0x66 0x04,
full data = 0xfe 0x07 0x66 0x04 0x00 0x84 0x04        0x00 0x00 
0x40       0x00 0xa5, checksum = 0xa5, error = false, type = null, 
subsys = null, errorMessage = null
                 ---- the channel 00 00 40 00 in little indian
[SimpleDriver[/dev/ttyS55,38400]] DEBUG 
it.cnr.isti.zigbee.dongle.CC2530.impl.DriverCC2530 - currentMask : 
1337843051062 : Packet: length = 7, apiId = 0x66 0x04, full data = 0xfe 
0x07 0x66 0x04 0x00 0x84 0x04 0x00 0x00 0x40 0x00 0xa5, checksum = 0xa5, 
error = false, type = null, subsys = null, errorMessage = null 
--details-- configId 84, len 4, status 0 ,values 0 0 40 0
[SimpleDriver[/dev/ttyS55,38400]] DEBUG 
it.cnr.isti.zigbee.dongle.CC2530.impl.DriverCC2530 - tempo : 1337843051062
[SimpleDriver[/dev/ttyS55,38400]] DEBUG 
it.cnr.isti.zigbee.dongle.CC2530.impl.DriverCC2530 - getCurrentChannel : 
1337843055862 (4800)
[ZToolPacketParser] DEBUG com.itaca.ztool.api.ZToolPacketParser - 
Response is class com.itaca.ztool.api.simple.ZB_GET_DEVICE_INFO_RSP -> 
Packet: length = 9, apiId = 0x66 0x06,
full data = 0xfe 0x09 0x66 0x06 0x05         0x16         0xc0 0x09 0x8d 
0x28 0x00 0xff 0x08 0xe1, checksum = 0xe1, error = false, type = null, 
subsys = null, errorMessage = null
                ---- the mask is 16, yeah !


So, it's not the Java code which has a problem, but the CC2531 which is 
too slow ?
Or a CC2531 configuration which change the behavior, but I didn't find 
it currently.

Christophe







More information about the Dev mailing list