Commands of Discovery 2G: Difference between revisions
No edit summary |
No edit summary |
||
| Line 57: | Line 57: | ||
Response:<br>NUM = 1 mode = DI fun = GEN<br> | Response:<br>NUM = 1 mode = DI fun = GEN<br> | ||
NUM = 2 mode = DO fun = GEN<br>NUM = 3 mode = AN fun = GEN<br> | NUM = 2 mode = DO fun = GEN<br>NUM = 3 mode = AN fun = GEN<br> | ||
CUIOCFG: | CUIOCFG:IO1-DI-GEN*IO2-DO-GEN*IO3-AN-GEN | ||
IO1-DI-GEN*IO2-DO-GEN*IO3-AN-GEN | |||
| Configure pins as Digital Input, Output or Analog. | | Configure pins as Digital Input, Output or Analog. | ||
| SET GET | | SET GET | ||
| Line 67: | Line 66: | ||
IP:Transight-0, Customer-1<br> | IP:Transight-0, Customer-1<br> | ||
State:1- Enabled, 0- Disabled<br> | State:1- Enabled, 0- Disabled<br> | ||
ENAPP:0.1,1. | ENAPP:0.1,1.1 | ||
| SET GET | | SET GET | ||
|- | |- | ||
| DO | | DO | ||
| SET CUDO:1. | |SET CUDO:1.n,2.n (n=0:off,1:on)<br>GET CUDO<br>Response: DO 1:OFF/ON - DO 2:OFF/ON | ||
| Digital output control for pins. | | Digital output control for pins. | ||
| SET GET | | SET GET | ||
| Line 93: | Line 92: | ||
| SET CUENOW:ON/OFF<br>GET CUENOW<br>Response: ENOW:OFF | | SET CUENOW:ON/OFF<br>GET CUENOW<br>Response: ENOW:OFF | ||
| Enable or disable 1-wire sensor. | | Enable or disable 1-wire sensor. | ||
| SET GET | |||
|- | |||
| OWCFG | |||
| SET CUOWCFG:<name of sensor><br>Example:<br>SET CUOWCFG:DS18B20<br>GET CUOWCFG | |||
| One-wire sensor configuration (e.g., DS18B20, AM2305) | |||
| SET GET | |||
|- | |||
| OWNOS | |||
| SET CUOWNOS:2<br>GET CUOWNOS<br>Response: TEMPERATURE SENSOR NOS: 2 | |||
| Set or get number of 1-wire temperature sensors. | |||
| SET GET | | SET GET | ||
|- | |- | ||
| Line 103: | Line 112: | ||
SET CUGF:1-12345-1-0#10.0557866-76.3545692#5000()<br> | SET CUGF:1-12345-1-0#10.0557866-76.3545692#5000()<br> | ||
| Shape<br>0 - circle<br>1 - polygon<br>Alert type<br>1-entry<br>2-exit<br>3-entry & exit | | Shape<br>0 - circle<br>1 - polygon<br>Alert type<br>1-entry<br>2-exit<br>3-entry & exit | ||
| SET GET | | SET GET | ||
|- | |- | ||
| Line 191: | Line 195: | ||
|- | |- | ||
| MR (Restart) | | MR (Restart) | ||
| SET | | SET CUMR:<Number> | ||
| Restart | | Restart<br>Microcontroller Mode:<br>1. Immediate Restart<br>2. Normal Restart<br>3. Power Key restart<br>4. MCU immediate Restart<br>5. MCU Normal Restart<br> | ||
| SET | | SET | ||
|- | |- | ||
| Line 221: | Line 225: | ||
|- | |- | ||
| ODOMODE | | ODOMODE | ||
| SET CUODOMODE:1<br>GET CUODOMODE<br>Response: CUODOMODE:1 | | SET CUODOMODE:<0/1><br>GET CUODOMODE<br>Response: CUODOMODE:1 | ||
| Odometer mode:<br>1 = Accumulated<br>0 = Differential | | Odometer mode:<br>1 = Accumulated<br>0 = Differential | ||
| SET GET | | SET GET | ||
| Line 231: | Line 235: | ||
|- | |- | ||
| NWI (Network Info) | | NWI (Network Info) | ||
| GET CUNWI<br>Response: MCC-MNC-GSM | | GET CUNWI<br>Response:<br>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 :<br> | |||
1 – Registration OK | |||
2 - Searching | |||
3 - Deny | |||
5 – Registration OK Roaming | |||
0 – Not registered | |||
GPRS nw reg stat <br> | |||
1 – Registration OK | |||
2 - Searching | |||
3 - Deny | |||
5 – Registration OK Roaming | |||
0 – Not registered | |||
Signal Strength: 1 -31 in ASW<br> | |||
GSM nw reg loss timer : Time is seconds elapsed | |||
after GSM network registration loss<br> | |||
GPRS nw reg loss timer : Time is seconds elapsed | |||
after GPRS network registration loss | |||
| GET | | GET | ||
|- | |- | ||
| Line 239: | Line 265: | ||
| Get success/failure communication counts. | | Get success/failure communication counts. | ||
| GET | | GET | ||
|- | |- | ||
| SECURESMS | | SECURESMS | ||
| SET CUSECURESMS:1<br>GET CUSECURESMS<br>Response: SECURESMS:1 | | SET CUSECURESMS:<0/1><br>Example:<br>SET CUSECURESMS:1<br>GET CUSECURESMS<br>Response: SECURESMS:1 | ||
| Enable or disable secure SMS feature. | | Enable or disable secure SMS feature. | ||
| SET GET | | SET GET | ||
|} | |} | ||
< | </div> | ||
Revision as of 09:59, 8 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:M2MISAFEcom SET CUAPN:airtelgprs.com GET CUAPN Response: APN:M2MISAFE |
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 |
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 |
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:<name of sensor> Example: SET CUOWCFG:DS18B20 GET CUOWCFG |
One-wire sensor configuration (e.g., DS18B20, AM2305) | SET GET |
| OWNOS | SET CUOWNOS:2 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> |
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 |
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 |