mcdiarmid / telemetry-via-digimesh Goto Github PK
View Code? Open in Web Editor NEWSend and receive MAVLink telemetry data of UAVs using XBee radios with DigiMesh firmware
License: Mozilla Public License 2.0
Send and receive MAVLink telemetry data of UAVs using XBee radios with DigiMesh firmware
License: Mozilla Public License 2.0
I tried to run your first commit since what you've done is kind of like what I am trying to do with xbee. But I am getting this error when running the UDP side of the code.
Discovering Devices...
Finished: [<digi.xbee.devices.RemoteDigiMeshDevice object at 0x7f7c39df5588>]
0013a200419b5ad8
Created UDP link for wireless connection with 0013a200419b5ad8
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
15.77s | 0013a200419b5ad8
IN[0] | 00, 00, D2, 20, DC, 3C, 6C, D0, CC, 3C, 9F, 72, 0A, 3D, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, D4, 87
Exception in thread Thread-4:
Traceback (most recent call last):
File "/home/abhish/anaconda3/envs/xbee/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/home/abhish/anaconda3/envs/xbee/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "udp.py", line 125, in udp_thread
outdata, _ = sock.recvfrom(KiB) # TODO blocking by default
ConnectionRefusedError: [Errno 111] Connection refused
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
15.77s | 0013a200419b5ad8
IN[0] | FE, 1C, EC, 01, 01, 1E, 69, CD, 04, 00, D2, E8, 8B, 3D, 34, FE, 18, BC, 7E, 2D, 0D, C0, 9D, 4F, 17, BB, D7, E7, 99, B9, 05, 1A, 10, 39, 75, 98, FE, 1C, ED, 01, 01, 21, 69, CD, 04, 00, 00, 00, 00, 00
IN[1] | 00, 00, 00, 00, B6, 08, 00, 00, BE, 08, 00, 00, F2, FF, 06, 00, 1A, 00, 42, 5B
Exception in thread Thread-2:
Traceback (most recent call last):
File "/home/abhish/anaconda3/envs/xbee/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/home/abhish/anaconda3/envs/xbee/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "udp.py", line 82, in primary_loop
sent = self.sockets[key].send(queued_data)
ConnectionRefusedError: [Errno 111] Connection refused
The change that I did compared to code of yours is, my XBee device supports sending only 73 bytes at a time. So, I changed
if 100 <= px4.in_waiting < 4095:
data = px4.read(px4.in_waiting)
while data:
print('[PX4 -> XBee] {}'.format(data[:255]))
pkt_sent = xb.send_data(GCS, data[:255])
data = data[255:]
elif px4.in_waiting == 4095:
px4.reset_input_buffer()
else:
pass
to
if 100 <= px4.in_waiting < 4095:
data = px4.read(px4.in_waiting)
while data:
print('[PX4 -> XBee] {}'.format(data[:70]))
pkt_sent = xb.send_data(GCS, data[:70])
data = data[70:]
elif px4.in_waiting == 4095:
px4.reset_input_buffer()
else:
pass
Can you please help me with this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.