esp8266-sniffer icon indicating copy to clipboard operation
esp8266-sniffer copied to clipboard

Serial debug : Error: (22, 'Invalid argument')

Open alafanechere opened this issue 6 years ago • 1 comments

Hi @kalanda , I successfully uploaded your code to my ESP8266 and led blinking make me think its working properly. I would like to check output sent the serial port in Platform IO but I keep getting this error:

$ platformio device monitor -p /dev/cu.usbserial -b 115200 --raw
Error: (22, 'Invalid argument')

Am I missing something in the set up ?

alafanechere avatar Jun 30 '18 13:06 alafanechere

@alafanechere there is not a blink in the code so maybe you have the default sketch code with a blink that most of the modules have by default, because you really didn't get the upload done. Also, the name of the port depends on the module chip, in my case is a NodeMCU which have the SiliconLabs serial to usb converter and the terminal opens the serial monitor with this line:

pio device monitor --port /dev/cu.SLAB_USBtoUART --baud 115200

Try to know which is the serial-to-usb chip in your module and install the drivers if needed.

kalanda avatar Jun 30 '18 14:06 kalanda