> For the complete documentation index, see [llms.txt](https://irnas.gitbook.io/opencollar/-MDJCI9OmpOqWrQzjNIR/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://irnas.gitbook.io/opencollar/-MDJCI9OmpOqWrQzjNIR/manufacturing/factory-test-gps.md).

# Factory test - GPS

1. Provision the device to TTN Application: [smartparks-factory-test ](https://console.thethingsnetwork.org/applications/smartparks-factory-test)
2. Device name should be the same as the PCB name after Otii test: "week number"-"device number"
3. Monitor the device in Grafana: [Lion Factory Test](http://grafana.irnas.eu/d/r5WFENcGz/lion-factory-test) / [Rhino Factory test](http://grafana.irnas.eu/d/NfT9j3pMk/rhino-factory-test)

### Settings

Send payload via The Things Network Console - Downlink FPort 3

#### GPS test (GPS on - system status 1 min, GPS periodic 1 min)

{% hint style="success" %}
{"system\_status\_interval": 1, "system\_functions": {"accelerometer\_enabled": false, "light\_enabled": false, "temperature\_enabled": false, "humidity\_enabled": false, "charging\_enabled": true}, "lorawan\_datarate\_adr": {"datarate": 3, "confirmed\_uplink": false, "adr": false}, "gps\_periodic\_interval": 1, "gps\_triggered\_interval": 0, "gps\_triggered\_threshold": 10, "gps\_triggered\_duration": 10, "gps\_cold\_fix\_timeout": 200, "gps\_hot\_fix\_timeout": 60, "gps\_min\_fix\_time": 1, "gps\_min\_ehpe": 50, "gps\_hot\_fix\_retry": 5, "gps\_cold\_fix\_retry": 20, "gps\_fail\_retry": 0, "gps\_settings": {"d3\_fix": true, "fail\_backoff": false, "hot\_fix": true, "fully\_resolved": false}, "system\_voltage\_interval": 1, "gps\_charge\_min": 2500, "system\_charge\_min": 3450, "system\_charge\_max": 4000, "system\_input\_charge\_min": 10000, "pulse\_threshold": 3, "pulse\_on\_timeout": 60, "pulse\_min\_interval": 1, "gps\_accel\_z\_threshold": 0}
{% endhint %}

### &#x20;Charge/fence test (GPS off - system status 1 min, GPS periodic 0)

{% hint style="success" %}
{"system\_status\_interval": 1, "system\_functions": {"accelerometer\_enabled": false, "light\_enabled": false, "temperature\_enabled": false, "humidity\_enabled": false, "charging\_enabled": true}, "lorawan\_datarate\_adr": {"datarate": 3, "confirmed\_uplink": false, "adr": false}, "gps\_periodic\_interval": 0, "gps\_triggered\_interval": 0, "gps\_triggered\_threshold": 10, "gps\_triggered\_duration": 10, "gps\_cold\_fix\_timeout": 200, "gps\_hot\_fix\_timeout": 60, "gps\_min\_fix\_time": 1, "gps\_min\_ehpe": 50, "gps\_hot\_fix\_retry": 5, "gps\_cold\_fix\_retry": 20, "gps\_fail\_retry": 0, "gps\_settings": {"d3\_fix": true, "fail\_backoff": false, "hot\_fix": true, "fully\_resolved": false}, "system\_voltage\_interval": 1, "gps\_charge\_min": 2500, "system\_charge\_min": 3450, "system\_charge\_max": 4000, "system\_input\_charge\_min": 10000, "pulse\_threshold": 3, "pulse\_on\_timeout": 60, "pulse\_min\_interval": 1, "gps\_accel\_z\_threshold": 0}
{% endhint %}

#### Device Sleep (System status 30 min)

{% hint style="success" %}
{"system\_status\_interval": 30, "system\_functions": {"accelerometer\_enabled": false, "light\_enabled": false, "temperature\_enabled": false, "humidity\_enabled": false, "charging\_enabled": true}, "lorawan\_datarate\_adr": {"datarate": 3, "confirmed\_uplink": false, "adr": false}, "gps\_periodic\_interval": 0, "gps\_triggered\_interval": 0, "gps\_triggered\_threshold": 10, "gps\_triggered\_duration": 10, "gps\_cold\_fix\_timeout": 200, "gps\_hot\_fix\_timeout": 60, "gps\_min\_fix\_time": 1, "gps\_min\_ehpe": 50, "gps\_hot\_fix\_retry": 5, "gps\_cold\_fix\_retry": 20, "gps\_fail\_retry": 0, "gps\_settings": {"d3\_fix": true, "fail\_backoff": false, "hot\_fix": true, "fully\_resolved": false}, "system\_voltage\_interval": 30, "gps\_charge\_min": 2500, "system\_charge\_min": 3450, "system\_charge\_max": 4000, "system\_input\_charge\_min": 10000, "pulse\_threshold": 3, "pulse\_on\_timeout": 60, "pulse\_min\_interval": 1, "gps\_accel\_z\_threshold": 0}
{% endhint %}

#### Deep sleep (no status - no battery consumption)

Use [Arduino IDE](https://www.arduino.cc/en/Main/Software&) to upload Deep sleep firmware:

{% file src="/files/-MSSdnn6L-P37XPKeNLA" %}

![Lion PCB Factory setup](/files/-MSSVREjfWBjxe2CBVvt)

![Rhino PCB Factory setup](/files/-MSSVVFrfVdCm57DYK4F)
