-
Notifications
You must be signed in to change notification settings - Fork 32
[Feature request] Serial Communication #1
Comments
Good idea. Though it will take much efforts and time, I will try it (I don't know how much time it will take, but not less than a year because of my studies 🔢 ). 👍 |
I tried my first step with the library you suggested. But, it has been deprecated and the APIs are limited, I'm having problem to do read/write. I trying to migrate with this one. |
nice finding! And the UsbSerial project seems to handle CH34x while the other had only limited support with CP210x. Also interesting to note the support for a SPI interface 🤔 |
Yes, but so sad, the same problem here 👎
I don't know where the bug exists, but I'm getting a totally unreadable string from output. Mostly, a byte encoding-decoding related problem. But, I don't think it's unfixable. I've to try hard tho. In parralell , I'll try to go with the lib and thinking to go with your : serial-only-modified-library Though, till now, I only tried setting up the board uploading *.bins, It's my first try to use Arduino with your lib~. Let's see what happens.. |
Why can't get any output through serial from you lib? Flash settings: recommended settings declared in spacehunn's wiki Even , reseting didn't print anything |
The recommended settings for the serial: Maybe lower the baud rate to 9600 in the deauther code and test its functionalities from a PC first, then try at 9600 on the Android? Even at 9600 I had problems getting all the output forwarded to the android app though. |
When I started today morning without changing the baud rate to 9600 as you proposed, I got below the console messages @115200
But, sending some command from the help message didn't help by giving a reply. I'm testing manually first from PC. after I get some positive result, then will move to code. |
Oh god. this app on the 2nd library works well. Now, I 've to find the way into it's code. Seeing some light of hope:+1: |
The same developer did the library, the droidterm app, and this example project: |
Yes, that's why I'm focused on it.
…On Thu 7 Jun, 2018, 13:06 tobozo, ***@***.***> wrote:
The same developer did the library, the droidterm app, and this example
project:
https://github.com/felHR85/SerialPortExample
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATw558h9vbfgWSBLfoYSc5boIVs5l8Xwks5t6NfygaJpZM4O1pQ_>
.
|
Everything in my code as well, it receives output. I think there is some text encoding used which is only known to him... His library is open-source but the app isn't and his example just sucks. Even, he is aware that, he's app is paid. I've no other way, I'm trying to apply reverse-engineering on his app's apk. |
Edit: Getting pretty well Java code from RE is too tough. I've set up and cleaned up all and going to test the code. I hope , it would throw an exception somewhere.. 👎 |
I failed: I've now to go through a new way. It all could be easy if felhr85 made his app open-source. JD can't decompile it in right way. 👎 Output I got : Each type of encoding are covered by newline :
|
looks like the matrix 🤣 I guess you've already played with different combinations of baudrates and parity ? Also what version of the UsbSerial Java code are you using ?
and
|
Wait a minute, looks like you got it right. I remembered that the example used lib ver, 3.3 I'm gonna try that.. maybe after 12hours cause tomorrow is my exam result, I'm too nurvous to think all of this. I think the NL/CR settings won't behave as bad guys, I checked that by changing related settings on the official app. |
crossing fingers for your exam result 🤞 |
As I'm not able to detect in which encoding I've to try to decode the response, I'm going to try every encoding available there in Java (java.io/java.lang) But 👎 It's below the list I extracted from the docs It's my last hope because I don't know more than that using a encoding to decode. Looks like I've to try each of them and to check the output. Hope I'll get success Looks like DeAuther is making of me
|
Now I found the problem here! |
Well, I've got a very good output which makes with me
|
Oh no!! @tobozo 🥇 My code is absolutely okay! That's the problem with the Board or Spacehunn's DeAuther I uploaded to my Arduino UNO instead of the ESP8266, and I got some perfect result!!!
But, the Chinese word comes from You saved my day suggesting to use the method above to inspect primarily. 👍 😄 Looking forward to your response |
I've found the problem. It lies on DeAuther, the software itself somehow. I've tested the sample and deAuther output both with the same ESP-12 installed ESP8266. The sample gives expected output, but the problem is with deauther.. I don't know what's inside is happening in deAuther (I don't know C or C++). Even if don't specify data, parity and stop bits by using It just not working exclusively for DeAuther... 😿 😭 ⛔ |
Oh god! It just got fixed in a second with which I was doing massacre for a month!! Inserting a blank println in the loop fixed this!!
Now, the next work to manipulate the response!! |
Everything is going well, I've already jsonified the
↓
I've to cut off some outputs because trying to including them will make a messy thing. |
@tobozo I'm getting an error sometimes when I'm using Error log :
|
you need to install this, then compile the sketch, then you can decode the exception and see what line of the code triggered it |
tobozo, I don't know anything about C/C#/C++ , just able to edit spacehunn's code because of the code structure, which is like Java mostly. I would get killed if it was written in ruby or something. 🚫 However, I'm using Atom Editor to edit the code and Arduino IDE to compile (I've set external editors true). The problem is I'm too slow with it, because it doesn't support one-the-fly lint error checking or intelligent code autocomplete like what IntelliJ Idea or Android Studio does. I've installed the linter-gcc plugin and set up everything but it doesn't work well. @tobozo Can you suggest me one IDE which will help me to do things faster like the Veyron? |
@ExploiTR I use the Arduino IDE editor or nano, never used any linting on this as the IDE would complain soon enough of my errors. [troll] Also trying to go faster is only a symptom of Java [/troll] |
@tobozo You can try the Microsoft VS Code It's too good. Supports many.... languages and with a good UI. Even, it supports all features of the Arduino IDE, from installing your(tobozo's) firmware to compiling and flashing the bin. I don't have to switch to Arduino editor and atom again and again. It's really responsive and fast. |
I'm already hosted on github so I won't add this extra m$ layer (and dependencies) to my stacks, but I recon I'll have to install it for the sake of compatibility with some libraries |
There are several options to disable sending information in VS Code itself. Though, you can disable network access through the firewall for VS Code when you're done installing all libs or setting it up in peace. 😼 |
@tobozo Spacehunn wrote a too much complex code and it's likely that it will make me mad. I'm thinking to write a personal library with normal features. What do you suggest? One after one, problems are not meeting with me at an end with his lib. Last time, you saw, it's not detecting stations, even I can't understand the code due to the complexity. Now I do understand why you gave up 😨 It's not easy as it sounds. |
Actually I ended up doing yak shaving 🤣 |
Haha 😆 , He has included support for various things in it which isn't required for setting up the Json-data api. Instead, they're making a mess. I will only use Attack/Access points/Scan / Stations and the SerialInterface class. Everything outta it, I'll be removing them. Obviously, the AP will be totally turned off as you've done with your library. Also, I'm shaving up unnecessary methods of those class too. Hope it ends soon. |
In an modified earlier release of esp8266_deauther I played with phonegap/cordova/cordovaduino to forward every HTTP message through the serial connection (deauther plugged to the android OTG) and also send orders to the ESP without using the web interface.
It wasn't working well, communications were slow and buggy, going further required some Java skills I don't have so I gave up.
But there is still a need to be able to communicate with the deauther while the WiFi connection is busy deauthing. While any client (App or browser) will be disconnected as soon as the deauthing starts, the deauther is still spamming logs through the serial and accepting orders.
Is it worth speculating on the stability of https://github.com/mik3y/usb-serial-for-android (I think Cordovaduino uses an old version of it) and asking for such a feature addition?
Great initiative anyway, very much appreciated!
The text was updated successfully, but these errors were encountered: