-
Notifications
You must be signed in to change notification settings - Fork 17
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
Null Exception Error #34
Comments
From the log it seems that the baud rate is not set, but it does look ok on the command line from what you've posted. I've bumped a few dependencies, and also default the baud to 115k2, so please try the compiling with the latest source and see if that makes any difference. |
Using the new compiled .jar. I received this error This took me down a rabbit hole which resolved into the I had to add a SLF4J Dependency. The following is extremely long. I apologize.
And a Logging Dependency
And a Logback XML
I recompiled, and got this response.
I couldn't find a way to resolve this error. I am using a Nortek HUSBZB-1 my drivers have been updated and Ubuntu is seeing it. However it seems as though ASH is timing out due to non-response from the dongle. Again I apologize for the length of this thread |
Thanks. And this is a short debug log compared to some I see, so no problem at all (better more than less in most cases). It's been a while since I've worked with someone using the HUSBZB-1 so I can't remember the firmware. Are you using the firmware that came with it or is it updated? I'm wondering if 115k2 is correct - you could try |
I had to check the baud rate on the Nortek HUSBZB-1,it was 57600. Once I updated the .java file and recompiled the new jar. Seems to be working. Is this what its supposed to look like? Opened serial port /dev/ttyUSB2 at 57600 |
Yes, this looks fine, but it seems no zigbee data is received. You should be able to change the baud rate on the command line - it works fine here and I know for others. I'm not sure why this doesn't work for you - if you're able to try and debug that it would be useful (it's much easier than having to recompile) |
I'm very new to this, so I'm assuming this is something I'm doing incorrectly. Using a Raspberry Pi4 with Ubuntu 23.10
I've used both the precompiled jar, and my own using MAVEN. The output is the same
java -jar com.zsmartsystems.zigbee.sniffer-1.0.2.jar -port /dev/ttyUSB0 -baud 115200 -flow hardware
Z-Smart Systems Ember Packet Sniffer
I'm getting this as a return.
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "String.startsWith(String)" because "number" is null
at com.zsmartsystems.zigbee.sniffer.ZigBeeSniffer.parseDecimalOrHexInt(ZigBeeSniffer.java:400)
at com.zsmartsystems.zigbee.sniffer.ZigBeeSniffer.main(ZigBeeSniffer.java:141)
The text was updated successfully, but these errors were encountered: