awtrix/AWTRIX2.0-Controller

No Matrix on port /dev/ttyUSB0

zlinwei opened this issue · 7 comments

No Matrix on port /dev/ttyUSB0

I edit the config:

const char *ssid = "xxx";
const char *password = "xxx";
char *awtrix_server = "xxx";

#define USB_CONNECTION
// #define MATRIX_MODEV2

/// LDR Config
#define LDR_RESISTOR 1000 //ohms
#define LDR_PIN A0
#define LDR_PHOTOCELL LightDependentResistor::GL5516

on server i set usb port equals /dev/ttyUSB0
but i got an error;
Thanks;

Do you try the autoconnect?
Please show me the log of the Server.

when I set USBPort=auto
the logs:

11:39:33 PM      AWTRIX 2.0 by Stephan Muehl
11:39:33 PM      01619
No Matrix on port /dev/ttyAMA0
open port /dev/ttyUSB0
port /dev/ttyUSB0 opened
waiting for answer
No Matrix on port /dev/ttyUSB0

I don‘t really know where the Problem is.
Maybe you try it with wifi First.

Do you Connect the Controller via USB cable or direct with Rx Tx and GND?

I connect the controller via USB cable; Can I use Serial to connect the ESP8266 and my raspberry pi?

Yes you can use one of it.
Do you try the connectrion via wifi?
Please note: If you change the connection in the server, you have to restart the server.

Yes, It works when I use WIFI, but USB didn't, Thanks so much!

emmm, it works via USB on my macos,
image