ESP-01 (ESP8266) and programmer incorrectly installed

philba

Joined Aug 17, 2017
959
do the loop back test I mentioned earlier in their thread. that way you'll know if the serial stream is getting off your computer.
 

be80be

Joined Jul 5, 2008
2,395
Screenshot from 2017-11-12 19-49-56.png do the loop back test I mentioned earlier in their thread.

That's not going to help if you can't use serial port to begin with.
the newer arduino adds you to dialout

sudo adduser YOUGOHERE dialout
Screenshot from 2017-11-12 19-51-37.png Screenshot from 2017-11-12 19-49-56.png
 
Last edited:

Thread Starter

Motanache

Joined Mar 2, 2015
652
dan@dan-laptop:~$ sudo adduser dan dialout
[sudo] password for dan:
Adding user `dan' to group `dialout' ...
Adding user dan to group dialout
Done.
dan@dan-laptop:~$ greb 'dialout' /etc/group
No command 'greb' found, did you mean:
Command 'grep' from package 'grep' (main)
greb: command not found
dan@dan-laptop:~$ grep 'dialout' /etc/group
dialout:x:20:dan
dan@dan-laptop:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 248a:8366
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
dan@dan-laptop:~$ ^C
dan@dan-laptop:~$


Plug in the adapter then type dmesg post that and then I'll tell you how to fix it
The dmsg command returns a very long text. I compared with the programmer plugged USB or without it's the same.

You can tell me please, a piece of this result to post (dmesg)?

I want to learn something if I talk with You.
 

be80be

Joined Jul 5, 2008
2,395
You plug in the usb to serial then type dmesg
the last page of it will show what was plugged in need that.
How did you install arduino ide.
If you want you can pm me 17.10 should have what you need now I have a lot of stuff on my computer.
but I no I didn't install a ch340 driver I may of installed usbserial I use it with lots of stuff

dialout:x:20:dan that's not right root should be there too
 

Thread Starter

Motanache

Joined Mar 2, 2015
652
I just clicked on install.sh A window appears where you choose: Execute, Execute in Terminal, .........
I've selected Execute.
Same with arduino-builder.
arduino-1.8.5










"STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince" pid=371 comm="apparmor_parser"
[ 19.574208] audit: type=1400 audit(1510505381.043:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince//sanitized_helper" pid=371 comm="apparmor_parser"
[ 19.574213] audit: type=1400 audit(1510505381.043:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince-previewer" pid=371 comm="apparmor_parser"
[ 19.574217] audit: type=1400 audit(1510505381.043:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince-previewer//sanitized_helper" pid=371 comm="apparmor_parser"
[ 20.011973] ath: EEPROM regdomain: 0x61
[ 20.011977] ath: EEPROM indicates we should expect a direct regpair map
[ 20.011981] ath: Country alpha2 being used: 00
[ 20.011982] ath: Regpair used: 0x61
[ 20.059467] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 20.061451] ath5k: phy0: Atheros AR5212 chip found (MAC: 0x56, PHY: 0x41)
[ 20.061454] ath5k: phy0: RF5111 5GHz radio found (0x17)
[ 20.061456] ath5k: phy0: RF2111 2GHz radio found (0x23)
[ 20.067044] ath5k 0000:02:02.0 wlp2s2: renamed from wlan0
[ 20.289641] pcmcia_socket pcmcia_socket0: cs: IO port probe 0x100-0x3af:
[ 20.290235] excluding 0x170-0x177 0x1f0-0x1f7 0x2f8-0x2ff 0x370-0x377
[ 20.290683] pcmcia_socket pcmcia_socket0: cs: IO port probe 0x3e0-0x4ff:
[ 20.290905] excluding 0x3f0-0x3ff 0x4d0-0x4d7
[ 20.291123] pcmcia_socket pcmcia_socket0: cs: IO port probe 0x820-0x8ff:
[ 20.291471] clean
[ 20.291491] pcmcia_socket pcmcia_socket0: cs: IO port probe 0xc00-0xcf7:
[ 20.291877] clean
[ 20.291901] pcmcia_socket pcmcia_socket0: cs: memory probe 0x0c0000-0x0fffff:
[ 20.291910] excluding 0xc0000-0xd3fff 0xdc000-0xfffff
[ 20.291945] pcmcia_socket pcmcia_socket0: cs: memory probe 0xa0000000-0xa0ffffff:
[ 20.291965] clean
[ 20.291985] pcmcia_socket pcmcia_socket0: cs: memory probe 0x60000000-0x60ffffff:
[ 20.294727] pcmcia_socket pcmcia_socket1: cs: IO port probe 0x100-0x3af:
[ 20.295314] excluding 0x170-0x177 0x1f0-0x1f7 0x2f8-0x2ff 0x370-0x377
[ 20.295761] pcmcia_socket pcmcia_socket1: cs: IO port probe 0x3e0-0x4ff:
[ 20.295983] excluding 0x3f0-0x3ff 0x4d0-0x4d7
[ 20.296903] pcmcia_socket pcmcia_socket1: cs: IO port probe 0x820-0x8ff:
[ 20.297252] clean
[ 20.297273] pcmcia_socket pcmcia_socket1: cs: IO port probe 0xc00-0xcf7:
[ 20.297658] clean
[ 20.297683] pcmcia_socket pcmcia_socket1: cs: memory probe



























0x0c0000-0x0fffff:
[ 20.297691] excluding 0xc0000-0xd3fff 0xdc000-0xfffff
[ 20.297726] pcmcia_socket pcmcia_socket1: cs: memory probe 0xa0000000-0xa0ffffff:
[ 20.297746] clean
[ 20.297766] pcmcia_socket pcmcia_socket1: cs: memory probe 0x60000000-0x60ffffff:
[ 20.297786] excluding 0x60e00000-0x60efffff
[ 20.297809] pcmcia_socket pcmcia_socket1: cs: IO port probe 0xa00-0xaff:
[ 20.298206] clean
[ 20.298242] clean
[ 20.298267] pcmcia_socket pcmcia_socket0: cs: IO port probe 0xa00-0xaff:
[ 20.298665] clean
[ 32.643515] IPv6: ADDRCONF(NETDEV_UP): enp2s1: link is not ready
[ 32.645045] IPv6: ADDRCONF(NETDEV_UP): enp2s1: link is not ready
[ 32.676940] IPv6: ADDRCONF(NETDEV_UP): wlp2s2: link is not ready
[ 32.690908] IPv6: ADDRCONF(NETDEV_UP): wlp2s2: link is not ready
[ 33.297515] IPv6: ADDRCONF(NETDEV_UP): wlp2s2: link is not ready
[ 97.181653] wlp2s2: authenticate with 02:0a:00:60:73:61
[ 97.187766] wlp2s2: send auth to 02:0a:00:60:73:61 (try 1/3)
[ 97.190432] wlp2s2: authenticated
[ 97.192076] wlp2s2: associate with 02:0a:00:60:73:61 (try 1/3)
[ 97.198782] wlp2s2: RX AssocResp from 02:0a:00:60:73:61 (capab=0x431 status=0 aid=1)
[ 97.198903] wlp2s2: associated
[ 97.199835] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s2: link becomes ready
[ 1591.340123] usb 3-1: USB disconnect, device number 2
[ 1767.436070] usb 3-1: new full-speed USB device number 3 using uhci_hcd
[ 1767.564051] usb 3-1: device descriptor read/64, error -71
[ 1767.800064] usb 3-1: device descriptor read/64, error -71
[ 1768.028071] usb 3-1: new full-speed USB device number 4 using uhci_hcd
[ 1768.156082] usb 3-1: device descriptor read/64, error -71
[ 1768.392066] usb 3-1: device descriptor read/64, error -71
[ 1768.620065] usb 3-1: new full-speed USB device number 5 using uhci_hcd
[ 1769.036071] usb 3-1: device not accepting address 5, error -71
[ 1769.156065] usb 3-1: new full-speed USB device number 6 using uhci_hcd
[ 1769.572062] usb 3-1: device not accepting address 6, error -71
[ 1769.572117] usb usb3-port1: unable to enumerate USB device























[ 1783.664073] usb 3-2: new full-speed USB device number 7 using uhci_hcd
[ 1783.792057] usb 3-2: device descriptor read/64, error -71
[ 1784.028065] usb 3-2: device descriptor read/64, error -71
[ 1784.256055] usb 3-2: new full-speed USB device number 8 using uhci_hcd
[ 1784.384072] usb 3-2: device descriptor read/64, error -71
[ 1784.620069] usb 3-2: device descriptor read/64, error -71
[ 1784.848072] usb 3-2: new full-speed USB device number 9 using uhci_hcd
[ 1785.264074] usb 3-2: device not accepting address 9, error -71
[ 1785.384054] usb 3-2: new full-speed USB device number 10 using uhci_hcd
[ 1785.800071] usb 3-2: device not accepting address 10, error -71
[ 1785.800121] usb usb3-port2: unable to enumerate USB device
[ 1798.736097] usb 3-1: new full-speed USB device number 11 using uhci_hcd
[ 1798.864116] usb 3-1: device descriptor read/64, error -71
[ 1799.100060] usb 3-1: device descriptor read/64, error -71
[ 1799.328099] usb 3-1: new full-speed USB device number 12 using uhci_hcd
[ 1799.460072] usb 3-1: device descriptor read/64, error -71
[ 1799.696080] usb 3-1: device descriptor read/64, error -71
[ 1799.924067] usb 3-1: new full-speed USB device number 13 using uhci_hcd
[ 1800.340090] usb 3-1: device not accepting address 13, error -71
[ 1800.460079] usb 3-1: new full-speed USB device number 14 using uhci_hcd
[ 1800.876076] usb 3-1: device not accepting address 14, error -71
[ 1800.876127] usb usb3-port1: unable to enumerate USB device
dan@dan-laptop:~$
 

Thread Starter

Motanache

Joined Mar 2, 2015
652
I also read that the notion of driver is a bit strange(In the sense it was not necessary to use it) to those who work with Linux.

I also can try to install Arduino Windows version in an emulator like wine.
 

be80be

Joined Jul 5, 2008
2,395
There is something wrong this is it usb usb3-port1: unable to enumerate USB device
That only happens if its bad
Have you used it at all.

Plug it in without hooking it to the esp

Post you whole output from lsmod
 
Last edited:

Thread Starter

Motanache

Joined Mar 2, 2015
652
dan@dan-laptop:~$ lsmod
Module Size Used by
ccm 20480 0
arc4 16384 2
pcmcia 57344 0
ath5k 135168 0
ath 24576 1 ath5k
mac80211 675840 1 ath5k
input_leds 16384 0
cfg80211 524288 3 mac80211,ath,ath5k
snd_intel8x0 36864 2
snd_ac97_codec 106496 1 snd_intel8x0
ac97_bus 16384 1 snd_ac97_codec
yenta_socket 40960 0
joydev 20480 0
snd_pcm 90112 2 snd_ac97_codec,snd_intel8x0
pcmcia_rsrc 20480 1 yenta_socket
serio_raw 16384 0
snd_timer 28672 1 snd_pcm
pcmcia_core 24576 3 yenta_socket,pcmcia,pcmcia_rsrc
thinkpad_acpi 77824 0
nvram 16384 1 thinkpad_acpi
snd 65536 9 snd_ac97_codec,snd_timer,thinkpad_acpi,snd_intel8x0,snd_pcm
nsc_ircc 24576 0
shpchp 32768 0
irda 176128 1 nsc_ircc
lpc_ich 24576 0
soundcore 16384 1 snd
mac_hid 16384 0
parport_pc 32768 1
ppdev 20480 0
lp 20480 0
parport 40960 3 lp,parport_pc,ppdev
ip_tables 20480 0
x_tables 28672 1 ip_tables
autofs4 40960 2
hid_generic 16384 0
radeon 1400832 5
i2c_algo_bit 16384 1 radeon
ttm 86016 1 radeon
usbhid 49152 0
drm_kms_helper 151552 1 radeon
hid 98304 2 hid_generic,usbhid
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
psmouse 131072 0
drm 303104 8 radeon,ttm,drm_kms_helper
e1000 131072 0
pata_acpi 16384 0
video 40960 1 thinkpad_acpi
floppy 61440 0
dan@dan-laptop:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 248a:8366
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
dan@dan-laptop:~$




I have in one USB Rx from wireless mouse.
I only have two USBs.

In the other USB I have the programmer without ESP.

On the same computer in Windows, It works(This programmer + ESP with AT commands).
But Windows does not work on the network and I do not have access to Internet. So in Windows in Arduino IDE I can not install the ESP card.


Anyway, I'm satisfied with the solution found to run another operating system in Virtual BOX.
So the entire operating system will be a single file that can run it on any computer.
 
Hello:
I was reading through this post on the CH340 and Linux Mint 11. I believe the OP has found a solution using VirtualBox, which is fine if it works for her/him.

For others' benefit, I happen to have Linux Mint 11 running on my mother's LENOVO laptop and will post my research and suggestions.

beverly@bev-laptop:~$ lsb_release -a
LSB Version: core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch
Distributor ID: LinuxMint
Description: Linux Mint 11 Katya
Release: 11
Codename: katya


I also have a CH340G USB2TTL bridge. Upon issuing the 'lsusb' command, the CH340G device shows up in the listing.

beverly@bev-laptop:~$ lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 2087:0a01
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 002 Device 005: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 002 Device 002: ID 0458:00a2 KYE Systems Corp. (Mouse Systems)
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 04f2:b1a1 Chicony Electronics Co., Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


I use 'picocom' as a dumb terminal, so issuing 'picocom /dev/ttyUSB0' as a normal user (permissions) connects to the CH340G without any errors. Note that the 'ttyUSBx' interface may be '0' through 'N'.

beverly@bev-laptop:~$ picocom /dev/ttyUSB0
picocom v2.3a

port is : /dev/ttyUSB0
flowcontrol : none
baudrate is : 9600
parity is : none
databits are : 8
stopbits are : 1
escape is : C-a
local echo is : no
noinit is : no
noreset is : no
nolock is : no
send_cmd is : sz -vv
receive_cmd is : rz -vv -E
imap is :
omap is :
emap is : crcrlf,delbs,
logfile is : none

Type [C-a] [C-h] to see available commands

Terminal ready

ABCdef [echo back of characters I typed]

As one can see, Linux Mint 11 supports the CH340G 'out of the box'. If the OP's CH340G is not showing up in the 'lsusb' listing then the device isn't being recognized. If the OP has access to another computer running Linux of any flavor, (s)he can issue the same 'lsusb' command and look for the CH340G device being recognized. It is possible that the OP's Mint 11 is running an earlier kernel that doesn't support the CH340G. My Mint 11 kernel is '2.6.38'.

In the past, I have seen some folks come up with 'udev' rules for the CH340G. Mint 11 does use the 'udev' service. Below is a rule that I have BUT note that the rule shown below IS NOT running on the Linux Mint 11 that I performed this testing on. I cannot verify that it works.

# This file must be placed at:
#
# /etc/udev/rules.d/49-ch340g.rules (preferred location)
# or
# /lib/udev/rules.d/49-ch340.rules (req'd on some broken systems)
# CH-340G USB-2-Serial Converter: 1a86:7523
#
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", MODE:="0666"
KERNEL=="ttyACM*", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", SYMLINK+="ttyUSB%n", MODE:="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
KERNEL=="ttyACM*", SYMLINK+="ttyUSB%n", MODE:="0666"


Hope this helps...

Peace and blessings,
Johnny Quest
 

be80be

Joined Jul 5, 2008
2,395
Lol On ubuntu to use a serial port you have to be added to dialout .......
The poster problem is in the usb it's not like most but to tell them how to fix it is not a east task
I posted showing my output for lsusb and dmesg plus I had to add me to dialout

As for you PhilTilson You got a answer pleases post it.
Maybe you need read this https://askubuntu.com/questions/133235/how-do-i-allow-non-root-access-to-ttyusb0-on-12-04

Because when I posted mine there was talk about not being able to use the serial.
You cant use a serial port on ubuntu If you are not in dialout.. and it don't come with root as to su - root and do your will.
You have to sudo which im sure that not going to be easy.
because the ide has to do it. And he is using the ide as his self.


Mint I cant say I've not used it in years it may have the user in dialout
you could use root. Years ago.

But Ubuntu doesn't like things to be done as root want's you to sudo to use root's power.

But I've looked at this and from what i see something is not right with the usb
I maybe wrong but i thing his laptop is using the pcmcia bus to get the usb ports
 
Last edited:

be80be

Joined Jul 5, 2008
2,395
If I had the whole dmesg output from boot to when he plugs the programmer in I probably help fix the problem.
I don't have his laptop or one like it lol but I would say its the bus that his usb is on

If the Op would kindly try this and see if it solves the problem

Run this first and change id to match and run the second one
lspci | grep -i ehci

sudo echo -n "0000:00:1d.7" > /sys/bus/pci/drivers/ehci_hcd/unbind
 
Last edited:

Thread Starter

Motanache

Joined Mar 2, 2015
652
The new error:



Archiving built core (caching) in: C:\Users\ibm\AppData\Local\Temp\arduino_cache_354830\core\core_esp8266_esp8266_generic_CpuFrequency_80,FlashFreq_40,FlashMode_dio,UploadSpeed_115200,FlashSize_512K64,ResetMethod_ck,Debug_Disabled,DebugLevel_None_____c0d2ee38128ffb17719456e91f8527f8.a
Sketch uses 221991 bytes (51%) of program storage space. Maximum is 434160 bytes.
Global variables use 31564 bytes (38%) of dynamic memory, leaving 50356 bytes for local variables. Maximum is 81920 bytes.
warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed





Build options changed, rebuilding all
Archiving built core (caching) in: C:\Users\ibm\AppData\Local\Temp\arduino_cache_253232\core\core_esp8266_esp8266_esp8285_CpuFrequency_80,UploadSpeed_115200,FlashSize_1M512_c0d2ee38128ffb17719456e91f8527f8.a
Sketch uses 221991 bytes (44%) of program storage space. Maximum is 499696 bytes.
Global variables use 31564 bytes (38%) of dynamic memory, leaving 50356 bytes for local variables. Maximum is 81920 bytes.
warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_send_command: wrong direction/command: 0x00 0x08, expected 0x01 0x08
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed



I quit Linux and start with Win and installed the ESP8266 board correctly.
Arduino: 1.8.5

This is a error as GPIO0 is not at the GND. But I measured it in several faces. It is connected to GND.

Strange is that now (with GPIO0 connected to GND), when it should have entered the programming mode, it responds to AT commands:
=>AT
<= AT
OK
I reset after GPIO0 = GND

I have ESP 01.
 
Top