Comments (63)
The new "duck" works but sometimes script are not executed right ?
from wifiduck.
something wrong here perhaps ? not same connexion than model, so perhaps problem ?
try to change in source D1 (GPIO5) by D3 (GPIO0) ?
In config.h (ESP part) change
#define I2C_SCL 5
by
#define I2C_SCL 0
from wifiduck.
It looks like only serial is enabled, so that isn't a problem I think.
from wifiduck.
For me model gpio (describe on github project for DIY wifiduck) are not the same than on this hardware
@Z3R0NULL
have you try to change gpio for scl gpio from 5 to 0 in communication settings ?
from wifiduck.
For me model gpio (describe on github project for DIY wifiduck) are not the same than on this hardware
@Z3R0NULL have you try to change gpio for scl gpio from 5 to 0 in communication settings ?I just flashed but it's still the same without any changes, it's still working but it stops sometimes... I'll upload a video of my error so you can analyze it better... @todely
I just changed ESP/Config.h like you said
Probably need to change somewhere else i didn’t check all the code bit ot’s explain on github project page : new connexion between esp and atmega from old duke to new duck
from wifiduck.
I will check when i will receive hardware but i’m pretty sure probleme come from this.
from wifiduck.
I have look the video ok
Read this
#30
It’s our problem
from wifiduck.
@michalmonday have found same thing than me :i2c is not connected on 3212 but soldering missing 2 connexion is possible
@michalmonday where is j2 on the board ?need to solder slc and sda to esp to make i2c work
@Z3R0NULL could you check if these 2 pin are not already connected to esp somewhere ? (With multimeter)
I'm not at home right now, tell me which pins you want me to check, I have a multimeter...
Draw them for me in the images that I sent you.. i Will check when i get back to home.
from wifiduck.
I just follow official tutorial for DIY on wifiduck, you see SDA is connected to SDA and SLC to SLC to talk by I2C protocol and not RX/TX
https://github.com/SpacehuhnTech/WiFiDuck#diy-hardware
if you connect wrong pin or touch 5v there is possible damage.
But wait i try by myself, easy to get in my country.
I have to find a smaller iron than the one i have or order small grip by the way.
from wifiduck.
I just follow official tutorial for DIY on wifiduck, you see SDA is connected to SDA and SLC to SLC to talk by I2C protocol and not RX/TX
https://github.com/SpacehuhnTech/WiFiDuck#diy-hardwareif you connect wrong pin or touch 5v there is possible damage.
But wait i try by myself, easy to get in my country.I have to find a smaller iron than the one i have or order small grip by the way.
Well, I'll wait.
you will be my hero.
I don't want to touch without knowing to not damage it.
but I think that impatience and curiosity won me over. 😅
from wifiduck.
After this defeat not sure i will tell you if it works !!
😇
from wifiduck.
Just kidding about football match argentina / french (i’m french)
Not arrive for the moment
from wifiduck.
not expected before 28/12
from wifiduck.
Happy xmas too !
from wifiduck.
Hello !
Item seems to be stuck somewhere in china since 16 december...
from wifiduck.
TomFang1, please a binary precompiled esp8266 if possible !
from wifiduck.
Thanks for opening your first issue here! 🎉
👉 Be sure to:
1. 📖 Have a look at the Wiki and README for information
2. 🔍 Search for similar issues (open and closed)
3. ✍️ Provide enough information to understand, recreate and help out with your problem
4. ℹ️ Let us know if you find a solution
5. 📕 Close the issue when your problem has been solved
from wifiduck.
i hope @spacehuhn reply to me i would like to get it working.
i posted the ATMEGA debug serial monitor but i wanna see more detailed debug but i dont know how to do it...
i wanna see the ESP debug how i have to do?
from wifiduck.
i think maybe the problem is in here?? idk :( would like help im givin all the info that i have at this moment
Lines in ESP_DUCK / COM.CPP file
typedef struct status_t {
unsigned int version : 8;
unsigned int wait : 16;
unsigned int repeat : 8;
} status_t;
namespace com {
// =========== PRIVATE ========= //
buffer_t receive_buf;
buffer_t data_buf;
bool start_parser = false;
bool ongoing_transmission = false;
status_t status;
void update_status() {
status.wait = (uint16_t)receive_buf.len
+ (uint16_t)data_buf.len
+ (uint16_t)duckparser::getDelayTime();
status.repeat = (uint8_t)(duckparser::getRepeats() > 255 ? 255 : duckparser::getRepeats());
}
// ========== PRIVATE SERIAL ========== //
#ifdef ENABLE_SERIAL
void serial_begin() {
debugsln("ENABLED SERIAL");
SERIAL_COM.begin(SERIAL_BAUD);
}
void serial_send_status() {
update_status();
#ifdef ENABLE_DEBUG
debugs("Replying with status {");
debugs("wait: ");
debug(status.wait);
debugs(",repeat: ");
debug(status.repeat);
debugs("} [");
for (int i = 0; i<sizeof(status_t); ++i) {
char b = ((uint8_t*)&status)[i];
if (b < 0x10) debug('0');
debug(String(b, HEX));
debug(' ');
}
debugsln("]");
#endif // ifdef ENABLE_DEBUG
SERIAL_COM.write(REQ_SOT);
SERIAL_COM.write((uint8_t*)&status, sizeof(status_t));
SERIAL_COM.write(REQ_EOT);
SERIAL_COM.flush();
}
void serial_update() {
unsigned int len = SERIAL_COM.available();
if ((len > 0) && (receive_buf.len+len <= BUFFER_SIZE)) {
SERIAL_COM.readBytes(&receive_buf.data[receive_buf.len], len);
receive_buf.len += len;
}
}
// ===== PUBLIC ===== //
void begin() {
status.version = 0;
status.wait = 0;
status.repeat = 0;
i2c_begin();
serial_begin();
}
void update() {
i2c_update();
serial_update();
if (react_on_status) {
react_on_status = false;
debug("Com. status ");
if (status.version != COM_VERSION) {
debugf("ERROR %u\n", status.version);
connection = false;
if (callback_error) callback_error();
} else if (status.wait > 0) {
debugf("PROCESSING %u\n", status.wait);
} else if (status.repeat > 0) {
debugf("REPEAT %u\n", status.repeat);
if (callback_repeat) callback_repeat();
} else if ((status.wait == 0) && (status.repeat == 0)) {
debugln("DONE");
if (callback_done) callback_done();
} else {
debugln("idk");
}
}
}
from wifiduck.
i just found these lines in ATMEGA .ino in com.cpp
void update_status() {
status.wait = (uint16_t)receive_buf.len
+ (uint16_t)data_buf.len
+ (uint16_t)duckparser::getDelayTime();
status.repeat = (uint8_t)(duckparser::getRepeats() > 255 ? 255 : duckparser::getRepeats());
}
#ifdef ENABLE_DEBUG
debugs("Replying with status {");
debugs("wait: ");
debug(status.wait);
debugs(",repeat: ");
debug(status.repeat);
debugs("} [");
for (int i = 0; i<sizeof(status_t); ++i) {
char b = ((uint8_t*)&status)[i];
if (b < 0x10) debug('0');
debug(String(b, HEX));
debug(' ');
}
debugsln("]");
I think it is related to the error @spacehuhn :c
Maybe I have to change something for my hardware idk
im triyin to learn the languaje just for fix this error, would like help :c
from wifiduck.
i think the error is related by the times or something like that because, it run scrips sometime so it work fine, but sometimes not..
maybe is related to comunication times beetwen esp and atmega i dont know im talking from ignorance.
from wifiduck.
DAY: 3 - I am trying to communicate with other people who know about the topic. I hope they answer I've been trying to solve it for days and they are my last option.
from wifiduck.
DAY: 4 - I saw that I will not receive help soo, I started to investigate for myself. I have learned a lot about the arduino language which is based on C / C++ but I still don't understand the code of the Wifi_Duck project.
from wifiduck.
DAY: 6 - I can't, I already tried everything, I still don't want to give up but I don't know what to do anymore. One good thing is that I learned many things. Well I'll keep trying, never give up.
from wifiduck.
Hope find solution, i will get the same hardware
from wifiduck.
DAY: 10 - I think we're going to need help... I will upload a photo of diagram and my hardware modified.
IN THIS IMAGE WE CAN SEE PIN DIAGRAM TO FLASH ESP OR ATMEGA
HERE MY CJMCU WITH SWITCH
i solder a switch in CJMCU to switch between ESP or ATMEGA flash modes. GPIO0 & GND
It is a good hardware because it have 3 modules SDCARD,ESP,ATMEGA but there is not enough information.
from wifiduck.
Hope find solution, i will get the same hardware
You can do it work but with the old wifi duck repositori, i dont like the old because no languaje layout like EEUU,FR,AR,ES,JP, etc...
from wifiduck.
Hi, could you post your Communication Settings
section settings from config.h files of both ESP and Atmega? No idea if that's the case but maybe you enabled both: I2C and Serial, and they sometimes interfere with each other because they seem to use the same buffer?
from wifiduck.
Hi, could you post your
Communication Settings
section settings from config.h files of both ESP and Atmega? No idea if that's the case but maybe you enabled both: I2C and Serial, and they sometimes interfere with each other because they seem to use the same buffer?
Yeah i think that i enabled Both i2c and serial idk maybe you can help <3
How should I configure the i2c or serial?... anyway, now I'm posting my Communication Setting
..
from wifiduck.
My Communication Settings ESP/Config.h
My Communication Settings ATMEGA/Config.h
from wifiduck.
It looks like only serial is enabled, so that isn't a problem I think.
the configuration when flashing can give problems?
I'm using this anyway...
Step1.ino TO FLASH ESP FIRST FLASH THIS IN ATMEGA..
ESP FLASH CONF
ATMEGA FLASH CONF
from wifiduck.
I followed this Tutorial in Chinnese Page
https://www.wuifan.cn/post/burning-wifiduck-into-cjmcu-3212/
from wifiduck.
Nodemcu Flasher to flash esp-wifi-duck.bin CONF
from wifiduck.
I Tried this Changing 115200 to 9600 in Step1.ino But Dont work idk if this is correct...
from wifiduck.
I followed this Tutorial in Chinnese Page
https://www.wuifan.cn/post/burning-wifiduck-into-cjmcu-3212/
This is for old duck
from wifiduck.
For me model gpio (describe on github project for DIY wifiduck) are not the same than on this hardware
@Z3R0NULL have you try to change gpio for scl gpio from 5 to 0 in communication settings ?
I just flashed but it's still the same without any changes, it's still working but it stops sometimes... I'll upload a video of my error so you can analyze it better... @todely
I just changed ESP/Config.h like you said
from wifiduck.
For me model gpio (describe on github project for DIY wifiduck) are not the same than on this hardware
Maybe that's the problem, why the old Wifi-Duck-Old repository works but the new one doesn't?
Maybe you have to adapt the Wifi-Duck-New code to make it work.
We have to look at the Wifi-Duck-Old code and adapt the new one from there... maybe change the GPIO code as you say?
Unfortunately I don't have the knowledge of electronics or arduino programming for that...
@todely
@michalmonday
from wifiduck.
For me model gpio (describe on github project for DIY wifiduck) are not the same than on this hardware
Maybe that's the problem, why the old Wifi-Duck-Old repository works but the new one doesn't?
Maybe you have to adapt the Wifi-Duck-New code to make it work.
We have to look at the Wifi-Duck-Old code and adapt the new one from there... maybe change the GPIO code as you say?
Unfortunately I don't have the knowledge of electronics or arduino programming for that... @todely @michalmonday
I tried to do this a few days ago, but failed.
I tried to pass the code from Wifi-Duck-Old to Wifi-Duck-New...
but it didn't come out
from wifiduck.
I just recorded a video.
as you can see in the video the script never ends successfully, but the atmega runs as a keyboard.
I have to say that sometimes the script does finish successfully.
(Srry for quality select 720p res)
I tryed other scripts/payloads but same result.
Here is the script that i want to run in video...
LOCALE ES
DEFAULTDELAY 200
GUI r
STRING notepad.exe
ENTER
STRING ------------
ENTER
STRING ---HACKED---
ENTER
STRING ------------
ENTER
STRING ------------
ENTER
STRING ---HACKED---
ENTER
STRING ------------
ENTER
STRING ------------
ENTER
STRING ---HACKED---
ENTER
STRING ------------
CTRL +
REPEAT 40
from wifiduck.
@michalmonday have found same thing than me :i2c is not connected on 3212 but soldering missing 2 connexion is possible
@michalmonday where is j2 on the board ?
need to solder slc and sda to esp to make i2c work
@Z3R0NULL could you check if these 2 pin are not already connected to esp somewhere ? (With multimeter)
from wifiduck.
We are looking for where slc and sda are on the board, if they are free or connected to something
to make duck work i2c have to been connected between esp and atmega
solution is probably to solder slc and sda from esp to slc and sda on atmega (pin i have mark in red on board picture in my last post, you can try with small « alligator clip » to avoid soldering for nothing)
from wifiduck.
We are looking for where slc and sda are on the board, if they are free or connected to something
to make duck work i2c have to been connected between esp and atmega
solution is probably to solder slc and sda from esp to slc and sda on atmega (pin i have mark in red on board picture in my last post, you can try with small « alligator clip » to avoid soldering for nothing)
UPDATE PIN TESTED/CHECK PICS
SDA PIN
SCL PIN
No continuity in both pins, im doing good?? IDK
How long for you get your CJMCU @todely ??
from wifiduck.
Ok so can you connect sda to sda and slc to slc with some grip or anything else ?
I will get it in 10 days i think
from wifiduck.
Ok so can you connect sda to sda and slc to slc with some grip or anything else ? I will get it in 10 days i think
there is no possibility of it being damaged? or something?
because here in my country it is impossible to get these things, since amazon and those stores do not work.
from wifiduck.
After this defeat not sure i will tell you if it works !!
😇
did it arrive?
will you try it?
ooh i'm so nervous 😭
I hope it works.
from wifiduck.
Just kidding about football match argentina / french (i’m french)
Not arrive for the moment
Oooh i understand now 🤣🤣
I thought we would lose in the second half.
I went to the bathroom one minute and when I got back France had 2 goals 😯.
here in Argentina people turn crazy in the streets.
And how Long to it to arrive?
from wifiduck.
hope you have a nice Christmas.
from wifiduck.
Yup, so how are you.
Is there any news about that?
😅
from wifiduck.
Hello how are you, I decided to take a risk xd.
since I have it saved and if I don't risk it I won't be able to use it.
But I need a little of your help. I only have to solder those wires or what? Can you guide me? thank you very much :D
from wifiduck.
Hello !
I have check and item is moving from china today (after 1 month stay somewhere...! )
Expecting a delivery in few days (it was a 10 day delivery)
If you wanna try you need to test with some electronic grip (better than soldering for testing purpose)
from wifiduck.
Receive, use i2c for communication between esp and atmega
Wifi server is ok
Does you have a script who doesn't work for you ? (The one in your video have error on "ctrl+", i have to remove this line)
from wifiduck.
Soo
Hii... did you manage to make it work? does it work fine and no errors?
from wifiduck.
Everything seems to work but your script (in your video) have an error on line "ctrl+"
Does you have a script not working For you and you want i try ?
from wifiduck.
Hey @Z3R0NULL pudiste darle solucion al problema?
from wifiduck.
Hey @Z3R0NULL pudiste darle solucion al problema?
Nope, and you?
i think the jumper is the only option like todely says in te comments.
from wifiduck.
Created a fork with install instructions for everyone struggeling with the CJMCU3212:
https://github.com/TomFang1/WiFiDuck_CJMCU_3212/tree/master
from wifiduck.
Any update?
from wifiduck.
when I try string 1234567890 it just type 1234 and stop, but when I move my mouse it continue to type and stop.
from wifiduck.
@Z3R0NULL Any idea what going on?
from wifiduck.
I think should make mouse move little bit to fix it, but it doesn't quite make sense.
from wifiduck.
Any update?
About what?
from wifiduck.
Any update?
Hello, I already have my CJMCU 3212 working correctly, you just have to make a jumper as Todely says, from the pins marked in the image SDA TO SDA AND SDL TO SDL from the esp to the atmega
Check The images above
This jumper
from wifiduck.
Related Issues (20)
- WiFi not visible to mobile device HOT 2
- Hardware HOT 2
- WIFI WHID HOT 2
- FileStorage library invoked from serial_bridge.cpp not working with Arduino Pro Micro HOT 2
- Can you flash the DSTIKE USB32? HOT 2
- will it work on pi pico?? add the option!! HOT 2
- [Feature Request]: HID and STORAGE HOT 1
- i2c loop error HOT 3
- Unable to save settings to enable Execute on start up. HOT 2
- Probleme while flashing Pro Micro HOT 4
- [Feature Request]: PLEASE PUT A RPI PICO W OPTION!!! HOT 1
- [Locale]: IT HOT 5
- a simple button[Feature Request]: HOT 1
- Question with SD HOT 1
- help me to find file Main connections (D1 -> 3, D2 -> 2) HOT 2
- [Feature Request]: Support ESP32-S2 HOT 3
- [Feature Request]: brother use esp32 and pi pico please HOT 1
- Internet connection problem HOT 1
- Esp32 s2 mini gets disconnected from usb HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wifiduck.