cesanta / mongoose-os

Mongoose OS - an IoT Firmware Development Framework. Supported microcontrollers: ESP32, ESP8266, CC3220, CC3200, STM32F4, STM32L4, STM32F7. Amazon AWS IoT, Microsoft Azure, Google IoT Core integrated. Code in C or JavaScript.
https://mongoose-os.com
Other
2.49k stars 430 forks source link

There is no connected device on web UI #503

Closed rid-x closed 5 years ago

rid-x commented 5 years ago

Hi. I'm trying to install firmware OS on Esp32 board, but I'm getting error in console, problem occurred on Fedora 29 (Linux kernel 5.0.10-200.fc29.x86_64) and Windows 10. I have already installed drivers for Fedora and Windows.

Mos console log

Serial console
20190426-141308/2.13.1-g2034cc0

No serial ports available. Possible reasons:
  - A device is disconnected. Connect and press Ctrl-l.
  - A USB-To-Serial driver is not installed. To install, see instructions.
    When done, restart this tool.

Device list Screenshot from 2019-05-13 01-13-05

Driver installation log

[hrant@localhost Linux_3.x.x_4.x.x_VCP_Driver_Source]$ make -f Makefile 
make -C /lib/modules/`uname -r`/build M=/home/hrant/Documents/Linux_3.x.x_4.x.x_VCP_Driver_Source modules
make[1]: Entering directory '/usr/src/kernels/5.0.10-200.fc29.x86_64'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory '/usr/src/kernels/5.0.10-200.fc29.x86_64'
cpq commented 5 years ago

Do you see a serial device appearing in /dev after the driver installation?

Anyhow, this does not sound like a Mongoose OS issue - rather a driver issue.

rid-x commented 5 years ago

Do you see a serial device appearing in /dev after the driver installation?

Anyhow, this does not sound like a Mongoose OS issue - rather a driver issue.

But I have installed driver provided by mongoose. Why it's not working?

cpq commented 5 years ago

Mongoose OS does not provide any driver. These links point to the 3rd party places.

rid-x commented 5 years ago

Mongoose OS does not provide any driver. These links point to the 3rd party places.

So what can I do? 😑

cpq commented 5 years ago

I guess, as usual - search the Internet for solutions. This project is not the right place though. It assumes that drivers work fine.

rid-x commented 5 years ago

I guess, as usual - search the Internet for solutions. This project is not the right place though. It assumes that drivers work fine.

Oh, You are genius 🙂. Anyway thank you.

nliviu commented 5 years ago

Are you sure your device has a FTDI USB chip?

rid-x commented 5 years ago

Are you sure your device has a FTDI USB chip?

@nliviu you are talking about Esp 32 board?

nliviu commented 5 years ago

Yes.

rid-x commented 5 years ago

Yes.

I could't find any information about FTDI. The board model is HiLetgo ESP-WROOM-32 ESP32 ESP-32S.

nliviu commented 5 years ago

It looks like your device uses a Silabs CP210x USB chip. At least that's what I can see in the picture from the link you provided. Fedora (5.0.13-300.fc30.x86_64) has all the usual USB/serial drivers:

[   69.119648] usbserial: USB Serial support registered for ch341-uart
[   69.120310] ch341 2-2.1:1.0: ch341-uart converter detected
[   69.137471] usb 2-2.1: ch341-uart converter now attached to ttyUSB0
...
[  319.567094] usb 2-2.1: Product: FT232R USB UART
[  319.567095] usb 2-2.1: Manufacturer: FTDI
[  319.626879] usbcore: registered new interface driver ftdi_sio
[  319.627580] usbserial: USB Serial support registered for FTDI USB Serial Device
[  319.628172] ftdi_sio 2-2.1:1.0: FTDI USB Serial Device converter detected
[  319.628309] usb 2-2.1: Detected FT232RL
[  319.638704] usb 2-2.1: FTDI USB Serial Device converter now attached to ttyUSB0
...
[  762.997462] usb 2-2.1: Product: CP2104 USB to UART Bridge Controller
[  762.997487] usb 2-2.1: Manufacturer: Silicon Labs
[  763.039487] cp210x 2-2.1:1.0: cp210x converter detected
[  763.056964] usb 2-2.1: cp210x converter now attached to ttyUSB0
rid-x commented 5 years ago

@nliviu So I should try to flash via /dev/ttyUSB0 port?

nliviu commented 5 years ago

mos ports will show you the available devices:

 mos ports
/dev/ttyUSB0

You might need to add your user to the dialout group to have access to the USB device as a regular user (google for it).

rid-x commented 5 years ago

mos ports will show you the available devices:

 mos ports
/dev/ttyUSB0

You might need to add your user to the dialout group to have access to the USB device as a regular user (google for it).

@nliviu Thank you!