Page 1 of 1

Connecting via USB

Posted: Tue May 22, 2018 6:28 pm
by Abraxas
I just uploaded the esp32-20180511-v1.9.4.bin onto my esp-32 from my mac. From the terminal I tried to get into repl by using the usual screen /dev/ttyUSB0 115200 and it said that the file/directory didn't exist. So I decided to search my ports using ls /dev/cu.* and found that my board was on this path: /dev/cu.SLAB_USBtoUART. So I tried screen /dev/cu.SLAB_USBtoUART 115200. and received: Cannot open line '/dev/cu.SLAB_USBtoUART' for R/W: Resource busy Sorry, could not find a PTY. How do I fix this?

Re: Connecting via USB

Posted: Tue May 22, 2018 6:58 pm
by Roberthh
How did you upload the software? Uploading too requires the serial port. So maybe the upload process is still holding the serial device.

Re: Connecting via USB

Posted: Tue May 22, 2018 7:05 pm
by Abraxas
I used this tutorial located here on youtube: https://www.youtube.com/watch?v=xM53h3usfMI
The same /dev/cu.SLAB_USBtoUART path was used for the flashing process.

Re: Connecting via USB

Posted: Tue May 22, 2018 7:26 pm
by Roberthh
I just tried that on a mac. The device I had to use started with /dev/tty.usbserial
So maybe it is just another device name to use.
Otherwise try rebooting the mac to get rid of a maybe blocking script.

Re: Connecting via USB

Posted: Tue May 22, 2018 8:45 pm
by Abraxas
I tried your sugestion but with no luck. I was wondering could it be a driver issue? If it is a driver issue how can I fix it? I think my driver comes from silicon labs.

Re: Connecting via USB

Posted: Tue May 22, 2018 8:51 pm
by OutoftheBOTS_
Adafruit have very long step by step YouTube tutorials on setting up and using Micropython from a Mac

Re: Connecting via USB

Posted: Tue May 22, 2018 11:20 pm
by devnull
you need to use tty:

/dev/tty.SLAB_USBtoUART

Re: Connecting via USB

Posted: Thu May 24, 2018 4:57 pm
by Abraxas
Okay, here is what I have learned so far. I found another site that had directions on how to flash MicroPython on this board found here:

https://appelsiini.net/2018/m5stack-esp32-firmware-cli/

Followed the instructions, was able to use the screen command but it didn't show a python prompt. Instead it just sat there with a blank curser. When pushing the restart button on the M5Stack I received this.
Image

So I am able to see replies from my board but I am not able to talk to my board. Any thoughts.