Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading Device Info and channels #133

Open
aang7 opened this issue Apr 16, 2019 · 3 comments
Open

Reading Device Info and channels #133

aang7 opened this issue Apr 16, 2019 · 3 comments

Comments

@aang7
Copy link

aang7 commented Apr 16, 2019

Hi there!
I have found some weird behavior. Let me explain.
I'm working with a network which has different channels but the same ID.
So I have a method that calls readDeviceInfo() to get the essential info about some XBeeRemote. When I call that method I just check if my Local XBeeDevice has the same channel of the requested XBeeRemote, and if it haven't then I just change the Local XBeeDevice channel to be able to communicate with the XBeeRemote. When I try the first time(Calling readDeviceInfo method) it works but in future calls it doesn't, I don't know why.
The method throws an exception, which is basically the following:
com.digi.xbee.api.exceptions.ATCommandException: There was a problem sending the AT command packet. > TX failure at com.digi.xbee.api.AbstractXBeeDevice.checkATCommandResponseIsValid(AbstractXBeeDevice.java:1980) at com.digi.xbee.api.AbstractXBeeDevice.sendParameter(AbstractXBeeDevice.java:2227) at com.digi.xbee.api.AbstractXBeeDevice.getParameter(AbstractXBeeDevice.java:2160) at com.digi.xbee.api.AbstractXBeeDevice.readDeviceInfo(AbstractXBeeDevice.java:451) at gui.NodeInfoController.refreshInfo(NodeInfoController.java:437) at gui.NodeInfoController.lambda$initialize$6(NodeInfoController.java:168)

The exception refers to following line of code:
XBeeRemote.readDeviceInfo();

Hope someone helps.

@rubenmoral
Copy link
Member

Hi @aang7,

Could you please specify the type of XBee modules you are using (hardware version and firmware version)? This could help us to understand why you are getting that exception.

Also, please make sure you have the latest version of the library (1.2.1). Taking a look to the exception trace, it seems you have the previous version (1.2.0).

Thanks,
Ruben

@aang7
Copy link
Author

aang7 commented Apr 17, 2019

Firmware version: 9000
Hardware version: 2E43
Product family: XB24C
Function set: DigiMesh 2.4 TH

And yes, I'm using the previous version (1.2.0).
Let me try with the latest one.

@aang7
Copy link
Author

aang7 commented Apr 17, 2019

After update to the latest version of the library(v1.2.1). The behavior seems to be same, It throws the same exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants