Dragino PG1302 User manual

www.dragino.com
PG1302 LoRaWAN Concentrator 1 / 20

www.dragino.com
PG1302 LoRaWAN Concentrator 2 / 20
Statement
This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) this device may not cause harmful
interference, and (2) this device must accept any interference received, including interference that may cause undesired operation.
FCC Caution:
Changes or modifications not expressly approved by the part responsible for compliance could void the user's authority to operate the equipment.
FCC RF Radiation Exposure Statement Caution: This Transmitter must be installed to provide a
separation distance of at least 20 cm from all persons.
The host OEM user manual must also contain clear instructions on how end users canfind and/or access the module and the FCC ID: ZHZPG1302
FCC Statement:
"This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15 of the FCC Rules. These limits are
designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio
frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However,
there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television
reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the
following measures:
—Reorient or relocate the receiving antenna.
—Increase the separation between the equipment and receiver.
—Connect the equipment into an outlet on a circuit different from that to which the receiver is connected.—Consult the dealer or an experienced
radio/TV technician for help."
The proposed FCC IC label format is to be placed on the module. If it is not visible when the module is installed into the system, “Contains FCC ID:
ZHZPG1302,” shall be placed on the outside of final host system.
Antenna info
Model
Manufacturer
Antenna Gain
Antenna Type
Connector Type
BLG-AN-040 Datasheet
Dragino Technology Co.,
Limited.
2.69dBi
Fibre-glass epoxy antenna
-
-
Dragino Technology Co.,
Limited.
3.0
External antenna
-

www.dragino.com
PG1302 LoRaWAN Concentrator 3 / 20
LG01 LoRa Gateway User Manual
Document Version: 1.0.1
Image Version: v1.0
Version
Description
Date
1.0
Release
2020-Dec-9
1.0.1
Add FAQ for how to get lorapktfwd.deb
2021-May-17

www.dragino.com
PG1302 LoRaWAN Concentrator 4 / 20
Index:
1Introduction ....................................................................................................... 5
1.1 What is PG1301 LoRaWAN Concentrator? ................................................ 5
1.2 Features ................................................................................................... 5
1.3 General Interfaces .................................................................................... 5
1.4 System Structure ...................................................................................... 6
1.5 Pin Mapping ............................................................................................. 6
1.6 Power Consumption ................................................................................. 7
1.7 Applications.............................................................................................. 7
✓ Smart Buildings & Home Automation.......................................................... 7
✓ Logistics and Supply Chain Management..................................................... 7
✓ Smart Metering........................................................................................... 7
✓ Smart Agriculture........................................................................................ 7
✓ Smart Cities................................................................................................. 7
✓ Smart Factory.............................................................................................. 7
2Example: Set up as LoRaWAN gateway................................................................ 7
2.1 System structure....................................................................................... 7
2.2 Hardware Installation ............................................................................... 8
2.3 Install the software................................................................................... 8
2.3.1 Get Gateway ID in Raspberry and input this in TTN......................... 8
2.3.2 Download and install LoRaWAN packet forwarder.......................... 9
2.3.3 Config Gateway ID, Frequency Band and Server address............... 10
2.3.4 Commands to handle service........................................................ 11
3Order Info......................................................................................................... 11
4Packing Info ...................................................................................................... 11
5FAQ................................................................................................................... 12
5.1 How to compile the pkt-fwd for RPi? ...................................................... 12
6Reference ......................................................................................................... 12
7Support ............................................................................................................ 12

www.dragino.com
PG1302 LoRaWAN Concentrator 5 / 20
1Introduction
1.1 What is PG1301 LoRaWAN Concentrator?
The PG1302 is a multi-channel high performance transmitter/receiver designed to
simultaneously receive several LoRa packets using random spreading factors on random
channels. Its goal is to enable robust connection between a central wireless data
concentrator and a massive amount of wireless end-points spread over a very wide range of
distances.
The PG1302 is design to use with Raspberry Pi to build smart metering fixed networks and
Internet of Things applications with up to 5000 nodes per km2 in moderately interfered
environment.
1.2 Features
✓ Support Raspberry Pi 3B/3B+/4
✓ Up to -142.5dBm sensitivity with SX1257 Tx/Rx front-end (see reference design)
✓ 70 dB CW interferer rejection at 1 MHz offset
✓ Able to operate with negative SNR, CCR up to 9Db
✓ Emulates 49x LoRa demodulators and 1x (G)FSK demodulator
✓ Dual digital TX&RX radio front-end interfaces
✓ 10 programmable parallel demodulation paths
✓ Dynamic data-rate (DDR) adaptation
1.3 General Interfaces
✓ SPI interface for LoRa
✓ Specifications:
✓ Power Input: 5v, 1A
✓ 1 x SMA antenna for LoRa

