-
Notifications
You must be signed in to change notification settings - Fork 290
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
Adds getPortProperties for Linux, OSX, Windows #113
base: 2.8.0
Are you sure you want to change the base?
Commits on Feb 14, 2014
-
Opening /dev/cu.* doesn't require DCD to be asserted and succeeds immediately.
Configuration menu - View commit details
-
Copy full SHA for bc7cd0f - Browse repository at this point
Copy the full SHA bc7cd0fView commit details -
Support all cu.* & tty.* devices on OS X
This includes /dev/tty.Bluetooth-Modem and friends.
Configuration menu - View commit details
-
Copy full SHA for ec95367 - Browse repository at this point
Copy the full SHA ec95367View commit details -
Don't open ports for getPortNames()
Opening certain devices, such as serial endpoints over Bluetooth, can take a long time before they fail. Moreover, it's better to show devices even when the user currently doesn't have permissions to access them - else one might think of a problem with the device or driver, when a "sudo chmod 666" would do the trick.
Configuration menu - View commit details
-
Copy full SHA for 6c55bb0 - Browse repository at this point
Copy the full SHA 6c55bb0View commit details -
Try to load native libraries without modifying the host system
Before dynamically extracting the matching native library, first try to load it using System.loadLibrary(). This is helpful when it's not desired to modify the host system (but rather make changes to java.library.path).
Configuration menu - View commit details
-
Copy full SHA for 4aa2399 - Browse repository at this point
Copy the full SHA 4aa2399View commit details -
Add a Universal binary for OS X
The command used to compile this on 10.9.1: g++ -shared -arch i386 -arch x86_64 -I"$JAVA_HOME/include" -I"$JAVA_HOME/include/darwin" -I"/System/Library/Frameworks/IOKit.framework/Headers" -o libjSSC-2.8_universal.jnilib jssc.cpp
Configuration menu - View commit details
-
Copy full SHA for 475f912 - Browse repository at this point
Copy the full SHA 475f912View commit details -
Allow querying of USB properties
getPortProperties() returns a map with keys and values as string. The currently available properties are: idProduct (lowercase hexadecimal zero-padded to four digits), idVendor (same as idProduct), manufacturer, product, serial. This is currently implemented for Linux and OS X (only in the Universal binary). The command used to compile this on 10.9.1: g++ -shared -arch i386 -arch x86_64 -I"$JAVA_HOME/include" -I"$JAVA_HOME/include/darwin" -I"/System/Library/Frameworks/IOKit.framework/Headers" -framework CoreFoundation -framework IOKit -o libjSSC-2.8_universal.jnilib jssc.cpp
Configuration menu - View commit details
-
Copy full SHA for 5b10bf2 - Browse repository at this point
Copy the full SHA 5b10bf2View commit details
Commits on Feb 6, 2015
-
Recompile for armv6 hard float
Command used to compile on a current Raspbian: g++ -shared -march=armv6 -mfpu=vfp -mfloat-abi=hard -I/usr/lib/jvm/jdk-7 -oracle-armhf/include -I/usr/lib/jvm/jdk-7-oracle-armhf/include/linux -o libjSSC-2.8_armhf.so jssc.cpp
Configuration menu - View commit details
-
Copy full SHA for c0d2c80 - Browse repository at this point
Copy the full SHA c0d2c80View commit details
Commits on Apr 11, 2017
-
This was built with: g++ -shared -I /usr/lib/jdk1.8.0_121/include -I/usr/lib/jdk1.8.0_121/include/linux -o libjSSC-2.8_aarch64.so jssc.cpp
Configuration menu - View commit details
-
Copy full SHA for 598c80b - Browse repository at this point
Copy the full SHA 598c80bView commit details
Commits on Jul 10, 2017
-
Configuration menu - View commit details
-
Copy full SHA for f6cd08c - Browse repository at this point
Copy the full SHA f6cd08cView commit details -
adds Win cpp code with getPortProperties support
also made a few changes so that MS compiler would be able to compile
Configuration menu - View commit details
-
Copy full SHA for e832aec - Browse repository at this point
Copy the full SHA e832aecView commit details -
Configuration menu - View commit details
-
Copy full SHA for f6944b1 - Browse repository at this point
Copy the full SHA f6944b1View commit details -
adds new Win .dll's with getSerialPortProperties
Compiled in MSVC 2017. Needs to add setupapi.lib for linker & give path to JDK includes.
Configuration menu - View commit details
-
Copy full SHA for fcaf44c - Browse repository at this point
Copy the full SHA fcaf44cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 647731c - Browse repository at this point
Copy the full SHA 647731cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba0289b - Browse repository at this point
Copy the full SHA ba0289bView commit details
Commits on Jul 27, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 0f0851d - Browse repository at this point
Copy the full SHA 0f0851dView commit details
Commits on Aug 2, 2017
-
Adds Windows provided by bus description to port properties
It appeared, that if you change device description (CP2102 in my case), you'll still get default description given by Windows where the new, changed device description is expected. Luckily, in Windows 7 and above there is a way to do so. Note that this commit will probably break everything on XP & Vista.
Configuration menu - View commit details
-
Copy full SHA for 794b114 - Browse repository at this point
Copy the full SHA 794b114View commit details -
Configuration menu - View commit details
-
Copy full SHA for dfa336a - Browse repository at this point
Copy the full SHA dfa336aView commit details