Hello everyone. I was hoping the community could help me out. I’m not sure what I’m doing wrong. I’m having trouble trying to send a command from a Linux Debian 12 computer to a Sparkfun SAMD21 Mini Breakout via serial monitor.
I connected a USB to USB-C adaptor cable from the USB port on my Linux device to the USB-C connector on the Mini breakout. Here is my current sketch.
When I try this using the Serial Monitor on Arduino IDE on my Windows laptop it works fine.
I see the “Please Press 1 to Generate PIN” message. When I press “1” and then “Enter” I get the “Success” message sent back to me.
I’m trying to reproduce this, using a linux Debian 12 device to send the command. I’m trying send the command “1” from the Linux computer through the USB-C connector on the Sparkfun SAMD21 Mini breakout. I have tried using the programs screen, picocom, and minicom, without any success.
When I log into my linux device via ssh I can see that the Sparkfun Mini Breakout is “ttyACM0.” When I try to use the program "screen for example, I use the command “screen /dev/ttyACM0 115200.” I had set my baud rate to 115200 in my sketch.
However it doesn’t seem to do anything. I just see a blinking cursor. I don’t even get the “Please press 1 to Generate PIN” message from the Mini breakout. When I press the buttons on my keyboard I don’t see them on screen.
What’s odd is that I tried something similar with an Arduino UNO and I was able to send this command using screen from my linux device. I got the response message from the Arduino UNO as well.
Here’s the link to Sparkfun’s website explaining the serial USB port works on the SAMD21 Mini breakout. Are there any drivers that I need to install on Linux to fix this problem? Thanks.