Problems with serial connections

If I use “python3 -m serial” and connect to the 0 interface it works as described - but the docs say to use the 1 interface. When I do that I get bad data as if there is binary in the output. I am powering the board from the spotter, by the way, using the smart mooring connector so it has the full long length of cable. However, I get the same results when powering from the wall adapter.

— Available ports:
— 1: /dev/ttyACM0 ‘Bristlemouth - TinyUSB CDC’
— 2: /dev/ttyACM1 ‘Bristlemouth - TinyUSB CDC’
— 3: /dev/ttyS0 ‘n/a’
— Enter port index or full name: 2
— Miniterm on /dev/ttyACM1 9600,8,N,1 —
— Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H —
�ò�␂␀␄␀␀␀␀␀␀␀␀␀��␀␀␁␀␀␀0␀␀␀��␂␀�␀␀␀�␀␀␀33␀␀␀␁␀␀-�m,��␀␀␀␀i␑��␀␀␀␀␀␀␀�b�␛-�m,�␃␀␀␀␀␀␀␀␀␀␀␀␀␀␁␐�␐�␀i?t␀␀␏␁␁spotter/fprintf␀␀␀␀␀␀␀␀␌␀5␀hum_temp.logtick: 48186, rtc: 0, hum: 40.852257, temp: 21.363562 0␀␀␀��␂␀�␀␀␀�␀␀␀33␀␀␀␁␀␀-�m,��␀␀␀␀f␑��␀␀␀␀␀␀␀�b�␛-�m,�␃␀␀␀␀␀␀␀␀␀␀␀␀␀␁␐�␐�␀f� ␀␀␎␁␁spotter/printf␀␀␀␀␀␀␀␀␀␀?␀hum_temp | tick: 48186, rtc: 0, hum: 40.852257, temp: 21.3635620␀␀␀�␁␃␀�␀␀␀�␀␀␀33␀␀␀␁␀␀-�m,��␀␀␀␀p␑��␀␀␀␀␀␀␀�b�␛-�m,�␃␀␀␀␀␀␀␀␀␀␀␀␀␀␁␐�␐�␀p�7␀␀␏␁␁spotter/fprintf␀␀␀␀␀␀␀␀␌␀<␀pressure.logtick: 48197, rtc: 0, temp: 21.359171, pressure: 1009.015259 0␀␀␀�␁␃␀�␀␀␀�␀␀␀33␀␀␀␁␀␀-�m,��␀␀␀␀m␑��␀␀␀␀␀␀␀�b�␛-�m,�␃␀␀␀␀␀␀␀␀␀␀␀␀␀␁␐�␐�␀m%�␀␀␎␁␁spotter/printf␀␀␀␀␀␀␀␀␀␀F␀pressure | tick: 48197, rtc: 0, temp: 21.359171, pressure: 1009.0152590␀␀␀�␜␃␀�␀␀␀�␀␀␀33␀␀␀␁␀␀-�m,��␀␀␀␀v␑��␀␀␀␀␀␀␀�b�␛-�m,�␃␀␀␀␀␀␀␀␀␀␀␀␀␀␁␐�␐�␀v��␀␀␏␁␁spotter/fprintf␀␀␀␀␀␀␀␀ ␀E␀power.logtick: 48204, rtc: 0, addr: 67, voltage: 0.004800, current: -0.000250 0␀␀␀�␜␃␀�␀␀␀�␀␀␀33␀␀␀␁␀␀-�m,��␀␀␀␀s␑��␀␀␀␀␀␀␀�b�␛-�m,�␃␀␀␀␀␀␀␀␀␀␀␀␀␀␁␐�␐�␀s��␀␀␎␁␁spotter/printf␀␀␀␀␀␀␀␀␀␀L␀power | tick: 48204, rtc: 0, addr: 67, voltage: 0.004800, current: -0.0002500␀␀␀�$␃␀�␀␀␀�␀␀␀33␀␀␀␁␀␀-�m,��␀␀␀␀v␑��␀␀␀␀␀␀␀�b�␛-�m,�␃␀␀␀␀␀␀␀␀␀␀␀␀␀␁␐�␐�␀vh␎␀␀␏␁␁spotter/fprintf␀␀␀␀␀␀␀␀ ␀E␀power.logtick: 48206, rtc: 0, addr: 65, voltage: 23.840000, current: 0.006000 0␀␀␀�$␃␀�␀␀␀�␀␀␀33␀␀␀␁␀␀-�m,��␀␀␀␀s␑��␀␀␀␀␀␀␀�b�␛-�m,�␃␀␀␀␀␀␀␀␀␀␀␀␀␀␁␐�␐�␀s��␀␀␎␁␁spotter/printf␀␀␀␀␀␀␀␀␀␀L␀power | tick: 48206, rtc: 0, addr: 65, voltage: 23.840000, current: 0.0060002␀␀␀��␂␀�␀␀␀�␀␀␀33␀␀␀␁␀␀-�m,��␀␀␀␀i␑��␀␀␀␀␀␀␀�b�␛-�m,�␃␀␀␀␀␀␀␀␀␀␀␀␀␀␁␐�␐�␀iM|␀␀␏␁␁spotter/fprintf␀␀␀␀␀␀␀␀␌␀5␀hum_temp.logtick: 50186, rtc: 0, hum: 40.902271, temp: 21.370152 2␀␀␀��␂␀�␀␀␀�␀␀␀33␀␀␀␁␀␀-�m,��␀␀␀␀f␑��␀␀␀␀␀␀␀�b�␛-�m,�␃␀␀␀␀␀␀␀␀␀␀␀␀␀␁␐�␐�␀f�(␀␀␎␁␁spotter/printf␀␀␀␀␀␀␀␀␀␀?␀hum_temp | tick: 50186, rtc: 0, hum: 40.902271, temp: 21.3701522␀␀␀�␁␃␀�␀␀␀�␀␀␀33␀␀␀␁␀␀-�m,��␀␀␀␀p␑��␀␀␀␀␀␀␀�b�␛-�m,�␃␀␀␀␀␀␀␀␀␀␀␀␀␀␁␐�␐�␀p�>␀␀␏␁␁spotter/fprintf␀␀␀␀␀␀␀␀␌␀<␀pressure.logtick: 50197, rtc: 0, temp: 21.371092, pressure: 1009.005249 2␀␀␀�␁␃␀�␀␀␀�␀␀␀33␀␀␀␁␀␀-�m,��␀␀␀␀m␑��␀␀␀␀␀␀␀�b�␛-�m,�␃␀␀␀␀␀␀␀␀␀␀␀␀␀␁␐�␐�␀m,␀␀␀␎␁␁spotter/printf␀␀␀␀␀␀␀␀␀␀F␀pressure | tick: 50197, rtc: 0, temp: 21.371092, pressure: 1009.0052492␀␀␀�␜␃␀�␀␀␀�␀␀␀33␀␀␀␁␀␀-�m,��`␀␀␀␀v␑��␀␀␀␀␀␀␀�b�␛-�m,�␃␀␀␀␀␀␀␀␀␀␀␀␀␀␁␐�␐�␀v��␀␀␏␁␁spotter/fprintf␀␀␀␀␀␀␀␀ ␀E␀power.logtick: 50204, rtc: 0, addr: 67, voltage: 0.004800, current: -0.000250

But if I try to use any other serial terminal at all I get varied results. With either minicom or tio or screen I get output from the dev kit but it does not respond to “help” or bm commands.

All of this is from a linux host (running Debian). There is something really strange happening across the serial port on the dev kit.

Has anyone else seen this? I suspect I am going to have to break out my sniffer connection and see what exactly is going across the wire.

Hello!

The guides were initially written for Mac, and we are in the process of including details specific to Linux users.

On Mac the bristlemouth nodes show up as:

In the guides we refer to devices ending with 1 based on this part of the port description:
/dev/cu.usbmodem00006A2926A71. It looks like on Linux, the port description is different and I would recommend always connecting to the Bristlemouth port that appears first in the list, so in your case /dev/ttyACM0.

The second port is for packet capture(pcap) over USB to wireshark. It streams all of the nodes Bristlemouth tx/rx packets. This means anything that we send to/receive from the ADIN2111 is streamed to this USB port. This second USB port will not take in any inputs.

1 Like

Hi, I’m using windows and after properly attaching the devkit and running “python3 -m serial”, the available ports were the following:


all the hardware and physical equipment used here worked perfectly on a groupmate’s mac, so I think this is a windows issue. Do you have any solutions to this, or which port to select?

Hello and welcome @MalcolmA!

On windows it won’t display the same port information as on mac. So you should use the first USB Serial Device that shows up in your list. In this case that looks like COM7.