Queclink IoT Integration
Levy Fleets provides comprehensive support for Queclink GL530 series IoT devices, implementing 100% of the @Track Air Interface Protocol v80.56. With 85+ supported commands, this is one of the most feature-rich IoT integrations available.
Protocol Coverage
Levy Fleets implements the complete @Track Air Interface Protocol v80.56 with 85+ commands across all operational categories - the most comprehensive Queclink integration available.
Overview
Queclink IoT devices communicate with Levy Fleets through a secure API endpoint that processes extensive telemetry data. The integration supports:
- High-precision GPS tracking with multi-GNSS support
- Comprehensive battery monitoring including BMS integration
- ECU control for lock/unlock and speed limiting
- Multi-zone geofencing with entry/exit detection
- Extensive alarm system with customizable triggers
- CAN bus integration for vehicle diagnostics
- OTA configuration for remote device management
- NFC support for card-based operations
Device Configuration
Server Settings
Configure your Queclink device to communicate with Levy Fleets:
| Setting | Value |
|---|---|
| Server IP/Domain | Your Levy Fleets IoT endpoint |
| Port | As provided during setup |
| Protocol | HTTPS |
| Report Format | @Track Protocol |
Authentication
Queclink devices authenticate using the IoT API key. Configure the x-api-key header in your device settings.
Device Identification
Devices are identified by IMEI in the message payload. The system uses intelligent caching for vehicle lookups to optimize performance.
Supported Commands (85+)
Location Reports
| Command | Code | Description |
|---|---|---|
| Fixed Report Interval | GTFRI | Periodic GPS location with full telemetry |
| Event Report Interval | GTERI | Event-triggered location reports |
| Real-Time Location | GTRTO | On-demand position response |
| GPS Fix | GTGPS | GPS acquisition status |
| Location Request | GTRTL | Immediate location query response |
Status & Information
| Command | Code | Description |
|---|---|---|
| Status Report | GTSTT | Current device status |
| Device Information | GTINF | Hardware/firmware details |
| Version Information | GTVER | Software versions |
| Cell Info | GTCID | Cellular network data |
| Alive Check | GTALI | Device heartbeat response |
| Query Response | GTQRY | Configuration query |
| Serial Number | GTQSN | Device serial query |
| All Configuration | GTALC | Complete config dump |
| SIM Information | GTSIM | SIM card status and details |
| Audio Information | GTANM | Audio module status |
Battery & Power
| Command | Code | Description |
|---|---|---|
| Battery Status | GTBAT | Main battery status |
| Battery Low | GTBPL | Low battery alert |
| Battery Data | GTBAD | Detailed battery telemetry |
| Battery Abnormal Event | GTBAE | Battery anomaly detected |
| Battery Abnormal Clear | GTBAC | Battery anomaly cleared |
| Main Power Low | GTMPL | Main battery critically low |
| Battery Manager | GTBMI | BMS detailed data |
| Power On | GTPNA | Device power on event |
| Power On (Fixed) | GTPNL | Power on with location |
| Power Off | GTPFA | Device power off event |
| Charging Start | GTSCE | Main battery charging started |
| Charging Stop | GTPCE | Main battery charging stopped |
| Backup Charge Start | GTBTC | Backup battery charging |
| Backup Charge Stop | GTSTC | Backup battery charged |
| Main Power | GTEPN | External power connected |
| Backup Power | GTEPF | Running on backup power |
ECU (Electronic Control Unit)
| Command | Code | Description |
|---|---|---|
| ECU Status | GTECU | ECU operational data |
| ECU State Change | GTECS | ECU state transition |
| ECU Error | GTCFU | ECU fault codes |
| ECU Shutdown | GTCSD | Abnormal ECU shutdown |
| ECU Firmware Lost | GTCFL | ECU firmware error |
| CAN Version | GTCVR | CAN bus version |
| CAN Version II | GTCVI | Extended CAN info |
| CAN Transparent | GTCAT | Raw CAN data |
Lock Operations
| Command | Code | Description |
|---|---|---|
| Lock Status | GTLCK | Current lock state |
| Lock State Change | GTLKS | Lock transition event |
| Lock Successful | GTLOC | Lock command confirmed |
| Lock Failed | GTLOF | Lock command failed |
| Unlock Successful | GTULS | Unlock command confirmed |
| Unlock Failed | GTULF | Unlock command failed |
| Lock Request | GTLOR | ECU lock request |
| Mechanical Lock | GTMLS | Mechanical lock status |
Speed & Throttle
| Command | Code | Description |
|---|---|---|
| Throttle Status | GTSPD | Speed/throttle state |
| Speed Alarm | GTSPA | Over-speed alert |
| Speed Limit Set | GTSLS | Speed limit configured |
Geofencing
| Command | Code | Description |
|---|---|---|
| Geofence Event | GTGEO | Generic geofence trigger |
| Geofence Entry | GTGEI | Entered defined zone |
| Geofence Exit | GTGEX | Exited defined zone |
| Geofence List | GTGFL | Configured geofence list |
| Extended Geofence Event | GTGFE | Extended geofence trigger |
| Extended Geofence In | GTGFI | Extended geofence entry |
| Extended Geofence Transition | GTGFT | Extended geofence transition |
| Extended Geofence All | GTGFA | All extended geofence status |
Alarms & Alerts
| Command | Code | Description |
|---|---|---|
| General Alarm | GTALM | Configurable alarm event |
| SOS Alarm | GTSOS | Emergency alert |
| Alarm List | GTALS | Active alarm summary |
| Tampering | GTTMP | Device tamper detected |
| Vibration | GTVIB | Vibration/shock detected |
| Tow Alert | GTTOW | Vehicle being towed |
| Idle Alert | GTIDL | Extended idle detected |
Motion Detection
| Command | Code | Description |
|---|---|---|
| Motion Detection | GTJDR | Movement detected |
| Motion Start | GTJDS | Motion detection triggered |
| Ignition On | GTIGN | Ignition/power on |
| Ignition Off | GTIGF | Ignition/power off |
| Start Moving | GTSTR | Vehicle started moving |
| Stop Moving | GTSTP | Vehicle stopped |
| Motion Data | GTMDR | Detailed motion telemetry |
| Acceleration Data | GTADR | Accelerometer readings |
Overturn & Recovery
| Command | Code | Description |
|---|---|---|
| Overturn | GTBOV | Vehicle overturned |
| Recovery | GTBRN | Recovered from overturn |
| Crash Detection | GTCRA | Impact/crash detected |
System Events
| Command | Code | Description |
|---|---|---|
| Heartbeat | GTHBD | Keep-alive signal |
| Diagnostic Report | GTDGN | Device diagnostics |
| Error Report | GTERR | Error information |
| Network Connection | GTNCN | Server connection event |
| Watchdog Reboot | GTDOG | Watchdog-triggered restart |
| Device Reset | GTRST | Device reset event |
| Firmware Update | GTUPD | OTA firmware update status |
| Data Transmission | GTDAT | Data transmission event |
Configuration & GPS
| Command | Code | Description |
|---|---|---|
| GPS Configuration | GTCGP | GPS settings |
| Report Configuration | GTCFG | Reporting settings |
| Time Sync | GTTIM | Time synchronization |
| Timezone | GTTZN | Timezone configuration |
NFC & External
| Command | Code | Description |
|---|---|---|
| NFC Event | GTNFC | NFC card interaction |
| Service Request | GTRSS | Service stop request |
| Reservation | GTRES | Reservation event |
| Wireless Charging | GTWLC | Wireless charge status |
| Helmet Box | GTHLM | Helmet box unlock |
| Beacon Info | GTBEI | Bluetooth beacon data |
| Binding Report | GTBND | Device binding info |
Advanced Safety Detection
Queclink devices support advanced safety features unique to this integration:
| Command | Code | Description |
|---|---|---|
| Tire Burn Event | GTTBE | Tire overheating detected |
| Tire Burn Clear | GTTBC | Tire temperature normalized |
| Tandem Riding Event | GTTRE | Multiple riders detected |
| Tandem Riding Clear | GTTRC | Single rider confirmed |
Critical Safety Events
Tire burn (GTTBE) events are critical alerts that may automatically throttle the vehicle to prevent injury. These require immediate attention.
AI Detection & Auxiliary
Devices with AI box integration support intelligent detection:
| Command | Code | Description |
|---|---|---|
| AI Detection Event | GTAIE | AI-detected event (helmet, rider) |
| AI Box Information | GTAIF | AI module status and diagnostics |
The AI detection system can identify:
- Helmet usage compliance
- Rider behavior patterns
- Obstacle detection
- Lane departure warnings
Acknowledgments & Buffered
| Command | Type | Description |
|---|---|---|
| ACK Messages | +ACK | Command acknowledgments |
| Buffered Messages | +BUFF | Stored offline messages |
Message Format
Message Structure
Queclink messages follow this format:
+RESP:GTXXX,PROTOCOL,IMEI,...,CHECKSUM$
Components:
- +RESP / +ACK / +BUFF - Message type
- GTXXX - Command code
- PROTOCOL - Protocol version identifier
- IMEI - 15-digit device identifier
- ... - Command-specific data fields
- CHECKSUM$ - Message checksum
Example Messages
Location Report (GTFRI):
+RESP:GTFRI,380701,867648045123456,,0,0,1,1,0.0,0,35.6,-73.9876,40.7580,20251225120000,0310,0260,00F7,36A3,00,0.0,,,99,20251225120001,0065$
Battery Status (GTBAT):
+RESP:GTBAT,380701,867648045123456,,0,85,4200,0,20251225120000,0065$
Lock Success (GTLOC):
+RESP:GTLOC,380701,867648045123456,,0,1,20251225120000,0065$
Telemetry Processing
Location Report Processing
When receiving GTFRI or GTERI messages:
- Parse coordinates - Extract latitude, longitude, speed, heading
- Validate GPS fix - Check fix quality indicator
- Update vehicle - Set current position and last_location_update
- Store in ride history - If active ride, add to ride_locations
- Calculate speed - Convert and validate speed reading
- Apply odometer - Update cumulative distance
- Trigger zone check - Evaluate geofence boundaries
Battery Data Fields
Battery messages include comprehensive BMS data:
| Field | Description | Unit |
|---|---|---|
| Battery Level | State of charge | % (0-100) |
| Battery Voltage | Pack voltage | mV |
| Charging Status | Charging indicator | 0/1 |
| Temperature | Battery temperature | °C |
| Cycle Count | Charge cycles | count |
| Health | Battery health estimate | % |
ECU Report Processing
ECU messages (GTECU, GTECS) provide vehicle controller data:
| Field | Description |
|---|---|
| Lock State | Electronic lock engaged/released |
| Throttle State | Throttle enabled/disabled |
| Speed Limit | Current speed limit setting |
| Error Codes | Active ECU fault codes |
| Firmware | ECU firmware version |
Vehicle Identity Resolution
Caching Strategy
The integration uses efficient caching for vehicle lookups:
- Check memory cache - Look for IMEI in 1-hour cache
- Cache hit - Return cached vehicle identity immediately
- Cache miss - Query database for vehicle by
iot_imei - Populate cache - Store result for 1 hour
- Return identity - Provide vehicle UUID and number
Benefits
- Reduced database load - Single query per hour per device
- Faster processing - Sub-millisecond cache lookups
- Consistent identity - Same vehicle ID across all messages
Cache Invalidation
Cache is automatically cleared when:
- IoT devices are bulk imported
- Vehicle IMEI is changed
- Manual cache clear is triggered
Active Ride Integration
Ride Detection
For each incoming message:
- Query for active/paused rides by
vehicle_uuid - If not found, check by
vehicle_number(legacy support) - Backfill legacy rides with proper UUIDs
- Associate telemetry with ride
Location History
During active rides, location reports:
- Insert into
ride_locationstable - Include: coordinates, speed, altitude, heading
- Calculate if vehicle is moving
- Store raw data for debugging
- Update ride distance/duration
Zone Enforcement
After location processing:
await enforceZoneActions(admin, {
vehicleId: vehicleUuid,
rideId: rideId,
latitude: location.latitude,
longitude: location.longitude,
context: 'iot_queclink'
})
Zone actions include:
- Speed limit application in slow zones
- Throttle disable in no-go zones
- Alert generation for boundary violations
Sending Commands
IoT Password
Configure the Queclink password:
Settings > Vehicles > IoT Passwords > Queclink
Default password: ks600
Dashboard Commands
| Command | Action | Response |
|---|---|---|
| Lock | Send lock command | GTLOC (success) or GTLOF (fail) |
| Unlock | Send unlock command | GTULS (success) or GTULF (fail) |
| Sound | Play alert tone | GTSND acknowledgment |
| Locate | Flash lights | GTFLA acknowledgment |
| Query | Get device info | GTINF response |
Command Response Handling
Lock/unlock commands include result processing:
| Response | Status | Action |
|---|---|---|
GTLOC | Lock successful | Update vehicle: lock_status: 'locked' |
GTLOF | Lock failed | Log error, maintain current status |
GTULS | Unlock successful | Update vehicle: lock_status: 'unlocked' |
GTULF | Unlock failed | Log error, maintain current status |
Alarm Handling
Alarm Types
The system processes multiple alarm categories:
| Alarm | Code | Description | Severity |
|---|---|---|---|
| SOS | GTSOS | Emergency button pressed | Critical |
| Tamper | GTTMP | Device tampering detected | Critical |
| Tow | GTTOW | Vehicle being towed | High |
| Crash | GTCRA | Impact/collision detected | High |
| Vibration | GTVIB | Unusual vibration | Medium |
| Idle | GTIDL | Extended idle time | Low |
| Overturn | GTBOV | Vehicle tipped over | High |
Alarm Processing
- Parse alarm message and extract type
- Look up associated customer (if ride active)
- Create alarm record in database
- Generate notification if warranted
- Update vehicle status if needed
Customer Notifications
For certain alarms during active rides:
- SOS alerts notify fleet operators immediately
- Crash detection may trigger emergency protocols
- Tamper alerts flag for investigation
Data Storage
Telemetry Table
All messages stored with:
| Field | Description |
|---|---|
vehicle_uuid | Associated vehicle |
vehicle_number | Human-readable ID |
imei | Device IMEI |
raw_payload | Complete message JSON |
message_type | Command code |
timestamp | Message time |
idempotency_key | Dedup key |
battery_level | Extracted battery % |
speed | Extracted speed |
latitude | Extracted latitude |
longitude | Extracted longitude |
lock_status | Lock state if reported |
Ride Locations
For active rides, GPS data stored in ride_locations:
| Field | Description |
|---|---|
ride_uuid | Associated ride |
latitude | GPS latitude |
longitude | GPS longitude |
speed | Speed at point |
altitude | GPS altitude |
heading | Direction of travel |
accuracy | GPS accuracy |
is_moving | Movement indicator |
raw_data | Original message |
timestamp | Fix timestamp |
Unmatched Devices
Recording Unmatched
When a message arrives from an unknown IMEI:
- Process message for logging purposes
- Record in
iot_unmatched_devicestable - Store: IMEI, protocol, source, payload, timestamps
- Make visible in dashboard "Unmatched Devices"
Resolving Unmatched
To register an unmatched device:
- Navigate to IoT Devices > Unmatched Devices
- Click on the unmatched entry
- Click "Register Device"
- Fill required fields (subaccount, IoT type)
- Save - device is now tracked normally
Configuration Options
Report Intervals
Configure how often the device reports:
| Setting | Description | Default |
|---|---|---|
| FRI Interval | Fixed report interval | 30 seconds |
| HBD Interval | Heartbeat interval | 5 minutes |
| GPS Timeout | Max time for GPS fix | 180 seconds |
Power Modes
| Mode | Description | Battery Impact |
|---|---|---|
| Normal | Full reporting | High |
| Power Save | Reduced frequency | Medium |
| Sleep | Minimal reporting | Low |
| Deep Sleep | On-demand only | Minimal |
Geofence Configuration
Configure up to 100 geofence zones per device:
| Parameter | Description |
|---|---|
| Zone ID | Unique identifier (1-100) |
| Shape | Circle or polygon |
| Coordinates | Center/vertices |
| Radius | For circular zones |
| Actions | Entry/exit triggers |
Troubleshooting
No Location Updates
Symptoms: Vehicle position not updating
Solutions:
- Check device power and battery level
- Verify GPS antenna has sky view
- Review FRI interval configuration
- Check cellular connectivity
- Examine GTGPS messages for fix status
Commands Not Working
Symptoms: Lock/unlock commands not executed
Solutions:
- Verify IoT password in Settings
- Check device is online (last seen < 5 min)
- Review command response (
GTLOF/GTULF= failure) - Check ECU status for errors
- Power cycle vehicle if needed
Heartbeat Missing
Symptoms: Device shows offline, no GTHBD
Solutions:
- Verify server configuration on device
- Check cellular signal strength
- Ensure SIM card is active
- Review for watchdog reboots (
GTDOG) - Check device isn't in deep sleep
Zone Enforcement Not Working
Symptoms: Speed not limited in slow zones
Solutions:
- Verify zone is properly configured
- Check zone type supports enforcement
- Confirm ride is active
- Review location accuracy
- Check ECU can receive speed commands
Buffered Messages
Symptoms: Delayed telemetry arrival
Explanation: When offline, device buffers messages and sends when reconnected. These arrive with +BUFF prefix.
Handling:
- Messages are processed with original timestamps
- Ride statistics are retroactively updated
- Zone enforcement not applied to historical data
API Reference
Endpoint
POST /api/iot/queclink
Headers
x-api-key: your-iot-api-key
Content-Type: application/json
Request Body
{
"imei": "867648045123456",
"message": "+RESP:GTFRI,380701,867648045123456,...",
"timestamp": "2025-12-25T12:00:00Z"
}
Response
{
"success": true,
"imei": "867648045123456",
"messageType": "+RESP",
"command": "GTFRI",
"processed": true
}
Health Check
GET /api/iot/queclink
Returns service status including:
- Service name and version
- Protocol version
- Coverage statistics (85 commands, 100%)
- List of all supported commands
Technical Support
For Queclink integration issues, contact support@levyelectric.com with:
- Device IMEI
- Raw message content (if available)
- Timestamp of the issue
- Expected vs. actual behavior
- Any relevant error codes