Hello,everyone:
I’ve got a ConnectPortX4 development kit. And I try to send and receive data from PC serial port via the XBIB-U-DEV.
I used the “xbee_serial_terminal” driver, and wrote a yml file myself.
I can write to the device by using " channel_set mydevice.write ‘hello’ ", or by idigi_dia html. But when I use " channel_dump ", it returns always like this:
channel value unit timestamp
I send my data with a serial assistance software, and the leds on the XBIB board blinked, it seems like the data had been sent out. Why my connectport can not read it?
Anybody help??
I dived into the project, that it seems like the read_callback function has not been excuted. So the connectport didn’t call the callback function. Does that mean the data has not been successfully sent or there are something wrong with the driver?
Use telnet to the X4 and enter the command “set trace state=on mask=xbee:*”
This will dump ALL Xbee traffic between the X4 and its XBee. My first guess is the X4 is receiving the data, but because the XBIB’s end-points are misaligned, so the X4 is discarding the data as irrelevant.
If you see you data in the above trace, post it here as we can decode the header routing in the Zigbee packets.
Oh yeah!
It’s the problem of setting endpoints. Now the data reading is ok. Thanks lynnl, you are so brilliant!
But I had tried masking the endpoints with the code “match_spec_set(XBeeAddress turple,(True,False,False,False))”, and it still didn’t work. Dose that mean the mask dosen’t work?
My answers are not ‘brillance’ - just ‘been-there-done-that’
I don’t know the details of the match_spec_set().
However, if the XBee in the XBIB retains the default end-points of src/dst both 0xE8, then the Dia stuff should just work. It will filter by MAC address for you, so under ZB or DigiMesh, all XBee use the same end-points and the callback within your xbee_serial_terminal driver will ONLY see the data from the XBee it linked to.
So you could have 10 devices, point 10 instances of your driver to them and each is happy, seeing only their own data.