Jip-Hop
Forum Replies Created
-
AuthorPosts
-
Jip-HopParticipant
I sent a pull request already. On Windows it already worked so no need to fix anything. I don’t have a Linux system that can run Makelangelo with Bluetooth. So don’t know if that needs attention.
Aah you just merged the pull request. Great 😀
Jip-HopParticipantThe library used to list serial ports, jssc, uses the following regex pattern to match serial ports on MacOS:
tty.(serial|usbserial|usbmodem).*
This doesn’t match my bluetooth device at
/dev/tty.HC-06-DevB
.The fix is to call getPortNames with a custom regex, like so:
portsDetected = SerialPortList.getPortNames(Pattern.compile("cu"));
The list now includes the USB and Bluetooth serial device for my Makelangelo.
Connecting works over Bluetooth, and it still works over USB.Jip-HopParticipantThanks for the quick responses 🙂 that did look promising, but unfortunately it didn’t seem to have any effect.
Unfortunately:
portsDetected = null
In the MacOS terminal the following serial devices are listed:
ls /dev/{tty,cu}.* /dev/cu.Bluetooth-Incoming-Port /dev/tty.Bluetooth-Incoming-Port /dev/cu.HC-06-DevB /dev/tty.HC-06-DevB
Jip-HopParticipantThanks for replying Dan. I’ll look into it. Although I don’t think that’s the case. Arduino does list the HC06 as a serial port on MacOS:
https://i.ibb.co/h7xFvyt/Screenshot-2020-05-28-at-17-36-40.png
So this gives me the impression the issue may be somewhere in the Makelangelo Java code.
-
AuthorPosts