www.dragino.com
PG1302 LoRaWAN Concentrator 6 / 20
1.4 System Structure
1.5 Pin Mapping
Pin No
Raspberry Pi BCM pin number
PG1301 Definition
1
3.3V
3.3V
2
5V
5V
3
GPIO2/SDA1(I2C)
I2C_SDA
4
5V
5V
5
GPIO3/SCL1(I2C)
I2C_SCL
6
GND
GND
9
GND
GND
14
GND
GND
16
GPIO23
SX1302_RESET
19
GPIO10
HOST_MOSI
20
GND
GND
21
GPIO9
HOST_MISO
23
GPIO11
HOST_SCK
24
GPIO8
HOST_CSN
25
GND
GND
30
GND
GND
34
GND
GND
39
GND
GND

www.dragino.com
PG1302 LoRaWAN Concentrator 7 / 20
1.6 Power Consumption
TBD
1.7 Applications
✓ Smart Buildings & Home Automation
✓ Logistics and Supply Chain Management
✓ Smart Metering
✓ Smart Agriculture
✓ Smart Cities
✓ Smart Factory
2Example: Set up as LoRaWAN gateway.
2.1 System structure
This example is an example to show how to set up the PG1301 + RPi as a LoRaWAN gateway
to use with TheThingsNetwork(TTN) LoRaWAN server.. Set up method for other server are
similar

www.dragino.com
PG1302 LoRaWAN Concentrator 8 / 20
2.2 Hardware Installation
Important Notice: Please power the RPI with 5V,2A cable.
RPI in this example is RPI model 3B with fresh Raspbian OS install.
pi@raspberrypi:~$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL=http://www.raspbian.org/
SUPPORT_URL=http://www.raspbian.org/RaspbianForums
BUG_REPORT_URL=http://www.raspbian.org/RaspbianBugs
2.3 Install the software
2.3.1 Get Gateway ID in Raspberry and input this in TTN.
In RPI, run below command to generate a Gateway ID
ifconfig eth0 | grep eth0 | awk '{gsub(/:/,"");print $5"ffff"}'
Here we got b827xxxxx65fffff. Input this to TTN. Make sure to select legacy packet
forwarder

www.dragino.com
PG1302 LoRaWAN Concentrator 9 / 20
After set up, the status should show not connected as below:
2.3.2 Download and install LoRaWAN packet forwarder
In RPI , run:
wget http://www.dragino.com/downloads/downloads/LoRa_Gateway/PG1301/software/lorapktfwd.dep
This will download the packet forwarder package from Dragino Server to RPI.
run “sudo dpkg -i lorapktfwd.dep” to install pkt fwd, pktfwd will auto run after this
command. But the TTN will still show not connected because the Gateway ID doesn’t
match.

www.dragino.com
PG1302 LoRaWAN Concentrator 10 / 20
2.3.3 Config Gateway ID, Frequency Band and Server address
After installation, user can find the configuration file in /etc/lora. Replace the gateway ID
we got above to the gateway_ID in file local_conf.json
The default frequency band is EU868 in global_conf.json file and the default LoRaWAN
server points to TTN.
➢ If user want to change to other frequency bands, User can copy the file from
/etc/lora/cfg and rename it to global_conf.json and put it into /etc/lora .
➢ If user wants to change to other LoRaWAN server, modify the global_conf.json file.
➢ To enable/disable GPS module, modify file /etc/lora/local_conf.json
2.3.4 Check result
Run below command to restart the pkt_fwd:
sudo systemctl stop lorapktfwd
sudo systemctl start lorapktfwd
The pktfwd will start with the new gateway ID and TTN should show the connection ok:
If there are LoRaWAN nodes transmits nearby, we can see the traffic in TTN –> Gateway -
-> Traffic

