-
-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I CAN RUN SCRIPS BUT THEY STOP - CJMCU 3212 - INFO #124
Comments
Thanks for opening your first issue here! 🎉 |
i hope @spacehuhn reply to me i would like to get it working. |
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
|
i just found these lines in ATMEGA .ino in com.cpp
I think it is related to the error @spacehuhn :c im triyin to learn the languaje just for fix this error, would like help :c |
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.. |
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. |
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. |
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. |
Hope find solution, i will get the same hardware |
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 ATMEGAHERE MY CJMCU WITH SWITCHi solder a switch in CJMCU to switch between ESP or ATMEGA flash modes. GPIO0 & GND |
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... |
The new "duck" works but sometimes script are not executed right ? |
Hi, could you post your |
Yeah i think that i enabled Both i2c and serial idk maybe you can help <3 |
My Communication Settings ESP/Config.hMy Communication Settings ATMEGA/Config.h |
It looks like only serial is enabled, so that isn't a problem I think. |
the configuration when flashing can give problems? Step1.ino TO FLASH ESP FIRST FLASH THIS IN ATMEGA..ESP FLASH CONFATMEGA FLASH CONF |
I followed this Tutorial in Chinnese Page |
For me model gpio (describe on github project for DIY wifiduck) are not the same than on this hardware @Z3R0NULL |
This is for old duck |
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 |
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... |
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 |
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... |
I will check when i will receive hardware but i’m pretty sure probleme come from this. |
UPDATE PIN TESTED/CHECK PICSSDA PINSCL PINNo continuity in both pins, im doing good?? IDK |
Ok so can you connect sda to sda and slc to slc with some grip or anything else ? |
there is no possibility of it being damaged? or something? |
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 if you connect wrong pin or touch 5v there is possible damage. I have to find a smaller iron than the one i have or order small grip by the way. |
Well, I'll wait. I don't want to touch without knowing to not damage it. but I think that impatience and curiosity won me over. 😅 |
After this defeat not sure i will tell you if it works !! |
did it arrive? |
Just kidding about football match argentina / french (i’m french) |
Oooh i understand now 🤣🤣 And how Long to it to arrive? |
not expected before 28/12 |
hope you have a nice Christmas. |
Happy xmas too ! |
Yup, so how are you. |
Hello how are you, I decided to take a risk xd. |
Soo |
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 ? |
Hey @Z3R0NULL pudiste darle solucion al problema? |
Nope, and you? |
Created a fork with install instructions for everyone struggeling with the CJMCU3212: |
TomFang1, please a binary precompiled esp8266 if possible ! |
Any update? |
when I try string 1234567890 it just type 1234 and stop, but when I move my mouse it continue to type and stop. |
@Z3R0NULL Any idea what going on? |
I think should make mouse move little bit to fix it, but it doesn't quite make sense. |
About what? |
Is there an existing issue for this?
Describe your problem
I CAN RUN SCRIPS BUT THEY STOP MIDWAY
Steps to reproduce
i got a CJMCU 3212 the only badusb that can be obtained in argentina besides attiny85
I flashed it successfully, sometimes it can run a script, but sometimes it stops in the middle of the script... IDK WHY
STEPS
I flashed ESP with the bin file, okay. I just uncommented line 16 in esp_duck/config.h like this
because if I don't uncomment that line it gives me an error
INTERNAL CONNECTION PROBLEM
and it doesn't execute scriptsok now i flashed the ATMEGA with atmega_duck.ino
I connect to wifiduck's wifi and when I try to run the script it works fine, but sometimes, and sometimes not.
EXAMPLE SCRIPT RUNNING
I open the serial monitor in atmega and it gives me this. I notice that when this line appears. the script stops
Replying with status {wait: 1,repeat: 0} [04 01 00 00 ]
as you can see it appears
{wait 1,
but i realised that this is wrong because when a script sucessfully run it says wait 0
Replying with status {wait: 0,repeat: 0} [04 00 00 00 ]
SUCESSFULLY SCRIPT RUN EXAMPLE DEBUG OUTPUT SERIAL MONITOR ATMEGA - "{WAIT: 0,"
as you can see this time it opened the notepad and successfully writed HELLO WORLD! but lets see whats happen sometimes
FAIL SCRIPT RUN EXAMPLE DEBUG OUTPUT SERIAL MONITOR ATMEGA - "{WAIT: 1,"
now as you can see it stopped at mid of the script saying the
{wait: 1,
and the page saysRUNNING /SCRIPT
in blue idk why i would like more help if you want more debug log i do more test THANKS A LOT!! sorry for my bad english :DWhat hardware are you using?
CJMCU 3212
Anything else?
i think it maybe cause with the times or something like that idk... i tried to change the esp_duck.ino line 19 delay line its default in 200 i changed to 1000 and it dont worked. but i dont know how the code works so i changed it with no idea what i was doing.
The text was updated successfully, but these errors were encountered: