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

Adds getPortProperties for Linux, OSX, Windows #113

Open
wants to merge 17 commits into
base: 2.8.0
Choose a base branch
from

Commits on Feb 14, 2014

  1. Support cu.* devices on OS X

    Opening /dev/cu.* doesn't require DCD to be asserted and succeeds immediately.
    gohai committed Feb 14, 2014
    Configuration menu
    Copy the full SHA
    bc7cd0f View commit details
    Browse the repository at this point in the history
  2. Support all cu.* & tty.* devices on OS X

    This includes /dev/tty.Bluetooth-Modem and friends.
    gohai committed Feb 14, 2014
    Configuration menu
    Copy the full SHA
    ec95367 View commit details
    Browse the repository at this point in the history
  3. 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.
    gohai committed Feb 14, 2014
    Configuration menu
    Copy the full SHA
    6c55bb0 View commit details
    Browse the repository at this point in the history
  4. 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).
    gohai committed Feb 14, 2014
    Configuration menu
    Copy the full SHA
    4aa2399 View commit details
    Browse the repository at this point in the history
  5. 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
    gohai committed Feb 14, 2014
    Configuration menu
    Copy the full SHA
    475f912 View commit details
    Browse the repository at this point in the history
  6. 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
    gohai committed Feb 14, 2014
    Configuration menu
    Copy the full SHA
    5b10bf2 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2015

  1. 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
    gohai committed Feb 6, 2015
    Configuration menu
    Copy the full SHA
    c0d2c80 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2017

  1. Add aarch64 native library

    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
    gohai committed Apr 11, 2017
    Configuration menu
    Copy the full SHA
    598c80b View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2017

  1. refactors getPortProperties, adds Win support to Java code

    RomanBelkov authored and Roman Belkov committed Jul 10, 2017
    Configuration menu
    Copy the full SHA
    f6cd08c View commit details
    Browse the repository at this point in the history
  2. adds Win cpp code with getPortProperties support

    also made a few changes so that MS compiler would be able to compile
    RomanBelkov authored and Roman Belkov committed Jul 10, 2017
    Configuration menu
    Copy the full SHA
    e832aec View commit details
    Browse the repository at this point in the history
  3. multiple fixes for Win native getPortProperties

    RomanBelkov authored and Roman Belkov committed Jul 10, 2017
    Configuration menu
    Copy the full SHA
    f6944b1 View commit details
    Browse the repository at this point in the history
  4. adds new Win .dll's with getSerialPortProperties

    Compiled in MSVC 2017.
    Needs to add setupapi.lib for linker & give path to JDK includes.
    RomanBelkov authored and Roman Belkov committed Jul 10, 2017
    Configuration menu
    Copy the full SHA
    fcaf44c View commit details
    Browse the repository at this point in the history
  5. Adds 230400 baudrate to available rates

    Tested on Win & Linux
    RomanBelkov committed Jul 10, 2017
    Configuration menu
    Copy the full SHA
    647731c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ba0289b View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2017

  1. Configuration menu
    Copy the full SHA
    0f0851d View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2017

  1. 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.
    RomanBelkov committed Aug 2, 2017
    Configuration menu
    Copy the full SHA
    794b114 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dfa336a View commit details
    Browse the repository at this point in the history