www.dragino.com
PG1302 LoRaWAN Concentrator 11 / 20
2.3.4 Commands to handle service
➢ Stop lorapktfwd service: sudo systemctl stop lorapktfwd
➢ Disable lorapktfwd auto run after boot: sudo systemctl disable lorapktfwd
➢ Start lorapktfwd : sudo systemctl start lorapktfwd
➢ Auto run lorapktfwd after boot: sudo systemctl enable lorapktfwd
➢ Show status of lorapktfwd: sudo systemctl status lorapktfwd
3Order Info
Part Number: PG1302XX
➢ PG1301-868 (For Bands: EU868,IN865)
➢ PG1301-915 (For Bands: US915,AU915,AS923,KR920)
➢ PG1301-470 (For Band: CN470)
4Packing Info
Package Includes:
✓ PG1301 x 1
✓ LoRa Antenna x 1
Dimension and weight:
✓ Device Size: cm
✓ Device Weight:
✓ Package Size / pcs : cm
✓ Weight / pcs :

www.dragino.com
PG1302 LoRaWAN Concentrator 12 / 20
5FAQ
5.1 How to compile the pkt-fwd for RPi?
Step 1: Update Raspian to the latest one.
sudo apt-get update
sudo apt-get upgrade
Step 2: Get source code:
git clone https://github.com/dragino/pi_gateway_fwd.git
Step3: Enter into pi_gateway_fwd and run
make && make deb
Then you will get the lorapktfwd.deb
6Reference
Datasheet, User Manual & Software Download:
http://www.dragino.com/downloads/downloads/LoRa_Gateway/PG1302/
7Support
➢ Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8. Due to different
timezones we cannot offer live support. However, your questions will be answered as soon
as possible in the before-mentioned schedule.
➢ Provide as much information as possible regarding your enquiry (product models,
accurately describe your problem and steps to replicate it etc) and send a mail to
https://www.dragino.com/

www.dragino.com
PG1302 LoRaWAN Concentrator 13 / 20
ANT 1
ANT 1: Fibre-glass epoxy antenna
915MHz

www.dragino.com
PG1302 LoRaWAN Concentrator 14 / 20

www.dragino.com
PG1302 LoRaWAN Concentrator 15 / 20

www.dragino.com
PG1302 LoRaWAN Concentrator 16 / 20
ANT 2

www.dragino.com
PG1302 LoRaWAN Concentrator 17 / 20

www.dragino.com
PG1302 LoRaWAN Concentrator 18 / 20

www.dragino.com
PG1302 LoRaWAN Concentrator 19 / 20

www.dragino.com
PG1302 LoRaWAN Concentrator 20 / 20
FCC WARNING
Note: This equipment has been tested and found to comply with the limits for a
Class B digital device, pursuant to part 15 of the FCC Rules. These limits are designed
to provide reasonable protection against harmful interference in a residential
installation. This equipment generates uses and can radiate radio frequency energy
and, if not installed and used in accordance with the instructions, may cause harmful
interference to radio communications. However, there is no guarantee that
interference will not occur in a particular installation. If this equipment does cause
harmful interference to radio or television reception, which can be determined by
turning the equipment off and on, the user is encouraged to try to correct the
interference by one or more of the following measures:
-Reorient or relocate the receiving antenna.
-Increase the separation between the equipment and receiver.
-Connect the equipment into an outlet on a circuit different from that to which
the receiver is connected.
-Consult the dealer or an experienced radio/TV technician for help.
This equipment complies with FCC radiation exposure limits set forth for an
uncontrolled environment. This equipment should be installed and operated with
minimum distance 20cm between the radiator & your body.
Table of contents
Other Dragino Transmitter manuals
Popular Transmitter manuals by other brands

Xtralis
Xtralis ADPRO FastTx Installation and user manual

Winters
Winters LM3 Installation and operating manual

Camille Bauer
Camille Bauer KINAX N702-INOX HART operating instructions

XciteRC
XciteRC XRC 6Si manual

Sennheiser
Sennheiser SK 500 G3 instruction manual

Sennheiser
Sennheiser SK 9000 instruction manual