I've been digging around, but can't seem to find how to determine the proper port for a movesense device in the programming jig in order to use the wbcmd tool to query the device.
I've successfully used the jig to reflash devices, so that part is working. What I'm missing is how to determine the port option in wbcmd in order to successfully talk to the device on mac os X (currently: High Sierra).
I do see /dev/cu.usbserial-AIO4RYMP and /dev/tty.usbserial-AIO4RYMP, but using either of those as the --port option just returns "No device connected".
At this point, I am unsure if it's a wbcmd problem or a setup problem, but again, I can successfully flash a device with this setup on High Sierra no problem, and things look like they're configured correctly.
Thanks for any help
I'm not going deep into details of Mac serial ports but short rule is that
/dev/tty.*
is for incoming (like getty) and/dev/cu.*
is for outgoing communication, so you should use the/dev/cu.*
one.Make sure you have definednote that enabling serial communication increases power usage of nRF52 by few milliamps.SERIAL_COMMUNICATION(true)
in your App.cpp and alsoEDIT: I stand corrected, looks like
SERIAL_COMMUNICATION()
-macro is deprecated in latest builds. Best way then is to use WB APIsystem/settings/uarton
-path and PUTtrue
there. This setting is stored and needs to be done only once, and it takes effect on next reboot.See Settings API YAML
Small sample code for application (
UartClient.cpp
):Header (
UartClient.hpp
):Alternatively you can use the iOS sample application, there is an option to enable UART in UI. That change also takes effect on next reboot.