meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
3.37k stars 824 forks source link

Support Dragino Lora Gps Pi Hat #177

Closed r0kk3rz closed 4 years ago

r0kk3rz commented 4 years ago

I have a couple of these devices, and it would be nice to be able to use them with meshtastic, it might make a nice development platform

https://www.dragino.com/products/lora/item/106-lora-gps-hat.html

I'd be happy to take a look at this myself and any pointers on where to start would be great

geeksville commented 4 years ago

Looks like a nice board. I think mostly what you are describing is a port so this software can also run on a raspberry pi. I'd start by looking around and seeing if anyone has already written an "arduino" clone API that sits on top of raspbian. Because our code includes drivers for the SPI radio chip, that will be pretty different in linux land (i.e. ioctl calls etc instead of just touching registers). So you'll want to find if someone has already done a library that does that (painful) work.

Porting from the land of RTOSes to running on top of linux as a userspace app will be biggish effort I expect. But if you are hip to do it I think it is great.

you also might find this thread useful:

https://meshtastic.discourse.group/t/discussion-on-support-for-custom-build-targets-i-e-different-radio-chips-cpus-one-off-boards/104/38

r0kk3rz commented 4 years ago

Yeah i figured it could be a tricky thing to achieve, and might be better off making a meshtastic compatible python implementation for this use instead

geeksville commented 4 years ago

Another option you could consider: A $15-$30 (depending on options) board running meshtastic, plugged into the USB port on the Pi and use meshtastic-python.

geeksville commented 4 years ago

yep - seems like a $15 meshtastic to USB board is a better way to go. Closing for now