ORSSerialPort icon indicating copy to clipboard operation
ORSSerialPort copied to clipboard

Doesn't communicate with Adafruit ItstyBitsy 32u4

Open jwalk487 opened this issue 5 years ago • 3 comments

Hi,

I am having trouble communicating with Adafruit ItstyBitsy 32u4. When I open the port it shows that the port has been opened successfully but I cannot send or receive data.

If I use Serial Monitor in the Arduino application I can communicate with no issue. I also have no problem communicating using a python script.

If I open Arduino Serial Monitor AND connect with ORS it seems to work fine and I can send and receive.

It seems ORS is just not opening the opening the connection properly.

I have also tried ORS with an Arduino Uno and that works fine so I am not sure what's causing this issue.

Thanks for your help

jwalk487 avatar Oct 23 '18 17:10 jwalk487

Same behavior with Arduino Nano 33 BLE and ASURO robots. It seems to have gotten worse in recent macOS system versions.

Dirk- avatar Mar 04 '22 14:03 Dirk-

I have the same issue with a 32u4. The incoming data starts if I open the serial port with another program (in my case CoolTerm, if I try to open the stream with Arduino doesn't work).

I believe there is something on the low level that is done incorrectly (coolterm is triggering the data to start come in).

pierdr avatar Sep 27 '22 00:09 pierdr

Sorry this problem is actually solved already. See thread: https://github.com/armadsen/ORSSerialPort/issues/123

Setting RTS and DTR to true makes the stream of incoming serial data start:

func serialPortWasOpened(_ serialPort: ORSSerialPort) {
        print("port was opened");
        serialPort.rts = true;
        serialPort.dtr = true;
        
    }

pierdr avatar Sep 27 '22 16:09 pierdr