LORAWAN
LoRaWAN is a radio technology that can transfer data over long distances at low power consumption. In Docuflair, LoRaWAN is used to run wireless card readers at printers — particularly useful on devices with no card reader interface of their own. A user holds their card up to the LoRaWAN card reader and the print job is released.
The section that follows describes how to register a card reader using LORAWAN technology in Docuflair. One advantage over conventional card readers is that LORAWAN-capable card readers can be used on devices with no card reader interface too. One area of use for a solution of that kind is connecting printers without a display into a pull print environment, for example.
The gateway configuration
Section titled “The gateway configuration”Find out the IP address of the gateway (its name on the network is dragino-xxxxx). Then open that address in the browser, or alternatively go straight to http://address:8080, and sign in at the gateway.

Once the sign-in has succeeded, the Dragino dashboard is shown. Now go to the Network Server page (Server > Network Server).

A click on Launch starts the ChirpStack server on port 8080 and its sign-in page is shown.
By default the following credentials work: - User name: admin - Password: admin

Go to the Gateways page and check whether the status Online is shown.

Go to the Applications page (Tenant > Applications) and create a new application there with a click on Add application.

In the application, on the Devices tab, create a new device with a click on Add device.


In the application, on the Integrations tab, enter the following configuration:
- Payload encoding: JSON
- Event endpoint URL(s): https://redirect.docuflair.com/LoraWAN.ashx

With a click on the Add header button, add a new header with the following values: - KEY: DOCUFLAIR - VALUE: PLACEHOLDER
Replace the PLACEHOLDER with Docuflair’s CloudClient Local ID. To fetch that information, use the following command in the Docuflair console management (dfcmd).
CloudClient showid
In the example above the CloudClient Local ID is f52cda8d-445b
The card reader configuration
Section titled “The card reader configuration”As the name of the card reader in Docuflair you can use the name above or, alternatively, the DeviceEUI.

To link the card reader registered in the gateway with Docuflair, register it in Docuflair Manager as well. Detailed instructions can be found here.
Analysing problems
Section titled “Analysing problems”Where there are problems, set the log level to the maximum and examine the log file Mobile Redirector.log.
2024-12-11 13:24:51.958 [INF] 1 Starting service "MobileRedirector"2024-12-11 13:24:51.960 [INF] 1 Service "MobileRedirector" started successfully2024-12-11 13:24:51.960 [INF] 22 ServiceMasterThread for "MobileRedirector" started2024-12-11 13:25:02.261 [INF] 23 RedirectorService connected: "Docuflair Redirect Service 1.0"2024-12-11 13:25:02.413 [INF] 23 LoraWan message:{ "ExtensionData": { "$type":"ExtensionDataObject" }, "instanceId":"f52cda8d-445b", "eventTime":"2024-12-11T13:26:01.6244036+01:00", "serverTime":"2024-12-11T13:26:19.6554678+01:00", "deviceId":"TWN4-R2024391956-SB1", "deviceAddr":"2cf7f12043301b0a", "cardId":"011228CD5C", "sent":true, "$type":"LoraWanEvent"}2024-12-11 13:25:02.419 [INF] 23 HandleLoraWanMessage: reader="TWN4-R2024391956-SB1", card="011228CD5C"2024-12-11 13:25:02.444 [WRN] 23 LoraWAN: No user found for card="011228CD5C"2024-12-11 13:25:02.466 [INF] 23 LoraWAN: #Actions=1 found: reader="TWN4-R2024391956-SB1", card="011228CD5C"2024-12-11 13:25:02.467 [INF] 23 LoraWAN: Action "PrintAllJobs": reader="TWN4-R2024391956-SB1", card="011228CD5C"2024-12-11 13:25:02.472 [DBG] 23 PrintAllJobs() started2024-12-11 13:25:02.472 [WRN] 23 Unknown user2024-12-11 13:25:02.472 [DBG] 23 DeleteAllJobs() finished: 0 old jobs deletedThe example above shows that the communication works in principle and that data is being received. For the card number given (011228CD5C), however, no user was found in the system, which is why no action is carried out.