Serial ports on Linux

Status
Not open for further replies.
Hi there!

I'm trying to use the OSC library to send OSC messages to SuperCollider, reading first 24 analog inputs with two multiplexers and then sending them this way:
OSCMessage msg("/cuerdas");
msg.add((int32_t)cuerda1); // cuerda1 is one of my analog readings
msg.send(SLIPSerial);
SLIPSerial.endPacket();
msg.empty();




but I'm having a problem:
when I listen to /dev/ttyACM0 from SuperCollider I get some sort of static noise, I guess it interferes with something else (I'm using an USB soundcard). So I decided to try a different serial port, but the Arduino IDE won't let me choose any other. Perhaps something to do with permissions?
 
Thanks for reading, Headroom.

I'm afraid the noisy thing is unrelated to the code. I thought it could be an interference with the MobilePre USB audio interface I'm using and so I tried uploading different codes (from Examples>), and the result was always the same:
while Jack is running with the USB audio interface, every time I open the serial monitor or listen to the serial port from another program, an annoying high pitched fast bleeping starts (sounds like alien super fast morse code, I guess it's the serial data being sent to the soundcard).
I tried with an Arduino I had lying around, and again the same result.
Turning Jack off solves the problem, but I need Jack for my project, so that wouldn't count as a solution.


I thought the reason might be that both Jack and Teensy are using the same serial port, so perhaps using a different serial port would solve that. But the only serial port I can select from the IDE is /dev/ttyACM0.
 
Status
Not open for further replies.
Back
Top