-
Notifications
You must be signed in to change notification settings - Fork 56
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
Getting InterfaceNotOpenException while sending data #130
Comments
Hi @SaiCharitha75, That's really weird, if you are getting that exception it means that, for some reason, the connection interface with the device has been closed. Could you please send us the stack trace of the exception? It would be very helpful in order to understand what is happening. |
Hi @rubenmoral, Please find the Stack trace of the exception MethodName: RequestNodes_Missed lineno:1229 info:Error Threadname:ForkJoinPool.commonPool-worker-2 **description:**The connection interface is not open. Cause: null |
Hi @rubenmoral I am also getting java.lang.IllegalArgumentException sometimes while sending data to remote xbees. Code:
Exception: |
Hi @SaiCharitha75, What type of XBee modules are you using? We need the hardware (HV) and firmware (VR) versions in order to try to reproduce your issue. I understand by your first message that the code is running on the RPi, the local device is the coordinator and you are sending data to a remote device from that one, right? |
Hi @rubenmoral Yes, I am running my code on the RPI with localdevice (coordinator) to send data to remote xbee module. **Module: XBee-PRO 900HP (S3B) DigiMesh. Module: DIGI XBEE-PRO |
Yes I'm having the same issue, with my XBP9B-DMST002 version of Sub 1 GHz module. Interfaced to one of the USB port using a FTDI board, Raspberry Pi 3 Model B. |
…hreads to increment the counter at the same time This could fix an issue of a customer getting sometimes an IllegalArgumentException when sending data (#130). Signed-off-by: Ruben Moral <[email protected]>
Hey @SaiCharitha75, I think we have fixed the issue of the How often are you sending data? Does the coordinator receive any response from the remote one? What is the distance between both modules? If you could share the code with us, that would help a lot ([email protected]). @aylashiv, what is the issue in your case? Please give us more details so we can investigate it deeper. |
HI @rubenmoral ,I am sending the data to remote xbee devices using multiple threads. |
Note: I have now where used synchronised method for sending in my code. |
@SaiCharitha75, by what you say, my guess is that the exception could be caused by the data packet which is received by the coordinator. If something is wrong there, then it makes sense that the library closes the connection and you cannot send more messages to the remote devices. What type of packet are the remote devices sending to the coordinator? How are you handling the receive data in the code? |
Hi Digi,
I am using xbee-java-library-1.2.1, Jar version = RXTX-2.2pre1, native lib Version = RXTX-2.2pre2
I need some clarifications regarding com.digi.xbee.api.exceptions.InterfaceNotOpenException: The connection interface is not open.
I have attached coordinator to Raspberry pi USB port and in my program I have instantiated an xbee device object which is global static object and I have opened the communication interface. I am checking whether communication interface is open or not before sending data to xbee device.
Up to some hours Communication interface is opened and I am able send data to xbee device but at some point I am getting “InterfaceNotOpenException”.
(Note: I am not closing the instantiated xbee device object)
Can you please let me know what are the possibilities of getting this exception?
The text was updated successfully, but these errors were encountered: