-
Notifications
You must be signed in to change notification settings - Fork 69
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
Support for Dragino Lora/GPS Raspberry Pi HAT #31
Comments
And if it doesn't work out of the box it would be useful to document what additional wiring is required based on the current v1.3 board: https://github.com/dragino/Lora/tree/master/Lora_GPS%20HAT/v1.3 And with any luck it might be possible to have these added to a future revision to take advantage of the convenience offered by having both GPS and Lots radios on a single HAT :) |
It won't work with that, because they've made the mistake of connecting the
NSS LoRa pin to a random GPIO pin instead of one of the 2 standard SPI CS
pins.
…On 23 December 2016 at 02:18, Romeo-Golf ***@***.***> wrote:
And if it doesn't work out of the box it would be useful to document what
additional wiring is required based on the current v1.3 board:
https://github.com/dragino/Lora/tree/master/Lora_GPS%20HAT/v1.3
And with any luck it might be possible to have these added to a future
revision to take advantage of the convenience offered by having both GPS
and Lots radios on a single HAT :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABBodIVZE-q0wjrKnFkaGhvPiZfZww_rks5rKy-NgaJpZM4LUh6A>
.
|
Dave, Thanks KS for confirming, I did suspect that based on the GPS chip's PPS pin not being wires to any gpio pins the wiring of this hat hadn't been well thought out... But as I needed a GPS hat and these GPS+LoRa boards were equivalent cost to GPS only I ordered one anyway :) So looks like I will be using the Black Hat Hack3r board to test wiring the GPS PPS pin into the Pi GPIO, typically on GPIO 17: https://shop.pimoroni.com/products/black-hat-hacker Can you advise on the LoRa chip to gpio pin mapping this code is expecting? Thanks |
You can override the default mapping by using DIO0_0= etc. See the readme
…On 24 December 2016 at 17:31, Romeo-Golf ***@***.***> wrote:
Dave,
Thanks KS for confirming, I did suspect that based on the GPS chip's PPS
pin not being wires to any gpio pins the wiring of this hat hadn't been
well thought out...
But as I needed a GPS hat and these GPS+LoRa boards were equivalent cost
to GPS only I ordered one anyway :)
So looks like I will be using the Black Hat Hack3r board to test wiring
the GPS PPS pin into the Pi GPIO, typically on GPIO 17:
https://shop.pimoroni.com/products/black-hat-hacker
Can you advise on the LoRa chip to gpio pin mapping this code is expecting?
Thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABBodPA94iEl7y5gnnLmLti-uUoxkxtxks5rLVcIgaJpZM4LUh6A>
.
|
Ok so the DIO pins can be specified in the config, is it possible to do the same for the NSS pin to say use GPIO pin 6 / physical pin 22 rather than pins 24 and 26 listed in the Readme? Thanks |
No. The code as it stands can only use standard SPI CS pins. That's not
going to change.
…On 29/12/2016 01:39, Romeo-Golf wrote:
Ok so the DIO pins can be specified in the config, is it possible to
do the same for the NSS pin to say use GPIO pin 6 / physical pin 22
rather than pins 24 and 26 listed in the Readme?
Thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABBodMvtoQNZrsVACrpvK0CGKKIN8eZUks5rMw9rgaJpZM4LUh6A>.
|
Its a shame that the manufactures of this board didnt follow the 'standard', although to be fair there doesnt seem to be an abundance of documentation beyond this: https://www.raspberrypi.org/documentation/hardware/raspberrypi/spi/ I will try physically re-mapping the pins with the hack3r board and if successful then perhaps they would consider more sensible pin mapping in the next revision. Out of interest is ther DIO pin mapping also based on a standard or reference source? |
DIOs can connected to any free I/O pin, unlike SPI pins which are fixed. |
@daveake FYI, with a suitable Device Tree overlay you can ask the SPI driver to use any random GPIOs as chip selects. |
Cheers, didn't know that. I'll add some notes to the readme.
…On 16 January 2017 at 13:08, Phil Elwell ***@***.***> wrote:
@daveake <https://github.com/daveake> FYI, with a suitable Device Tree
overlay you can ask the SPI driver to use any random GPIOs as chip selects.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABBodO0EZb4Aa7hbMFvRG1nfm869aDgGks5rS2u8gaJpZM4LUh6A>
.
|
OK - I'd better write a suitable overlay then. I'll post it here first with instructions, then get it built into standard images. |
The new overlay is called spi0-cs:
Save the above to spi0-cs-overlay.dts, and compile it using:
Then add the following to config.txt (you can change the 12 and 13 or omit either cs?_pin):
The overlay is now in the kernel source tree, and will be included in future builds. |
Is this already supported? Just got one of those Dragino boards and I was willing to play with some "Pi in the sky" nodes, but I can't get the tracker to work and the following message appears on screen:
gateway.txt content:
config.txt:
Can anyone please advise? Is it possible to use these Dragino boards as tracking stations? |
The gateway software uses standard SPI CE0/1 pins and the draguino does
not. This is not going to change. It may be possible to remap those pins
but this is something you would need to try.
…On 11 October 2017 at 02:03, jorgerance ***@***.***> wrote:
Is this already supported? Just got one of those Dragino boards and I was
willing to play with some "Pi in the sky" nodes, but I can't get the
tracker to work and the following error appears on screen:
Channel 0 power set to FFh
Setting SF=8
Setting Error Coding=5
Can anyone please advise? Is it possible to use these Dragino boards as
tracking stations?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABBodPeYqFvKRSQjnvGAfyehXwQHorLFks5srBP_gaJpZM4LUh6A>
.
|
Two questions. One, would this board work with it? And two, if yes, my board says I'm using the 915MHz range, but when I put that in as the channel it doesn't work. Any ideas? |
While it looks like there may be some wiring challenges, it would be useful to confirm if the Dragino Lora/GPS Hat will work out of the box with this project?
http://wiki.dragino.com/index.php?title=Lora/GPS_HAT
The text was updated successfully, but these errors were encountered: