My code didn’t paste properly. The first line was supposed to be:
$port= new-Object System.IO.Ports.SerialPort COM3,15200,None,8,one
I checked that COM3 was correct by using the serial port tool and checked that the baudrate was 15200 (COM3 and baudrate = 15200 worked using the serial port tool). I also experimented with other baudrates.
I’ve been able to open and close the port, but when I write to the device, the device does not respond to the command. This is also the case when using the cool term serial tool.
The reason I’m not using the serial port tool is I’m writing a script for setup purposes that automatically sets the required heartbeat values and logs the devices devEUI.
Yes you are right about the baudrate. When the dropdown for baudrate in the serial port tool minimizes, it cuts off part of the number. I however just changed the baudrate in my code to 115200 and it still doesn’t work (works in serial port tool).
Do you know where I can find documentation on the other settings I should be using?
Hello @cturpin2 ,
Have you press and hold key 1 before trying to initiate the communication?
In order to initiate a serial communikation with this device you have to hold button 1 untill it’s light goes into constant blue light.