JNI: load ARM sf/hf according to JVM binary. Linux Lines Status Update. #66
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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).