Dragino Shield 1.4


(Matthew Macdonald-Wallace) #1

Hi all, my Dragino 1.4 shield arrived in the post and I've wired it up with a raspberry pi 2 B+ as a single channel gateway, however the only way I can get it to power up is if I mount it on an Arduino or provide power to the VIN port as opposed to the 5V Pin that is laid out in the various instructions.

So far, I've tried the instructions at the following links:

* https://github.com/tftelkamp/single_chan_pkt_fwd
* http://www.instructables.com/id/Use-Lora-Shield-and-RPi-to-Build-a-LoRaWAN-Gateway/
* http://www.mobilefish.com/developer/lorawan/lorawan_quickguide_build_lora_gateway.html

But to no avail. I've un-commented the debug statement in main.cpp on the single channel packet forward code and the only output I get is this:

Unrecognized transceiver.
Version: 0x0

Can anyone help?


(Jose Marcelino) #2

Try changing the main.cpp line there where it says:

bool sx1272 = true;

To

bool sx1272 = false;


(Matthew Macdonald-Wallace) #3

Unforunately, that doesn't work either.

I've switched to https://github.com/hallard/single_chan_pkt_fwd because it has a JSON config file, but I'm still seeing the "Unrecognized Transceiver" error message.

I suspect that this is because in order to get power to the device I'm having to piggyback it on an arduino that has a blank sketch on it and this is somehow intercepting the pins or similar, but looking at the schematic I can't see anything that differs between 1.4 and earlier 1.x versions of this shield, so I don't think it's a wiring thing.

I've also updated the hallard code with @jmarcelino's suggestion and this is the output from SystemD:

-- Logs begin at Fri 2016-05-20 10:17:01 BST. --
May 20 10:47:11 raspberrypi single_chan_pkt_fwd[12491]: The Things Network, Monmouth 01
May 20 10:47:11 raspberrypi single_chan_pkt_fwd[12491]: Latitude=51.82643509
May 20 10:47:11 raspberrypi single_chan_pkt_fwd[12491]: Longitude=-2.71831012
May 20 10:47:11 raspberrypi single_chan_pkt_fwd[12491]: Altitude=10
May 20 10:47:11 raspberrypi single_chan_pkt_fwd[12491]: Trying to detect module with NSS=6 DIO0=7 Reset=0 Led1=4
May 20 10:47:11 raspberrypi single_chan_pkt_fwd[12491]: Transceiver version 0x00
May 20 10:47:16 raspberrypi systemd[1]: single_chan_pkt_fwd.service holdoff time over, scheduling restart.
May 20 10:47:16 raspberrypi systemd[1]: Stopping Lora Packet Forwarder...
May 20 10:47:16 raspberrypi systemd[1]: Starting Lora Packet Forwarder...
May 20 10:47:16 raspberrypi systemd[1]: Started Lora Packet Forwarder.
May 20 10:47:20 raspberrypi single_chan_pkt_fwd[12536]: Unrecognized transceiver: Success
May 20 10:47:20 raspberrypi systemd[1]: single_chan_pkt_fwd.service: main process exited, code=exited, status=1/FAILURE
May 20 10:47:20 raspberrypi single_chan_pkt_fwd[12536]: server: .address = router.eu.staging.thethings.network; .port = 1700; .enable = 1
May 20 10:47:20 raspberrypi single_chan_pkt_fwd[12536]: server: .address = router.eu.thethings.network; .port = 1700; .enable = 0
May 20 10:47:20 raspberrypi single_chan_pkt_fwd[12536]: Gateway Configuration
May 20 10:47:20 raspberrypi single_chan_pkt_fwd[12536]: TTNP25-01 (matt@doics.co)
May 20 10:47:20 raspberrypi single_chan_pkt_fwd[12536]: The Things Network, Monmouth 01
May 20 10:47:20 raspberrypi single_chan_pkt_fwd[12536]: Latitude=< MY LATITUDE >
May 20 10:47:20 raspberrypi single_chan_pkt_fwd[12536]: Longitude=< MY LONGITUDE >
May 20 10:47:20 raspberrypi single_chan_pkt_fwd[12536]: Altitude=10
May 20 10:47:20 raspberrypi single_chan_pkt_fwd[12536]: Trying to detect module with NSS=6 DIO0=7 Reset=0 Led1=4
May 20 10:47:20 raspberrypi single_chan_pkt_fwd[12536]: Transceiver version 0x00
May 20 10:47:20 raspberrypi systemd[1]: Unit single_chan_pkt_fwd.service entered failed state.


(Jose Marcelino) #4

This particular shield version should be powered with 3.3 Volts over the 3.3V pin (for example from Pi's pin 1 (3.3V)

https://github.com/dragino/Lora/blob/master/Lora%20Shield/hardware/v1.4/Lora%20Shield%20v1.4.sch.pdf

There is no regulation. Hope it hasn't blown somewhere already...


#5

if your radio is not being recognized I would follow these steps:

Verify voltages at the radio( should be 3.3V if it's an RFM95 type module ).
Verify solder of joints around the radio and to the shield connectors.
Verify the pins in the software to communicate over SPI and D0, D1, D2 and D5 of the radio are correct. Note: sometimes only a couple of the Dx pins are need( D0 and D1|D2).
Look for solder bridging on all solder joints on the shield and verifiy the Arduino pins are functional.


(Matthew Macdonald-Wallace) #6

Blast, ok, thanks I'll take a look now. :frowning:


(Matthew Macdonald-Wallace) #7

Bloody hell! It's working! :smiley:

So it turns out that you have to connect the power to 3.3v rail. I don't think the 5v rail is even connected anywhere, but the Arduino must have been doing something weird with the data lines.

Now that I've connected 3.3v on the arduino to Pin #1 on the R-Pi, I have a gateway that's working! :slight_smile:

Now I just need to work out how to delete the "planned" gateways from my account... :slight_smile:

Thanks for all your help!


(Honghai) #8

Connect the power to 3.3v and the LED near by ANT will lighted,

if you connect to 5V , the dragino shiled do not works.


(B4nsh33) #9

I have the exact same problem but would like to use only my R-Pi and the Dragino Shield. Can you power the shield only by your arduino?


(Rajeshchintha) #10

just connect pin 1 of rpi to dragino 3.3v