Commands of Discovery 4G: Difference between revisions
No edit summary |
No edit summary |
||
| Line 48: | Line 48: | ||
| FRNO | | FRNO | ||
| SET CUFRNO:<number><br>GET CUFRNO<br>Example:<br>SET CUFRNO:12<br>GET CUFRNO<br>Response:<br>FRNO:12 | | SET CUFRNO:<number><br>GET CUFRNO<br>Example:<br>SET CUFRNO:12<br>GET CUFRNO<br>Response:<br>FRNO:12 | ||
| | | This command is used to get or set the current frame number. The frame numbers are generated in sequential order. | ||
| SET GET | | SET GET | ||
|- | |- | ||
| FSMODE | | FSMODE | ||
| SET CUFSMODE:<0/1><br>GET CUFSMODE<br>Example:<br>SET CUFSMODE:1<br>GET CUFSMODE<br>Response:<br>FSMODE:1 | | SET CUFSMODE:<0/1><br>GET CUFSMODE<br>Example:<br>SET CUFSMODE:1<br>GET CUFSMODE<br>Response:<br>FSMODE:1 | ||
| 0 - FIFO | | This command would set the file system mode:<br>0-FIFO<br>1-LIFO | ||
| SET GET | | SET GET | ||
|- | |- | ||
| IOCFG | | IOCFG | ||
| SET CUIOCFG:IO1-AN-GEN*IO2-DI-GEN*IO3-DO-IMB*<br>GET CUIOCFG | | SET CUIOCFG:IO1-AN-GEN*IO2-DI-GEN*IO3-DO-IMB*<br>GET CUIOCFG | ||
| | | This command is used to configure the pin as Digital Input, or Digital Output, or Analog.<br>AN - Analog<br>DO - Digital Output<br>DI - Digital Input | ||
| SET GET | | SET GET | ||
|- | |- | ||
| ENIP | | ENIP | ||
| SET CUENIP:0.1,1.0<br>GET CUENIP<br>Response:<br>ENIP:0.1,1.0 | | SET CUENIP:0.1,1.0<br>GET CUENIP<br>Response:<br>ENIP:0.1,1.0 | ||
| | | SET TSENIP:<IP>.<state>,<IP>.<state> | ||
IP:Transight-0, Customer-1 | |||
State:<br>1- Enabled<br>0- Disabled<br>ENIP:0.1,1.0 (TS enabled and CU disabled - default) | |||
| SET GET | | SET GET | ||
|- | |- | ||
| DO | | DO | ||
| SET CUDO:1.0,2.0<br>GET CUDO<br>Response:<br>DO 1:OFF/ON - DO 2:OFF/ON | | SET CUDO:1.0,2.0<br>GET CUDO<br>Response:<br>DO 1:OFF/ON - DO 2:OFF/ON | ||
| | | Pin Number: 1 or 2<br>Pin State: 0-off, 1-On<br>Each pin configuration separated by"","" | ||
| SET GET | | SET GET | ||
|- | |- | ||
| Line 87: | Line 89: | ||
|- | |- | ||
| GF | | GF | ||
| SET CUGF:< | | Polygon:<br>SET CUGF:<Status><geofence ID>-<alert type>-<shape>#<latitude-longitude>#....&<br> | ||
| | Circle:<br>SET CUGF:<Status><geofence ID>-<alert type>-<shape>#<latitude-longitude (center point of circle)>#<radius in meter> | ||
Example for Polygon:<br> | |||
SET CUGF:1-1777-3-1#10.0535097-76.334262#10.0504267-76.3328855#10.0474386-76.3439598#10.0503084-76.3437023#10.0535097-76.334262& | |||
Example for Circle:<br> | |||
SET CUGF:1-1313-3-0#10.055625576.3544891#1000 | |||
GET CUGF<br> | |||
Response:<br> | |||
NO of geofences: 1<br> | |||
| Status<br>0 - Disable<br>1 - Enable<br> | |||
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 98: | Line 110: | ||
CUFUELNOS: 1<br> | CUFUELNOS: 1<br> | ||
GET CUFUELTYPE | GET CUFUELTYPE | ||
Response: | Response:<br> | ||
ESCORT485,1 | ESCORT485,1 | ||
| | | Enables and Selects fuel sensor Type:<br> | ||
Param1:<br>TECHNO485,OMNICOM485,ESCORT485,OFF<br> | |||
Param2:<br> | |||
Number of fuel sensors attached | |||
| SET GET | | SET GET | ||
|- | |- | ||
| Line 120: | Line 135: | ||
Param1:ESCORT<br> | Param1:ESCORT<br> | ||
Param2:Network Address - 0x00 - 0xe7<br> | Param2:Network Address - 0x00 - 0xe7<br> | ||
Param3:Mode - | Param3:Mode -<br> | ||
PASSIVE1023 | PASSIVE1023<br> | ||
FREQUENCY1023 | FREQUENCY1023<br> | ||
PERIODIC1023 | PERIODIC1023<br> | ||
PASSIVE4095 | PASSIVE4095<br> | ||
FREQUENCY4095 | FREQUENCY4095<br> | ||
PERIODIC4095 | PERIODIC4095<br> | ||
Param4:Filtertype: | Param4:Filtertype:<br> | ||
SMART | SMART<br> | ||
MEDIAN | MEDIAN<br> | ||
Param5:Filter: | Param5:Filter:<br> | ||
SMART_0 | SMART_0<br> | ||
SMART_UPTO_200 | SMART_UPTO_200<br> | ||
SMART_200_1000 | SMART_200_1000<br> | ||
SMART_MORE_THAN_1000 | SMART_MORE_THAN_1000<br> | ||
SMART_HEAVY_CONDITIONS | SMART_HEAVY_CONDITIONS<br> | ||
MEDIAN_0 to MEDIAN_9 | MEDIAN_0 to MEDIAN_9<br> | ||
Param6:Output intervel - In seconds (Not needed in request mode) | Param6:Output intervel - In seconds (Not needed in request mode) | ||
| SET GET | | SET GET | ||
Revision as of 11:49, 7 August 2025
| Configuration Commands | Example | Description | Commnad Type (SET/GET) |
|---|---|---|---|
| URL | SET CUURL:TCP:<IP>:<PORT> SET CUURL:url (HTTP) Example: SET CUURL:http://livedata.transight.net:6000/data SET CUURL:TCP:15.235.9.66:50334 GET CUURL Response: URL:http://livedata.customert.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 send from device to the pointed IP address. |
SET GET |
| UR(in seconds). | SET CUUR:<duration> GET CUUR Example: SET CUUR:30 GET CUUR Response: UR: 30 |
Update rate in motion, duration is in seconds Packets will be generating in this frequency. |
SET, GET |
| URT(halt,in minute). | SET CUURT:<duration in mins> GET CUURT Example: SET CUURT:30 GET CUURT Response: CUURT: 30 |
Update rate in halt, duration is in minutes | SET, GET |
| URS(sleep, in minute). | SET CUURS:<duration> GET CUURS Example: SET CUURS:30 GET CUURS Response: CUURS: 30 |
Update rate in sleep, duration is in minutes | SET, GET |
| M1 | SET CUM1:<+91xxxxxxxxxx> GET CUM1 Response: M1: +919656691846 |
This enables the customer to configure the device and setup alert recipients. | SET, GET |
| M2 | SET CUM2:<+91xxxxxxxxxx> GET CUM2 Response: M2: +919656691846 |
Secondary mobile number for alerts | SET, GET |
| M3 | SET CUM3:<+91xxxxxxxxxx> GET CUM3 Response: M3: +919656691846 |
Third mobile number for alerts | SET, GET |
| APN | SET CUAPN:M2MISAFEcom SET CUAPN:airtelgprs.com GET CUAPN Response: APN:M2MISAFE |
Access Point Name (APN) for internet connectivity | SET, GET |
| FRNO | SET CUFRNO:<number> GET CUFRNO Example: SET CUFRNO:12 GET CUFRNO Response: FRNO:12 |
This command is used to get or set the current frame number. The frame numbers are generated in sequential order. | SET GET |
| FSMODE | SET CUFSMODE:<0/1> GET CUFSMODE Example: SET CUFSMODE:1 GET CUFSMODE Response: FSMODE:1 |
This command would set the file system mode: 0-FIFO 1-LIFO |
SET GET |
| IOCFG | SET CUIOCFG:IO1-AN-GEN*IO2-DI-GEN*IO3-DO-IMB* GET CUIOCFG |
This command is used to configure the pin as Digital Input, or Digital Output, or Analog. AN - Analog DO - Digital Output DI - Digital Input |
SET GET |
| ENIP | SET CUENIP:0.1,1.0 GET CUENIP Response: ENIP:0.1,1.0 |
SET TSENIP:<IP>.<state>,<IP>.<state>
IP:Transight-0, Customer-1
State: |
SET GET |
| DO | SET CUDO:1.0,2.0 GET CUDO Response: DO 1:OFF/ON - DO 2:OFF/ON |
Pin Number: 1 or 2 Pin State: 0-off, 1-On Each pin configuration separated by"","" |
SET GET |
| VID | SET CUVID:TRANSI GET CUVID Response: VID: TRANSI |
Set/Get vendor ID | SET GET |
| DI | GET CUDI Response: DI:000 |
Get digital input status | GET |
| AI | GET CUAI Response: AI:0-0-0 |
Get analog input voltage values | GET |
| GF | Polygon: SET CUGF:<Status><geofence ID>-<alert type>-<shape>#<latitude-longitude>#....& Circle: |
Status 0 - Disable 1 - Enable Shape |
SET GET |
| FUELTYPE | SET CUFUELTYPE:<Fuel sensor name>,<No of sensors> Example: |
Enables and Selects fuel sensor Type: Param1: |
SET GET |
| FUELDATACFG | SET CUFUELDATACFG:<Fuel sensor configurations> SET CUFUELDATACFG:ESCORT,1,00,PASSIVE1023,SMART,SMART_0 |
Configures fuel sensors: Number of Parameters may vary according to the sensor type. |
SET GET |
| SET CUFUELDATACFG:TECHNO,1,PUSH_HEX,PERCENT,19200,01,15,01,PRE,POST,160,0,100,409 <TECHNO>,<Sensor index>,<Mode>,<Unit>,<Baurdrate>,<Network address>,<Output interval>,01,<Ascii pre extenstion>,<Ascii post extension>,<length of sensor>,<Min level>,<max level>,<Sensor firmware version> | TECHNOTON485 /232: Input parameters: Param1: TECHNO Param2: Sensor index - 0 to 3 Param3: Mode - REQUEST, PUSH_HEX, PUSH_ASCII,PUSH_ASCII_EXT, Param4:UnitMM,PERCENT,LITER,CUSTOM Param5: Baurdrate :19200 param6: Network address: 00 to FF Param7: Output interval:15 Param8: Autopushenable: 01 Param9&10: ASCII extensions for ASCII mode Param11: length of sensor, Param12&13: Min and Max level of sensor: 0 &100 param 14: Sensor firmware version number -409 |
||
| SET CUFUELDATACFG:STRELLA,1,REQUEST,01,15 <STRELLA>,<Sensor index>,<Mode>,<Network address>,<Output interval> | |||
| FUELMODE | SET CUFUELMODE:1,1,5 GET CUFUELMODE:1 Response: ESCORT485, Mode: PERIODIC |
fuel sensor Mode: Param1:1-Request,0-Periodic Param2:Sensor Index Param3:Request Intervel in seconds |
SET GET |
| FUELCALIBRATE | SET CUFUELCALIBRATE:FULL,1 | Calibrate fuel level as FULL or EMPTY Specify sensor index |
SET |
| DEVI | GET CUDEVI Response: JSON-formatted device info |
Get complete hardware and firmware details from the device | GET |
| DEVCFG | GET CUDEVCFG Response: JSON-formatted config |
Get entire configuration from device in JSON format | GET |
| IMOB | SET CUIMOB:ON GET CUIMOB Response: IMOB:OFF |
Enable/Disable Immobilizer feature | SET GET |
| SL | SET CUSL:70 GET CUSL Response: SPEEDLIMIT: 70 |
Configure speed limit for alerts | SET GET |
| ACCELENABLE | SET CUACCELENABLE:1 GET CUACCELENABLE Response: ACCELERO_ENABLE_STATUS: 1 |
Enable/Disable accelerometer | SET GET |
| ORIENTATION | SET CUORIENTATION:1 GET CUORIENTATION Response: 1 |
Device mounting orientation: Orientation Number Explanation: 1 - Horizontal, power cable towards the driver, Antenna sky facing |
SET GET |
| TA | SET CUTA:40 GET CUTA Response: TILT ANGLE THRESHOLD: 40 |
Tilt alert threshold in degrees | SET GET |
| VN | SET CUVN:TN51AN5503 GET CUVN Response: VEHICLE_REG_NUMBER: TN51AN5503 |
Set/Get vehicle number | SET GET |
| CH | SET CUCH | Clear command history/logs | SET |
| MR | SET CUMR:<Number> | Microcontroller Restart: 1. Network Modem Immediate Restart |
SET |
| FWINFO | GET CUFWINFO Response: FWINFO: TSD4G_0_3.0.2 FWINFO: TSDRB_0_3.0.1 FWINFO: TSD4R_0_1.0.3 |
Get firmware version info for: - Network Modem - Bootloader - Supervisory Controller |
GET |
| IMEI | GET CUIMEI Response: IMEI: 869137069984441 |
Get device IMEI number | GET |
| SPI | GET CUSPI Response: REMAINING PACKETS=1566 |
Shows number of unsent packets stored in memory | GET |
| LOC | GET CULOC Response: LOC:Fix:0,Lat:0.000000,Lon:0.0000000,... |
Get latest GPS location from device | GET |
| SUPT | GET CUSUPT Response: DEVICE_UPTIME: X-days X-hrs X-mins X-sec |
Get device uptime since last restart | GET |
| ODOMODE | SET CUODOMODE:1 GET CUODOMODE Response: CUODOMODE:1 |
Set odometer calculation mode: 0 - Differential 1 - Accumulated |
SET GET |
| ODO | GET CUODO Response: CUODO:111 METERS |
Get current odometer reading | GET |
| NWI | GET CUNWI Response: CUNWI:VI-404-19-1-1-17-0-0 |
Get network information: MCC, MNC, Signal, etc. |
GET |
| COMSTAT | GET CUCOMSTAT Response: COMSTAT:4-0 |
Get communication success/failure counts | GET |
| ENOW | SET CUENOW:ON/OFF GET CUENOW Response: ENOW:OFF |
Enable/Disable 1-wire sensor port | SET GET |
| OWCFG | SET CUOWCFG:DS18B20 GET CUOWCFG Response: DS18B20 |
Configure the 1-wire sensor model | SET GET |
| OWNOS | SET CUOWNOS:2 GET CUOWNOS Response: TEMPERATURE SENSOR NOS: 2 |
Number of 1-wire sensors connected | SET GET |