neundorf / CuteCom

A graphical serial terminal
GNU General Public License v3.0
146 stars 66 forks source link

open the device causes a device reboot #54

Closed johndoe71rus closed 6 years ago

johndoe71rus commented 7 years ago

version from git. The nodemcu module with cp2102 usb to uart. when I click to open the device, nodemcu reboots. The old version of cutecom 0.22 simply reads data from the device's port. Without reboot.

info about nodemcu device https://github.com/nodemcu/nodemcu-devkit-v1.0

diggit commented 6 years ago

According to this table:

DTR RTS RST GPIO0
1 1 1 1
0 0 1 1
1 0 0 1
0 1 1 0

MCU somehow receives DTR=1 and RTS = 0. Do you have correct settings?

johndoe71rus commented 6 years ago

how can I check this? I suppose this is related to the circuitry of the MCU. in the program ESPlorer https://github.com/4refr0nt/ESPlorer there is a possibility of a software reset of the device. Without the use of physical buttons.

diggit commented 6 years ago

Table was taken from here, pg 4.

The only case when MCU is reset is during RST=0, so when DTR=1 and RTS=0.

Try opening serial port and ticking DTR and RTS like this: 17-11-15_19 05 38 And then try to reconnect.

I am not sure how well cutecom handles those lines.

johndoe71rus commented 6 years ago

yes. This method work. No reset

diggit commented 6 years ago

@cyc1ingsir this issue is probably solved, but inability to modify RTS and DTR before first connection can be problem too...

cyc1ingsir commented 6 years ago

@diggit o.k. I'd prefer this to be added as a (new) feature request issue then, possible with a link to this one.