- Posts: 7
Eachine E58,
- cluxter
- Topic Author
- Offline
Please Log in or Create an account to join the conversation.
- bennymusik2@yahoo.com
- Offline
- Posts: 5
Benny Jensen Pedersen
Please Log in or Create an account to join the conversation.
- ndwest
- Offline
- Posts: 4
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- ndwest
- Offline
- Posts: 4
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- Drones
- Offline
- Posts: 5
I attached some pictures of the board.
Please Log in or Create an account to join the conversation.
- ndwest
- Offline
- Posts: 4
Attachments:
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
What about the quad ? Can you take some pictures of the flight controller and try to identify the ICs ?
If it's XNS1042 / PAN163CX based it probably can be reverse engineered but not with a simple logic analyzer, a SDR device is required.
Please Log in or Create an account to join the conversation.
- Burntstanding
- Offline
- Posts: 12
www.utdallas.edu/~juniavalente/valente17iotsp1.pdf
but all the lewei_cmd protocols I think are sending video info. Which led me to another article and this guy has done all the hard work.
blog.horner.tj/hacking-chinese-drones-for-fun-and-no-profit/
So it looks like the phone is just blasting out UDP datagrams with roll, pitch, thottle info every few fractions of a second and the drone acts accordingly. I've just connected to it's wifi network used a very simple UDP packet sender from my phone and sent the hex digits "66 80 80 80 80 01 01 99" and it went into launch mode (I was hanging onto it).
So my current thoughts are I've ordered a wifi module to make an arduino that generates the UDP packets based on PPM input. Although I have come across a hackaday project who came up with a proof of concept library that can make an NRF2410+ generate UDP. But I don't know enough about that architecture or the way the Deviation communicates with the chip. But I would assume that the start of the packet is pretty much fixed IP from and to so to simulate the UDP packet would be about how the binary data was written. And certainly I think it would open up tens of these WiFi controlled drones if it could be achieved. I am uncertain if actually joining the wifi network is necessary.
I also intent to set up a wifi hotspot on my PC with the same name and see as I suspect that the remote is just sending out these packets.
Please Log in or Create an account to join the conversation.
- Fernandez
- Offline
- Posts: 983
"Silverware" custom firmware for the Eachine H8 / Bayang drones with NRF chip, has also a nice bluetooth app, while you can control the drone using the original TX controller and at the same time receive telemetry on a Bluetooth app on the phone.
Please Log in or Create an account to join the conversation.
- Burntstanding
- Offline
- Posts: 12
Please Log in or Create an account to join the conversation.
- cluxter
- Topic Author
- Offline
- Posts: 7
I want to link my T8SG with Eachine E58. Does anyone know the protocol?
Thank you
Please Log in or Create an account to join the conversation.
- Burntstanding
- Offline
- Posts: 12
www.ebay.co.uk/p/Esp8266-Esp-01-Serial-W...=292736904806&chn=ps
which can be programmed through Arduino-IDE and using a FTDI serial adaptor or there are cheap usb programming devices designed for these modules. It is no where near the true practice of deviation as it is leveraging the WiFi aspect of this and potentially applicable to many other wifi drones. I've not actually tested in the flesh as yet but I've compared the UDP packets that I can get this to produce and that the Phone UFO-WIFI app produces and they seem to be comparable. I'll need to do some work with timings and as I say its using the PPM output although these modules essentially have an SPI interface as I understand it so they could be programmed I believe to be modded into the controller. My E58 is currently in pieces but I'll try to get it back together and test soon. I've attached the ardiono-ide sketch as a text file. My code is sloppy and leveraged a ppm receiver code from the following instructable. I've also included my Devo7E model file with how my mixer channels are set up for the PPM. The code takes values for HOLD0 to trigger the unlock motors state of the drone which should then make stick movements active. It could also be switched for one click launch I guess and other switches could be used for rate modes etc. The number of PPM channels in theory could scale up a lot.
Attachments:
Please Log in or Create an account to join the conversation.
- Burntstanding
- Offline
- Posts: 12
The limits of going over wifi will always be less reliable than propitiatory 2.4GHz RF signals and if wifi disconnects there would be an inherent delay to reconnect and I haven't added a reconnect function yet. I've managed to mod an external antenna onto one of these PCB antenna traces before which would improve range. I'm sure ESP modules with SMB connectors could be purchased.
Attachments:
Please Log in or Create an account to join the conversation.
- Burntstanding
- Offline
- Posts: 12
First test with props off and things seem to be working well. ESP-01 chip still being USB powered while I refine the sketch. But it seems to have potential. In the future the ESP-01 could be powered by a battery with a 3V regulator and just 1pin for the PPM signal so would be quite a small addon.
Currently the switch unlocks the motors but the Flight controller doesn't really go into launch mode until the throttle passes into positive zone. Think I wish to do a bit more testing and checking the channels before I launch test it.
Attachments:
Please Log in or Create an account to join the conversation.
- Burntstanding
- Offline
- Posts: 12
As a side not there are better ESP chips which have an analogue pin. I've seen proof of concept that this could be programmed to output an AV signal. I think that the video stream is broadcast encoded with FFMPEG. I think it is well beyond me but feasibly the chip could take the broadcast video packets and have a line output for video to goggles. Which would still have all its existing latency problems and artifacts. Although I suspect it would put too much processing load on a single chip already using interrupts for the PPM.
Please Log in or Create an account to join the conversation.
- Burntstanding
- Offline
- Posts: 12
I seem to have lost Rudder after the nightly builds for some reason and trim is a bit out which seems to make it a bit skittish. But a kind of proof of concept that the ESP module can work. Yet to do any sort of range tests.
Please Log in or Create an account to join the conversation.
- Burntstanding
- Offline
- Posts: 12
Got rudder control back. Strangely the last couple of nightly builds once I calibrate my Devo 7E I loose all yaw resolution. Copied my backed up TX.ini and have full range again. Tried watching this video back at quarter speed and there doesn't seem to be much latency on stick movements. Getting a couple of right hand roll glitches which may be the way the ESP is translating the PPM. But they are minimal and even out over the next couple of pulses. Think I may need to add some Expo on the sticks but until I'm in a wider space and can test the full bank. My hope is to cycle through different byte options on the command byte with the small hope there is a hidden command that will switch it to acro. Really not likely. But yeah having proper stick control seems to make it so much more responsive but I'm not getting much of its attempting to hover character which may just mean I need a bit of a dead zone on the input and the gyro calibrating.
Please Log in or Create an account to join the conversation.
- Fernandez
- Offline
- Posts: 983
Maybe you could use the serial prototocls like sbus or pxx instead ppm?
Or maybe you could even connect via usb port HID device?
or even connect devo to a laptop via HID and have laptop transmitter?
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Model Configs, Templates, Skins
- Model Configs
- Model Requests
- Eachine E58,