Hello everyone,

I have a small problem. I have purchased a Bluetooth adapter and have inserted it into my Pixhawk TELEM1 port following this easy tutorial:

http://copter.ardupilot.com/wiki/common-mission-planner-bluetooth-connectivity/

I now need to read GPS coordinates transmitted from an Android application I developed that are received by this Bluetooth module. Inside the App these cords can be typed, selected by tapping a Google Map Fragment in the App or retrieved from a DB on my website. My current efforts to read from the TELEM port have used Mission Planner python scripts.

It is extremely easy to set a waypoint with a simple Python Mission Planner python script:

MissionPlanner.Utilities.Locationwp.lat.SetValue(item,lat)
MissionPlanner.Utilities.Locationwp.lng.SetValue(item,lng)
MissionPlanner.Utilities.Locationwp.alt.SetValue(item,alt)

I would love to be able to fill the lat,lng and alt variables with data retrieved from the Android App I have developed. Unfortunately, I do not know how to access the TELEM 1 pin to read from. The closest I have found to this is:

import serial
ser = serial.Serial(port='/dev/ttyUSB0', baudrate=57600, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS, timeout=0)

print("connected to: " + ser.portstr)

while True:
    print ser.readline()

I believe ttyUSB0 is a USB port, and I believe it is the USB on the Pixhawk. I have tried modifying the USB0 and other parameters to a variety of tags hoping to discover the TELEM1 pin by chance, but no luck yet. (I found this script from http://stackoverflow.com/questions/24227833/reading-data-from-ardupilots-telemetry-port-using-cable)

So in short, does anyone know how to read data from bluetooth with python scripts with a pixhawk and ardupilot? Or at least a way to read data coming in through the TELEM port? Or do you know of any board/setup that will allow me to read bluetooth data from my App to set waypoints? I would be eternally grateful.

I will release all the code and even allow people to use my servers to store/transmit their own cords for free as soon as I get this, which will be way cool for the community I think.

Also, I did make a similar post in the ardupilot forums but have received no help:

http://ardupilot.com/forum/viewtopic.php?f=69&t=15124

Thanks,

D Craig

(Mods I did not know what category to put this in, so I left it blank. Feel free to put it wherever and sorry)

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Activity

DIY Robocars via Twitter
RT @Smartphone89: DonkeyCar Racing League Korea #donkeycar @diyrobocars https://t.co/mDlHDR1d98
3 hours ago
Jørn Ramnæs liked VIDEO LINK's profile
18 hours ago
Mark Harrison left a comment on Moderators
"Wow, Ning2 looks really great on mobile. I had sort of drifted away as my browse-time went more on my phone, so this is great."
yesterday
Hank Deucker left a comment on PIXHAWK
"I am sure most will say not again, Pixhawk telemetry. I do need help and all can be reassured that I have spent many hours scouring the net for useful information. I am not new at quadcopter flying, I started in 2012 and have progressed through many…"
yesterday
DIY Robocars via Twitter
https://t.co/rLmFr8M2UK
yesterday
Hank Deucker left a comment on PIXHAWK
"Tomorrow, I am thinking about the wording at the moment."
yesterday
DIY Drones via Twitter
Welcome to the new DIY Drones design!. You may have noticed that DIY Drones looks a little different today. That's… https://t.co/cg2EmeDGMQ
Wednesday
DIY Drones via Twitter
New! Online Training on Drones for Disaster Response https://t.co/brqRuujjY2
Tuesday
DIY Robocars via Twitter
https://t.co/8EMCvYW6oz
Tuesday
DIY Robocars via Twitter
RT @OttawaAVGroup: We are going to try something new this week. We will be having a drop-in style meeting Wednesday @ 7-9pm EST. Pop in and…
Monday
DIY Robocars via Twitter
RT @tawnkramer: Thanks Everyone for another fun virtual race! Amazing Ai racers competing head-to-head, Virtual Makers Fair event. Catch us…
Sunday
DIY Robocars via Twitter
RT @make: Find out the latest from @diyrobocars at 10am PT from @chr1sa of @3DRobotics on Virtually Make Faire! #makerfaire #maketogether #…
May 23
DIY Robocars via Twitter
RT @Heavy02011: Join us Saturday online: Virtual Race League: @DIYRobocars Race #2 - Parking Lot Nerds https://t.co/aJUu4sdutx #Meetup via…
May 22
DIY Robocars via Twitter
RT @donkey_car: Yay, we are part of the virtual @makerfaire with @diyrobocars. Come see our race or better yet train a model and race with…
May 21
DIY Robocars via Twitter
RT @chr1sa: The @DIYRobocars Virtual AI Race is going to be part of the virtual @makerfaire on Sat! https://t.co/wnMDAboLID
May 20
DIY Robocars via Twitter
RT @tawnkramer: Please join us next week for our second DIYRobocars online race. We will be using a new Mountain Track course! https://t.co…
May 19
More…