Jip-Hop

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: HC06 Bluetooth with Makelangelo on MacOS #28211
    Jip-Hop
    Participant

    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 😀

    in reply to: HC06 Bluetooth with Makelangelo on MacOS #28208
    Jip-Hop
    Participant

    The 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.

    in reply to: HC06 Bluetooth with Makelangelo on MacOS #28126
    Jip-Hop
    Participant

    Thanks for the quick responses 🙂 that did look promising, but unfortunately it didn’t seem to have any effect.

    portsDetected = null

    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
    in reply to: HC06 Bluetooth with Makelangelo on MacOS #28119
    Jip-Hop
    Participant

    Thanks 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.

    • This reply was modified 4 years, 5 months ago by Dan.
    • This reply was modified 4 years, 5 months ago by Dan.
Viewing 4 posts - 1 through 4 (of 4 total)