wifi_ducky
wifi_ducky copied to clipboard
Has anyone been able to get the all in one boards from aliexpress to work?
I purchased this board: https://www.aliexpress.com/item/ATMEGA32U4-ESP8266-ESP-12E-ESP12E-Badusb-TF-Micro-SD-Virtual-Keyboard-Development-Board-for-Arduino/32839674193.html?spm=a2g0s.9042311.0.0.R4hbkG
My computer picks it up as an arduino leonardo. So I uploaded the code that allows you to flash the esp board (https://gist.github.com/spacehuhn/b2b7d897550bc07b26da8464fa7f4b36.) Then I tried to use nodemcu to flash it but got the following errors:
Note:Detect serial port changed.
Note:Auto MAP serial port.Port-->COM7
Error:Serial port connect failed, please check it.
Has anyone else been able to get this board or one similar to it working? The bottom says CJMCU-3212 if that helps.
I'd like to know this as well, I haven't been able to get the nodemcu flasher to detect my mac address. I'm a bit concerned as most of the tutorials say the gpio pin is supposed to be disconnected after flashing so it doesn't enter flash mode, but it seems all the pins are permanently soldered on this AIO board. I also haven't been able to find any tutorials involving these aliexpress boards.
There is just one tutorial that I have found for this, but it is entirely in Chinese: https://www.bilibili.com/video/av22645681. If anyone understands it, I would love to figure this out as well. I've been trying to flash just the ESP8266 using a USB-to-TTL device, but haven't had any luck. According to the video, the 4 pins on the right-most side under the "CJMCU" label are Rx, Tx, Vcc, and GND respectively. I've been connecting to those four and then connecting the two circles on the top left, which I presume is to pull CH_PD up. I've been staring at this board for hours, and still haven't been able to make much progress. I'll probably try and pull the board apart once I get some better soldering equipment.
As luck would have it, I speak mandarin. I've watched the video and I think I have the steps down. I'll try to get my hands on that adapter he mentioned and I'll see if it works. In short, though (not having verified my understanding), you grab that adapter, match the holes on the 3212 board to the terminations on the adapter, plug both the badusb and the adapter into your computer, use arduino ide to flash it. But during the entire time you do so, you need to make sure you connect the two silver metallic circles on the upper right side of the TOP of board (this grounds the "firmware flash" pin on the 8266, telling the 8266 that it's supposed to be in fw flashing mode) and hold the white button on the board for the entire duration of the flash. He didn't mention what he used, but I'm assuming it's just the standard nodemcu flasher according to this project's documentation. See if you guys can work it out; if you need more translated details, let me know and I'll give line by line translation. Good luck to all!
So I was able to get the esp flasher uploaded to the arduino with program_pin
and enable_pin
at the defaults (program: 12 & enable 13). I then connected the two metal circles on the board, pressed the reset button and while still connecting the metal circles, I tried to flash with nodemcu. It looked promising at the beginning but after waiting a few minutes, I gave up and checked the logs. When I hold down the white button, the device turns off so I don't think that part is right. Maybe you need to press it at a specific time?
Logs:
Note:Serial port disconnected.
Warning:Serial port closed by user.
Note:Detect serial port changed.
Note:Auto MAP serial port.Port-->COM7
It's nice to find out, that I'm not only one trying to solve the mystery of this CJMCU-3212 badusb device :-)
Has anyone managed to figure out how to use the default firmware? When I powered the device, it creates WLAN AP with SSID "AI-THINKER_
Mine is the same as @pjaakko. I think we need to figure out how to flash the ESP to get the http server running. From what I understand, to do this, we need to get the leonardo to run the flasher arduino sketch which basically just forwards everything to the ESP board. Then we can put the real arduino sketch on it and we should be good.
I also tried an IP scanner to see if it was just running on a different ip or something but I didn't find anything running so I think the http server is just not running.
Maybe @wilson289296 can re check the video to see what exactly we should be doing for flashing. I tried connecting the two metallic circles but when I press and hold the button (which appears to be a reset button), the device will not turn on. So maybe it was some sort of miscommunication or translation error? I'm not quite sure.
I'll try to get a line-by-line translation of the video done by the end of this week, sorry for the slow progress.
@wilson289296 thank you we are waiting)
I hoped that we can flash esp without any additional adapters.
also I think that we can check number of pins connected to esp and atmega program_pin and enable_pin
maybe it is not 12/13 can we check with multimeter?
We seems to be more or less stuck here. Is there any other community, forum or such to discuss about this aliexpress device?
@wilson289296 some news?
I went through that video again and found some info on the pins: https://i.imgur.com/MgTCnhV.jpg. But other than that, no progress :(
Hello guys, im new at this tread. So do we have anything new? @wilson289296 did you translated the video?
Iam trying to get contact with the video creator at bilibili.
For god sake!!!. I can't send a message to the bilibili guy cus i don't have level in the plataform.
Anyone, try to contact this guy, https://space.bilibili.com/39602674/#/, he is creator of the only vídeo in the world explaning how to configure the CJMCU-3212. I don't know how do i get this "trustness level" to contact someone at bilibili.
Hi, I was able to make it work! I made a guide for you
https://github.com/puckk/CJMCU-3212
i lv you man
Hello Thank you puckk for your tutorial :) It works great for me with the flash version for windows Can you get the micro SD slot to work?
Yes, the SD card worked with the examples of the Arduino IDE.
Puckk could you add to your tutorial the method to operate the SD slot ? thank you very much
Hello, I'm planning on buying one of these. Would you recommend them? And @Puckk thanks already for your tutorial, but is there a way on looping the two circles without that special wire or can you just do it with something else? Thank you
@FietsenRijder You should just need to short those two pads together. Any object that conducts electricity (like a paperclip) should work.
@samr28 Thanks for your quick respond do you recommend it and does it work? @puckk @ AieCaPique
yes for me it works very well I just need to make conf for the micro SD is supported
@puckk So the thing is delivered but I don't understand how to flash it I did step 1 of your tutorial and when i plug the usb in a red light on top turns on but I don't understand step 2. First how to install esptool? And what to do then i'm new so can you be a little more specific? Thank You
@FietsenRijder What OS is your computer? You need to install python and then follow the instructions here: https://github.com/espressif/esptool#installation--dependencies
@samr28 I'm running the latest windows 10. I do not understand how to install. @AieCaPique @puckk What sd card are you using and does te 6 pin thing that comes with it work to bridge? And @puckk do you have to bridge first and then plug in or how did you do that, I do not understand it at all.
Please help me
FietsenRijder
Hi, Please help to troubleshoot the steps I am using. There seems to be something I am missing.
- I have uploaded step1.ino using the Leonardo board. It seems that the program is setting the following pins:
- ENABLE to high
- PROGRAM to low
- Removed the device from usb socket and soldered wires to the top two right pads so i can easily join and remove the ends of the wires.
- Joined the wires and inserted the device into the usb port and ran the command. However I am getting the following error message:
esptool.py.exe --trace --baud 115200 --port COM9 write_flash 0x00000 /dev/esp8266_wifi_duck_4mb.bin --flash_size 4MB --flash_mode dio --flash_freq 40m
esptool.py v2.5.0
Serial port COM9
Connecting...TRACE +0.000 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.000 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.103 Timed out waiting for packet header
.TRACE +0.054 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
I am running this on Windows 10 by the way and will try to run on Mac OS later as the interaction between serial port and esptool might not be working properly. Appreciate any help you might provide in the meanwhile. Thanks.
@riogesulgon I had the same issue with esptool. To fix it, I used nodemcu which worked the first try.
Thanks @samr28! I was able to flash the firmware using the nodemcu flasher (https://github.com/nodemcu/nodemcu-flasher). My board is now working properly.