Bemerkung
Die openHAB-Dokumentation ist nur auf Englisch verfügbar.
Warnung
The openHAB bindings are still in beta, but the development was stopped.
This is the description of the openHAB API bindings for the GPS Bricklet 3.0. General information and technical specifications for the GPS Bricklet 3.0 are summarized in its hardware description.
An installation guide for the openHAB API bindings is part of their general description.
UID:
- tinkerforge:brickletgpsv3:[UID]
Required firmware version:
- 2.0.0
Firmware update supported:
- yes
Channels: Actions: Parameters:
- Fix LED – Type: Choice, Default: Show Fix
- The fix LED configuration. By default the LED shows if the Bricklet got a GPS fix yet. If a fix is established the LED turns on. If there is no fix then the LED is turned off. You can also turn the LED permanently on/off, show a heartbeat or let it blink in sync with the PPS (pulse per second) output of the GPS module. If the Bricklet is in bootloader mode, the LED is off.
- Options: Off, On, Show Heartbeat, Show Fix, Show PPS
- SBAS – Type: boolean, Default: true
- If SBAS is enabled, the position accuracy increases (if SBAS satellites are in view), but the update rate is limited to 5Hz. With SBAS disabled the update rate is increased to 10Hz.
- Status Update Interval – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
- Specifies the update interval for the status in milliseconds. A value of 0 disables automatic updates.
- Altitude Update Interval – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
- Specifies the update interval for the altitude and geodial separation in milliseconds. A value of 0 disables automatic updates.
- Motion Update Interval – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
- Specifies the update interval for the course and speed in milliseconds. A value of 0 disables automatic updates.
- Status LED Configuration – Type: Choice, Default: Show Status
- The status LED configuration. By default the LED shows communication traffic between Brick and Bricklet, it flickers once for every 10 received data packets. You can also turn the LED permanently on/off or show a heartbeat. If the Bricklet is in bootloader mode, the LED is will show heartbeat by default.
- Options: Off, On, Show Heartbeat, Show Status
Location
¶The location as determined by the bricklet.
Type:
- Location
UID:
- tinkerforge:brickletgpsv3:[UID]:BrickletGPSV3Location
Read only:
- No
Parameters:
- Update Interval – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
- Specifies the update interval in milliseconds. A value of 0 disables automatic updates.
Fix
¶The current fix status
Type:
- Contact
UID:
- tinkerforge:brickletgpsv3:[UID]:BrickletGPSV3Fix
Read only:
- No
Satellites In View
¶The number of satellites that are in view.
Type:
- Number:Dimensionless
UID:
- tinkerforge:brickletgpsv3:[UID]:BrickletGPSV3SatellitesInView
Read only:
- Yes
Altitude
¶The measured altitude
Type:
- Number:Length
UID:
- tinkerforge:brickletgpsv3:[UID]:BrickletGPSV3Altitude
Read only:
- Yes
Unit:
- Meter
Geoidal Separation
¶The geoidal separation corresponding to the current altitude
Type:
- Number:Length
UID:
- tinkerforge:brickletgpsv3:[UID]:BrickletGPSV3GeoidalSeparation
Read only:
- Yes
Unit:
- Meter
Course
¶The current course. A course of 0° means the Bricklet is traveling north bound and 90° means it is traveling east bound. Please note that this only returns useful values if an actual movement is present.
Type:
- Number:Angle
UID:
- tinkerforge:brickletgpsv3:[UID]:BrickletGPSV3Course
Read only:
- Yes
Unit:
- Degree Angle
Range:
- 0 Degree Angle to 360 Degree Angle (Step 0.01 Degree Angle)
Speed
¶The current speed. Please note that this only returns useful values if an actual movement is present.
Type:
- Number:Speed
UID:
- tinkerforge:brickletgpsv3:[UID]:BrickletGPSV3Speed
Read only:
- Yes
Unit:
- Kilometre Per Hour
Date Time
¶The current date and time.
Type:
- DateTime
UID:
- tinkerforge:brickletgpsv3:[UID]:BrickletGPSV3DateTime
Read only:
- No
Parameters:
- Update Interval – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
- Specifies the update interval in milliseconds. A value of 0 disables automatic updates.
Pulse Per Second
¶This channel is triggered precisely once per second, see PPS.
The precision of two subsequent pulses will be skewed because of the latency in the USB/RS485/Ethernet connection. But in the long run this will be very precise. For example a count of 3600 pulses will take exactly 1 hour.
Type:
- Trigger (system.trigger)
UID:
- tinkerforge:brickletgpsv3:[UID]:BrickletGPSV3PulsePerSecond
Read only:
- No
Restart
¶Restarts the GPS Bricklet, the following restart types are available:
Type:
- Commands (String)
UID:
- tinkerforge:brickletgpsv3:[UID]:BrickletGPSV3Restart
Read only:
- No
Commands:
- Hot Start
- Warm Start
- Cold Start
- Factory reset
Actions can be used in rules by creating an action object. All actions return a Map<String, Object>. Returned values can be accessed by name, sometimes the type deduction needs some hints, as shown below:
val actions = getActions("tinkerforge", "tinkerforge:brickletgpsv3:[UID]")
val hwVersion = actions.brickletGPSV3GetIdentity().get("hardwareVersion") as short[]
logInfo("Example", "Hardware version: " + hwVersion.get(0) + "." + hwVersion.get(1) + "." + hwVersion.get(2))
brickletGPSV3GetCoordinates
()¶Return Map: |
|
---|
Returns the GPS coordinates. Latitude and longitude are given in the
DD.dddddd°
format, the value 57123468 means 57.123468°.
The parameter ns
and ew
are the cardinal directions for
latitude and longitude. Possible values for ns
and ew
are 'N', 'S', 'E'
and 'W' (north, south, east and west).
This data is only valid if there is currently a fix as indicated by
Fix
.
brickletGPSV3GetStatus
()¶Return Map: |
|
---|
Returns if a fix is currently available as well as the number of satellites that are in view.
There is also a green LED on the Bricklet that indicates the fix status.
brickletGPSV3GetAltitude
()¶Return Map: |
|
---|
Returns the current altitude and corresponding geoidal separation.
This data is only valid if there is currently a fix as indicated by
Fix
.
brickletGPSV3GetMotion
()¶Return Map: |
|
---|
Returns the current course and speed. A course of 0° means the Bricklet is traveling north bound and 90° means it is traveling east bound.
Please note that this only returns useful values if an actual movement is present.
This data is only valid if there is currently a fix as indicated by
Fix
.
brickletGPSV3GetDateTime
()¶Return Map: |
|
---|
Returns the current date and time. The date is
given in the format ddmmyy
and the time is given
in the format hhmmss.sss
. For example, 140713 means
14.07.13 as date and 195923568 means 19:59:23.568 as time.
brickletGPSV3GetSatelliteSystemStatus
(int satelliteSystem)¶Parameters: |
|
---|---|
Return Map: |
|
Returns the
for a given satellite system. Currently GPS, GLONASS and Galileo are supported.
The GPS and GLONASS satellites have unique numbers and the satellite list gives the numbers of the satellites that are currently utilized. The number 0 is not a valid satellite number and can be ignored in the list.
The following constants are available for this function:
For satelliteSystem:
For fix:
brickletGPSV3GetSatelliteStatus
(int satelliteSystem, int satelliteNumber)¶Parameters: |
|
---|---|
Return Map: |
|
Returns the current elevation, azimuth and SNR for a given satellite and satellite system.
The available satellite numbers are:
The following constants are available for this function:
For satelliteSystem:
brickletGPSV3Restart
(int restartType)¶Parameters: |
|
---|
Restarts the GPS Bricklet, the following restart types are available:
Value | Description |
---|---|
0 | Hot start (use all available data in the NV store) |
1 | Warm start (don't use ephemeris at restart) |
2 | Cold start (don't use time, position, almanacs and ephemeris at restart) |
3 | Factory reset (clear all system/user configurations at restart) |
The following constants are available for this function:
For restartType:
brickletGPSV3GetFixLEDConfig
()¶Return Map: |
|
---|
Returns the configuration as set by the thing configuration
The following constants are available for this function:
For config:
brickletGPSV3GetSBASConfig
()¶Return Map: |
|
---|
Returns the SBAS configuration as set by the thing configuration
The following constants are available for this function:
For sbasConfig:
brickletGPSV3GetChipTemperature
()¶Return Map: |
|
---|
Returns the temperature as measured inside the microcontroller. The value returned is not the ambient temperature!
The temperature is only proportional to the real temperature and it has bad accuracy. Practically it is only useful as an indicator for temperature changes.
brickletGPSV3GetStatusLEDConfig
()¶Return Map: |
|
---|
Returns the configuration as set by the thing configuration
The following constants are available for this function:
For config:
brickletGPSV3GetSPITFPErrorCount
()¶Return Map: |
|
---|
Returns the error count for the communication between Brick and Bricklet.
The errors are divided into
The errors counts are for errors that occur on the Bricklet side. All Bricks have a similar function that returns the errors on the Brick side.
brickletGPSV3Reset
()¶Calling this function will reset the Bricklet. All configurations will be lost.
After a reset you have to create new device objects, calling functions on the existing ones will result in undefined behavior!
brickletGPSV3GetIdentity
()¶Return Map: |
|
---|
Returns the UID, the UID where the Bricklet is connected to, the position, the hardware and firmware version as well as the device identifier.
The position can be 'a', 'b', 'c', 'd', 'e', 'f', 'g' or 'h' (Bricklet Port). A Bricklet connected to an Isolator Bricklet is always at position 'z'.
The device identifier numbers can be found here.