-
-
Notifications
You must be signed in to change notification settings - Fork 771
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
Serial connection unstable on RaspberryPI #1213
Comments
Looks like we should be able to upgrade netbeans platform soon! Netbeans has been accepted to Apache, I think they’re still working on a press release but it’s been announced on the public mailing list: One of the last steps was getting the netbeans domain, which must be complete since they’re already staging artifacts |
It seems that the new netbeans libraries are available on maven central. It might be possible to upgrade to the latest platform. I would like to give this a try later this week. |
Any progress on this? |
I made a search a couple of weeks ago and couldn't find the new version for building NBM-modules. Made a quick search for it now and found the new version which seems to have the required fix: https://mvnrepository.com/artifact/org.apache.netbeans.utilities/nbm-maven-plugin/4.2 I'll give it a go and try to update it. |
Possibly related to this: I have found spurious disconnections using JSerialComm which went away when I switched to JSSC, and I'm not using an ARM board, it's a normal x86_64 laptop (Thinkpad X200). |
@jes We have had far more problems with JSSC than JSerialComm (especially in Windows) so I rather not make it default again, you can search for issues containing "JSSC" in project. The JSSC project looks abandoned, but there is a fork that seems to have active development which we could give a try: https://github.com/java-native/jssc |
Fair enough. I wonder if it would be easy to have a separate default for Windows vs Linux? It doesn't make much difference to me now as I now know what the problem is, but I can't be the only person who has spent days trying to debug an apparent EMI problem only to find out it is a broken serial library. |
Sure, we can try to add that. I have not had any problems on my Linux instance with JSerialComm so I hope we don't introduce other problems... =/ So the default library to use should be according to the following: |
In case it helps, here's a simple test case that I find reliably fails with JSerialComm and passes with JSSC:
You don't even need to be connected to a CNC machine, just running Grbl on an Arduino with no hardware connected. (This is the fastest test case I found to differentiate between the "working" and "failing" condition - in practice, even at 115200 baud, I also find that JSSC can run real-life jobs for hours on end with no problems, and JSerialComm disconnects about once every hour or two - I have not yet had a single disconnection with JSSC). |
Excellent thanks! |
Thank you!! |
I'm closing this as it is the best we can do right now. |
The new default connection driver jSerialComm does not work on ARM-based processors like on the RaspberryPI or Asus TinkerBoard. The connection can be established to GRBL but fails intermittently.
We are using an old version of jSerialComm which might be the cause. But upgrading the library can't be done due to this netbeans-plugin-module issue:
mojohaus/nbm-maven-plugin#42
Tried building a snapshot version of the nbm-maven-plugin (nbm-maven-plugin-4.2-SNAPSHOT) which now lets me build with the latest jSerialComm library.
We need to wait until Apache Incubation process of netbeans is ready and has packaged a new version (looking forward to using your work @ebarboni): https://github.com/apache/incubator-netbeans-mavenutils/
In the meantime you can switch to JSSC-driver on RaspberryPI which works reliable: https://github.com/winder/Universal-G-Code-Sender/wiki/Raspberry-Pi
The text was updated successfully, but these errors were encountered: