-
Notifications
You must be signed in to change notification settings - Fork 24
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
Telnet port on 3011 #1
Comments
Thank you for the kind words and sorry for the delayed response (I have email notifications turned off). Unfortunately ser2net limits the number of connections to an exported serial port to one. That means you can't have the Vision app talking to the raw port (2001) while your own program simultaneously talks to the telnet port (3011). If you tried to connect to port 3011 while the Vision app is talking to port 2001 you'd receive a message that said As someone pointed out in the thread you linked to it's possible to modify If you could get custom software running on the range extender (by cross-compiling for the platform or installing a script interpreter) you could probably write something up that would accept a connection on port 2001 (which the Vision app expects to talk to), forward that traffic to the actual ser2net port (which you would need to change in ser2net.conf) and at the same time mirror the traffic that's being exchanged between port 2001<->ser2net to another port (using some protocol that differentiates incoming from outgoing traffic) which your custom app connects to. The IP-address you're connecting to, 192.168.1.2, is the WiFi range extender (the Phantom is at 192.168.1.1). This protocol seems to have some similarities with the one the Phantom speaks but I haven't looked into it. I would guess the data it sends is battery related. Perhaps number of times the battery has been charged and how much charge is left? FWIW, looking up the range extender at FCC using its FCC ID SS3-RE7001402 seems to suggest it has a 3.7V 2000mAh battery in it. Here's an example of the data I'm seeing while talking to port 3011 on my range extender. (The first twelve bytes are four Telnet Interpret-As-Command sequences and then there's a banner that's configured in
And some time later it stops doing the
All I can tell from this data is that some of the numbers seem to decrease over time. And that you get "55BB 07 04" while I get "55BB 07 0A". Perhaps that last 04/0A byte could be the number of full charges the range extender's battery has received? |
Haven't had an opportunity to test more, as I crashed a few weeks ago, and I'm awaiting reimbursement from the insurance I purchased through Amazon. I'm still interested in looking at this further. |
I'm sorry to hear that. I've reoped the issue so feel free to drop a comment if you find out something interesting in the future. |
Fantastic work so far!
I found something a few weeks ago, but don't have the experience to really vet it out. ser2net allows two connections to a serial port - one 'raw' data connection (2001, as you know), and one telnet port. The telnet port is configured as 3011.
When you telnet to 3011, you get some interesting output that seems quite similar to the message packets, although after looking through your C library, seems like it's the 0xFF error state. I'm curious if there is some way of obtaining useful data from here, though.. perhaps sending some sort of ack packet? (Dunno if the raw stream connection does that - we'd have to sniff the traffic from right before the Vision app connects)
My essential goal here is to be able to write some sort of program/library that can obtain data real-time from the Phantom with a second device (initially a computer), while allowing the phone/tablet-based Vision app to operate normally and uninterrupted.
Thoughts?
Here's the output from my brief test:
The text was updated successfully, but these errors were encountered: