Giter Club home page Giter Club logo

Comments (63)

todely avatar todely commented on September 22, 2024 1

The new "duck" works but sometimes script are not executed right ?

from wifiduck.

todely avatar todely commented on September 22, 2024 1

image

image

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

image

from wifiduck.

michalmonday avatar michalmonday commented on September 22, 2024 1

It looks like only serial is enabled, so that isn't a problem I think.

from wifiduck.

todely avatar todely commented on September 22, 2024 1

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.

todely avatar todely commented on September 22, 2024 1

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.

todely avatar todely commented on September 22, 2024 1

I will check when i will receive hardware but i’m pretty sure probleme come from this.

from wifiduck.

todely avatar todely commented on September 22, 2024 1

I have look the video ok
Read this
#30

It’s our problem

from wifiduck.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024 1

@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 ?

edit: found header pin
FF1456BF-360C-4B27-A3B0-250FD5273E49

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.

todely avatar todely commented on September 22, 2024 1

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.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024 1

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.

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.

todely avatar todely commented on September 22, 2024 1

After this defeat not sure i will tell you if it works !!
😇

from wifiduck.

todely avatar todely commented on September 22, 2024 1

Just kidding about football match argentina / french (i’m french)
Not arrive for the moment

from wifiduck.

todely avatar todely commented on September 22, 2024 1

not expected before 28/12

from wifiduck.

todely avatar todely commented on September 22, 2024 1

Happy xmas too !

from wifiduck.

todely avatar todely commented on September 22, 2024 1

Hello !
Item seems to be stuck somewhere in china since 16 december...
image

from wifiduck.

SitrakaResearchAndPOC avatar SitrakaResearchAndPOC commented on September 22, 2024 1

TomFang1, please a binary precompiled esp8266 if possible !

from wifiduck.

welcome avatar welcome commented on September 22, 2024

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.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

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?

ill let this pics of my board
Teclado-Virtual-de-CJMCU-3212-Badusb-ATMEGA32U4-WIFI-ESP-8266-almacenamiento-TF
image

from wifiduck.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

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.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

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.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

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.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

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.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

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.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

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.

todely avatar todely commented on September 22, 2024

Hope find solution, i will get the same hardware

from wifiduck.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

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

imagen_2022-12-13_113422242

HERE MY CJMCU WITH SWITCH

CJMCU FRONT
CJMCU BACK

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.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

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.

michalmonday avatar michalmonday commented on September 22, 2024

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.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

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.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

My Communication Settings ESP/Config.h

image

My Communication Settings ATMEGA/Config.h

image

@michalmonday

from wifiduck.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

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..

image

ESP FLASH CONF

image

ATMEGA FLASH CONF

image

@michalmonday
@todely

from wifiduck.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

I followed this Tutorial in Chinnese Page
https://www.wuifan.cn/post/burning-wifiduck-into-cjmcu-3212/

from wifiduck.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

Nodemcu Flasher to flash esp-wifi-duck.bin CONF

image

from wifiduck.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

I Tried this Changing 115200 to 9600 in Step1.ino But Dont work idk if this is correct...

image

from wifiduck.

todely avatar todely commented on September 22, 2024

I followed this Tutorial in Chinnese Page
https://www.wuifan.cn/post/burning-wifiduck-into-cjmcu-3212/

This is for old duck

from wifiduck.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

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.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

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.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

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.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

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.

https://youtu.be/wDi8iJEtYrk

(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

@michalmonday
@todely

from wifiduck.

todely avatar todely commented on September 22, 2024

@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 ?

edit: found header pin
FF1456BF-360C-4B27-A3B0-250FD5273E49

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.

todely avatar todely commented on September 22, 2024

We are looking for where slc and sda are on the board, if they are free or connected to something

https://i0.wp.com/randomnerdtutorials.com/wp-content/uploads/2019/05/ESP8266-ESP-12E-chip-pinout-gpio-pin.png?quality=100&strip=all&ssl=1

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.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

We are looking for where slc and sda are on the board, if they are free or connected to something

https://i0.wp.com/randomnerdtutorials.com/wp-content/uploads/2019/05/ESP8266-ESP-12E-chip-pinout-gpio-pin.png?quality=100&strip=all&ssl=1

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

Picsart_22-12-13_20-37-23-161

SCL PIN

Picsart_22-12-13_20-45-30-460

No continuity in both pins, im doing good?? IDK
How long for you get your CJMCU @todely ??

from wifiduck.

todely avatar todely commented on September 22, 2024

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.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

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.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

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.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

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.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

hope you have a nice Christmas.

from wifiduck.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

Yup, so how are you.
Is there any news about that?
😅

from wifiduck.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

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.

todely avatar todely commented on September 22, 2024

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)

image

If you wanna try you need to test with some electronic grip (better than soldering for testing purpose)
image

from wifiduck.

todely avatar todely commented on September 22, 2024

image

Receive, use i2c for communication between esp and atmega
Wifi server is ok
image

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)

Edit:
Parameter in esp sketch
image

from wifiduck.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

Soo
Hii... did you manage to make it work? does it work fine and no errors?

from wifiduck.

todely avatar todely commented on September 22, 2024

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.

bojanichj avatar bojanichj commented on September 22, 2024

Hey @Z3R0NULL pudiste darle solucion al problema?

from wifiduck.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

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.

NULL-BITS avatar NULL-BITS commented on September 22, 2024

Created a fork with install instructions for everyone struggeling with the CJMCU3212:
https://github.com/TomFang1/WiFiDuck_CJMCU_3212/tree/master

from wifiduck.

PogusTheWhisper avatar PogusTheWhisper commented on September 22, 2024

Any update?

from wifiduck.

PogusTheWhisper avatar PogusTheWhisper commented on September 22, 2024

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.

PogusTheWhisper avatar PogusTheWhisper commented on September 22, 2024

@Z3R0NULL Any idea what going on?

from wifiduck.

PogusTheWhisper avatar PogusTheWhisper commented on September 22, 2024

I think should make mouse move little bit to fix it, but it doesn't quite make sense.

from wifiduck.

NULL-BITS avatar NULL-BITS commented on September 22, 2024

Any update?

About what?

from wifiduck.

Z3R0NULL avatar Z3R0NULL commented on September 22, 2024

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

IMG_20240610_224401790_HDR.jpg

from wifiduck.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.