Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

Send/Receive data from Linux
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Send/Receive data from Linux

by clpie on Tue Nov 02, 2021 6:10 pm

Hi there,

I was just wondering what the best method might be to have bi-directional communication with a linux machine, perhaps by serial console?

I was able to connect node.js to the CLUE via serial port and get console output from CLUE, but how do I then send data back to the CLUE? I'd like to have code running on the CLUE that can receive commands or info from a Linux computer via USB.... - is there a way to receive serial data in the circuit python code?

Thank you :D

clpie
 
Posts: 21
Joined: Fri Jul 02, 2021 5:38 am

Re: Send/Receive data from Linux

by adafruit_support_carter on Tue Nov 02, 2021 6:18 pm

Take a look at the approach suggested here:
https://learn.adafruit.com/customizing- ... -3096573-5

Basically a secondary serial path you could use for any arbitrary back and forth.

adafruit_support_carter
 
Posts: 21916
Joined: Tue Nov 29, 2016 2:45 pm

Re: Send/Receive data from Linux

by clpie on Sun Nov 14, 2021 1:30 pm

Thank you -

Do you know if there are any circuit python code examples or libraries for sending/receiving arbitrary data over serial port? I couldn't find any on that page or searching around....

How might I send/receive data in code.py over the additional serial port?


Thanks :)

clpie
 
Posts: 21
Joined: Fri Jul 02, 2021 5:38 am

Please be positive and constructive with your questions and comments.