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

Add FreeBSD support #81

Open
wants to merge 1 commit into
base: 2.8.1-experimental
Choose a base branch
from
Open

Add FreeBSD support #81

wants to merge 1 commit into from

Conversation

swills
Copy link

@swills swills commented Nov 11, 2015

Passes tests fine. Not 100% sure about the arm bits, haven't tested those, but they might be right.

Still having trouble using this with ESPlorer, perhaps I haven't built my lib right. Getting java.lang.UnsatisfiedLinkError when calling jssc.SerialNativeInterface.openPort. Any suggestions would be appreciated.

@swills
Copy link
Author

swills commented Nov 11, 2015

Turns out I had a bad copy of the lib in ~/.jssc. When I placed the right lib in ~/.jssc/FreeBSD, it works fine. So ignore the bit about ESPlorer not working.

@tobias6660
Copy link

I'm developing for FreeBSC, but the same is not running.
Error path:
Exception no tópico "Thread de Animação" java.lang.UnsatisfiedLinkError: jssc.SerialNativeInterface.openPort (Ljava / lang / String; Z) J
     At jssc.SerialNativeInterface.openPort (Método nativo)
     Em jssc.SerialPort.openPort (SerialPort.java:158).

The code is this:
public static void main(String[] args) throws SerialPortException { SerialPort serialPort; String COM = "/dev/ttyU0"; serialPort = new SerialPort(COM); serialPort.openPort(); }

In the development environment that works windows works, but not production running on FreeBSD does.

@@ -59,6 +59,11 @@
PORTNAMES_PATH = "/dev/";
break;
}
case SerialNativeInterface.OS_FREEBSD: {
PORTNAMES_REGEXP = Pattern.compile("(cuaU)[0-9]{1,3}");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pattern should be "(cuaU)[0-9]{1,3}$" to pull in only the base cuaU* nodes and not the .init/.lock devices.

@kevans91
Copy link

I threw a comment on this (although it's looking quite likely that it'll see no resolution here =() -- I'll be amending the local patch for comms/java-simple-serial-connector with this soon along with a similar patch to this to fix some devel/arduino18 bugs with serial port enumeration

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

Successfully merging this pull request may close these issues.

3 participants