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

JNI: load ARM sf/hf according to JVM binary. Linux Lines Status Update. #66

Open
wants to merge 1 commit into
base: 2.8.0
Choose a base branch
from

Conversation

VinceOPS
Copy link

On Linux (x64 and ARM), when using the default state for parameters RTS/DTS (true / true), I couldn't have the "DSR OFF" event (event.isDSR() true and eventValue != 1) when unplugging my serial device. The device is using an FTDI USB<>RS232 converter, my serial port is "ttyUSB0".

On my x64 arch: Ubuntu 13.10
On my ARMsf arch: Debian Wheezy

It's due to the fact that the result of getLinesStatus() (variable statusLine) in jssc.cpp is not changed when ioctl() (with TIOCMGET) fails (because the serial port is not available anymore when the device is unplugged). Thus, the mask between the result of getLinesStatus() and & TIOCM_DSR is always 1, as the last successful call to ioctl() let "statusLine" unchanged.


On MultiARCH systems like Debian, it is possible to use a JVM compiled for soft-float whereas the rootfs is compiled for hard-float architecture. Thus, if reading the ELF format of /proc/self/exe on an ARMhf rootfs, but using an ARMsf JVM, the .so library cannot be loaded (the JVM is expecting an ARMsf library).

hiddenalpha pushed a commit to hiddenalpha/jssc that referenced this pull request May 18, 2021
* Remove invalid html from javadoc comments
* Enable doclint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant