Jump to content

Commands of Discovery 2G: Difference between revisions

From Transight Wiki
No edit summary
No edit summary
Line 37: Line 37:
|-
|-
| APN
| APN
| SET CUAPN:M2MISAFEcom<br>SET CUAPN:airtelgprs.com<br>GET CUAPN<br>Response: APN:M2MISAFE
| SET CUAPN:<APN><br>Example:<br>SET CUAPN:airtelgprs.com<br>GET CUAPN<br>Response: APN:airtelgprs.com
| Set Access Point Name (APN) based on SIM provider.
| Set Access Point Name (APN) based on SIM provider.
| SET, GET
| SET, GET
Line 95: Line 95:
|-
|-
| OWCFG
| OWCFG
| SET CUOWCFG:<name of sensor><br>Example:<br>SET CUOWCFG:DS18B20<br>GET CUOWCFG
| SET CUOWCFG:SET CUOWCFG:<name of sensor><br>Example:<br>SET CUOWCFG:DS18B20<br>GET CUOWCFG
| One-wire sensor configuration (e.g., DS18B20, AM2305)
| One-wire sensor configuration (e.g., DS18B20, AM2305)
| SET GET
| SET GET
|-
|-
| OWNOS
| OWNOS
| SET CUOWNOS:2<br>GET CUOWNOS<br>Response: TEMPERATURE SENSOR NOS: 2
| SET CUOWNOS:<Number of sensors><br>Example:<br>GET CUOWNOS<br>Response: TEMPERATURE SENSOR NOS: 2
| Set or get number of 1-wire temperature sensors.
| Set or get number of 1-wire temperature sensors.
| SET GET
| SET GET

Revision as of 12:31, 13 August 2025

Configuration Commands Example and Response (CU) Description Command Type (SET/GET)
URL SET CUURL:TCP:<IP>:<PORT>
SET CUURL:url
GET CUURL
Response:
URL:http://livedata.transight.net:6000/data
URL:TCP:15.235.9.66:50334
To SET and GET server URL for customer and transight IPs in HTTP and TCP protocol.
Data packets will be sent from the device to the configured IP address.
SET GET
UR (in seconds) SET CUUR:<duration>
GET CUUR
Example:
SET CUUR:30
GET CUUR
Response: UR: 30
Update rate while in motion (in seconds). Determines packet sending frequency. SET, GET
URT (halt, in minutes) SET CUURT:<duration>
GET CUURT
Example:
SET CUURT:30
GET CUURT
Response: CUURT: 30
Update rate during halt (in minutes). SET, GET
URS (sleep, in minutes) SET CUURS:<duration>
GET CUURS
Example:
SET CUURS:30
GET CUURS
Response: CUURS: 30
Update rate during sleep (in minutes). SET, GET
M1 SET CUM1:<+91xxxxxxxxxx>
GET CUM1
Primary mobile number for alerts and configuration via SMS. SET, GET
M2 SET CUM2:<+91xxxxxxxxxx>
GET CUM2
Secondary mobile number. SET, GET
APN SET CUAPN:<APN>
Example:
SET CUAPN:airtelgprs.com
GET CUAPN
Response: APN:airtelgprs.com
Set Access Point Name (APN) based on SIM provider. SET, GET
FRNO SET CUFRNO:<number>
GET CUFRNO
Example: SET CUFRNO:12
Response: FRNO:12
Get or set frame number. Used for sequential frame control. SET GET
FSMODE SET CUFSMODE:<0/1>
GET CUFSMODE
Example: SET CUFSMODE:1
Response: FSMODE:1
File system mode:
0 = FIFO
1 = LIFO
SET GET
IOCFG SET CUIOCFG:IO1-DI-GEN*IO2-DO-GEN*IO3-AN-GEN*
Response:

CUIOCFG:No ErrorDEQUEUE_SUCCESS
GET CUIOCFG
Response:
NUM = 1 mode = DI fun = GEN
NUM = 2 mode = DO fun = GEN
NUM = 3 mode = AN fun = GEN
CUIOCFG:IO1-DI-GEN*IO2-DO-GEN*IO3-AN-GEN

Configure pins as Digital Input, Output or Analog. SET GET
ENIP SET CUENIP:0.1,1.0
GET CUENIP
Response: ENIP:0.1,1.0
SET TSENAPP:<IP>.<state>,<IP>.<state>

IP:Transight-0, Customer-1
State:1- Enabled, 0- Disabled
ENAPP:0.1,1.1

SET GET
DO SET CUDO:1.n,2.n (n=0:off,1:on)
GET CUDO
Response: DO 1:OFF/ON - DO 2:OFF/ON
Digital output control for pins. SET GET
VID SET CUVID:TRANSI
GET CUVID
Response: VID: TRANS
Get/Set vendor ID. SET GET
DI GET CUDI
Response: DI:000
Digital input status (LOW = 0, HIGH = 1) GET
AI GET CUAI
Response: AI:0-0-0
Analog input voltage reading. GET
ENOW SET CUENOW:ON/OFF
GET CUENOW
Response: ENOW:OFF
Enable or disable 1-wire sensor. SET GET
OWCFG SET CUOWCFG:SET CUOWCFG:<name of sensor>
Example:
SET CUOWCFG:DS18B20
GET CUOWCFG
One-wire sensor configuration (e.g., DS18B20, AM2305) SET GET
OWNOS SET CUOWNOS:<Number of sensors>
Example:
GET CUOWNOS
Response: TEMPERATURE SENSOR NOS: 2
Set or get number of 1-wire temperature sensors. SET GET
GF (Geofence) SET CUGF:<entry/delete>-<geofence ID>-<alert type>-<shape>#<latitude-longitude>#....&

SET CUGF:<geofence ID>-<alert type>-<shape>#<latitude-longitude of center>#<radius in meter>
Example for Polygon:
SET CUGF:1-12345-1-1#10.0564051-76.3569957#10.0558456-76.3570601#10.0565529-76.3601607#10.0573870-76.3597316#10.0564051-76.356995&
Example for Circle:
SET CUGF:1-12345-1-0#10.0557866-76.3545692#5000()

Shape
0 - circle
1 - polygon
Alert type
1-entry
2-exit
3-entry & exit
SET GET
FUELTYPE SET CUFUELTYPE:ESCORT485,1
GET CUFUELTYPE
Response: ESCORT485,1
Select fuel sensor type & number. SET GET
FUELDATACFG SET CUFUELDATACFG:ESCORT,1,00,PASSIVE1023,SMART,SMART_0
GET CUFUELDATACFG:ESCORT,1
Response: Filtered fuel data
Configure ESCORT485/TECHNO/OMNICOM/STRELLA/EUROSENS/INDIAN sensors. SET GET
FUELMODE SET CUFUELMODE:1,1,5
GET CUFUELMODE:1
Response: ESCORT485, Mode: PERIODIC
Fuel mode settings:
1 = Request
0 = Periodic
Set sensor index & interval.
SET GET
FUELCALIBRATE SET CUFUELCALIBRATE:FULL,1 Calibrate fuel level: FULL or EMPTY per sensor. SET
DEVI GET CUDEVI Get complete device info in JSON format (raw packet). GET
DEVCFG GET CUDEVCFG Get device configuration JSON packet. GET
IMOB SET CUIMOB:ON/OFF
GET CUIMOB
Response: IMOB:OFF
Enable or disable immobilizer feature. SET GET
ORIENTATION SET CUORIENTATION:1
GET CUORIENTATION
Response: 1
Mounting orientation:
1 = Horizontal, Antenna up
2 = Vertical, Antenna forward, etc.
SET GET
ACCELENABLE SET CUACCELENABLE:1
GET CUACCELENABLE
Response: ACCELERO_ENABLE_STATUS: 1
Enable/Disable accelerometer. SET GET
SL (Speed Limit) SET CUSL:70
GET CUSL
Response: SPEEDLIMIT: 70
Set maximum speed for alerts. SET GET
HBT (Brake Threshold) SET CUHBT:-4
GET CUHBT
Response: BRAKE_THRESHOLD: -4.000000
Set harsh brake threshold in G-forces. SET GET
HAT (Acceleration Threshold) SET CUHAT:3
GET CUHAT
Response: ACC_THRESHOLD: 3.000000
Set harsh acceleration threshold. SET GET
RTT (Turn Threshold) SET CURTT:3
GET CURTT
Response: TURN_THRESHOLD: 3.000000
Set turn threshold in G-forces. SET GET
TA (Tilt Angle) SET CUTA:40
GET CUTA
Response: TILT ANGLE THRESHOLD: 40
Set tilt alert threshold (degrees). SET GET
VN (Vehicle Number) SET CUVN:TN51AN5503
GET CUVN
Response: VEHICLE_REG_NUMBER: TN51AN5503
Set or get registered vehicle number. SET GET
CH (Clear History) SET CUCH Clear history logs from device. SET
MR (Restart) SET CUMR:<Number> Restart
Microcontroller Mode:
1. Immediate Restart
2. Normal Restart
3. Power Key restart
4. MCU immediate Restart
5. MCU Normal Restart
SET
FWINFO GET CUFWINFO
Response: FWINFO: TSD2G_0_3.0.2, etc.
Get firmware version info of all modules. GET
IMEI GET CUIMEI
Response: IMEI: 869137069984441
Get device IMEI number. GET
SPI GET CUSPI
Response: REMAINING PACKETS=1566
Get count of unsent packets in memory. GET
LOC GET CULOC
Response: LAT/LON/SPEED/ALT/SAT
Get current location snapshot. GET
SUPT (Uptime) GET CUSUPT
Response: DEVICE_UPTIME: d-h-m-s
Get device uptime since last reboot. GET
ODOMODE SET CUODOMODE:<0/1>
GET CUODOMODE
Response: CUODOMODE:1
Odometer mode:
1 = Accumulated
0 = Differential
SET GET
ODO GET CUODO
Response: CUODO:111 METERS
Get total odometer reading. GET
NWI (Network Info) GET CUNWI
Response:
CUNWI:VI-404-19-1-1-20-0-0
Command to get the network information

Response Format: CUNWI:<Operator Name>-<MCC>-<MNC>-<GSM nw reg stat>-<GPRS nw reg stat>-<signal strength>-<GSM nw reg loss tmr>-<GPRS nw reg loss timer> GSM nw reg stat :

1 – Registration OK
2 - Searching
3 - Deny
5 – Registration OK Roaming
0 – Not registered

GPRS nw reg stat

1 – Registration OK
2 - Searching
3 - Deny
5 – Registration OK Roaming
0 – Not registered

Signal Strength: 1 -31 in ASW
GSM nw reg loss timer : Time is seconds elapsed after GSM network registration loss
GPRS nw reg loss timer : Time is seconds elapsed after GPRS network registration loss

GET
COMSTAT GET CUCOMSTAT
Response: COMSTAT:4-0
Get success/failure communication counts. GET
SECURESMS SET CUSECURESMS:<0/1>
Example:
SET CUSECURESMS:1
GET CUSECURESMS
Response: SECURESMS:1
Enable or disable secure SMS feature. SET GET