Commands of Discovery 4G: Difference between revisions
No edit summary |
No edit summary |
||
| Line 53: | Line 53: | ||
|- | |- | ||
| IOCFG | | IOCFG | ||
| Example:<br>SET CUIOCFG:IO1-DI-GEN*IO2-DO-GEN*IO3-AN-GEN* | | SET CUIOCFG:<IO Number>-<IO Mode>-<IO Function*>-<IO Number>-<IO Mode>-<IO Function*>-<IO Number><IO Mode>-<IO Function*><br>Example:<br>SET CUIOCFG:IO1-DI-GEN*IO2-DO-GEN*IO3-AN-GEN*<br>GET CUIOCFG<br>Response<br>CUIOCFG:<br>IO1-DI-GEN*IO2-DO-GEN*IO3-AN-GEN | ||
| 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 | | 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 | | SET CUENIP:<IP>.<state>,<IP>.<state><br>Example:<br>SET CUENIP:0.1,1.0<br>GET CUENIP<br>Response:<br>ENIP:0.1,1.0 | ||
| IP:Transight-0, Customer-1<br> | | IP:Transight-0, Customer-1<br> | ||
State:<br>1- Enabled<br>0- Disabled<br>ENIP:0.1,1.1 | State:<br>1- Enabled<br>0- Disabled<br>ENIP:0.1,1.1 | ||
| Line 87: | Line 86: | ||
| GF | | GF | ||
| Polygon:<br>SET CUGF:<Status><geofence ID>-<alert type>-<shape>#<latitude-longitude>#....&<br> | | 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> | Circle:<br>SET CUGF:<Status><geofence ID>-<alert type>-<shape>#<latitude-longitude (center point of circle)>#<radius in meter><br>Example for Polygon:<br> | ||
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&<br>Example for Circle:<br>SET CUGF:1-1313-30#10.055625576.3544891#1000GET CUGF<br>Response:<br>NO of geofences: 1<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- | |||
Response:<br> | |||
NO of geofences: 1<br> | |||
| Status<br>0 - Disable<br>1 - Enable<br> | | Status<br>0 - Disable<br>1 - Enable<br> | ||
Shape<br>0 - circle<br>1 - polygon<br> | Shape<br>0 - circle<br>1 - polygon<br> | ||
| Line 160: | Line 153: | ||
| SET CUFUELDATACFG:STRELLA,1,REQUEST,01,15 <STRELLA>,<Sensor index>,<Mode>,<Network address>,<Output interval> | | SET CUFUELDATACFG:STRELLA,1,REQUEST,01,15 <STRELLA>,<Sensor index>,<Mode>,<Network address>,<Output interval> | ||
| | | | ||
|- | |- | ||
| DEVI | | DEVI | ||
| GET CUDEVI<br>Response: | | GET CUDEVI<br>Response: device info packet | ||
| Get complete hardware and firmware details from the device | | Get complete hardware and firmware details from the device | ||
| GET | | GET | ||
|- | |- | ||
| DEVCFG | | DEVCFG | ||
| GET CUDEVCFG<br>Response: | | GET CUDEVCFG<br>Response: configuraton info packet | ||
| Get entire configuration from device | | Get entire configuration from device | ||
| GET | | GET | ||
|- | |- | ||
| Line 207: | Line 195: | ||
|- | |- | ||
| VN | | VN | ||
| SET CUVN:<Vehicle No><br>GET CUVN<br>Response:<br>VEHICLE_REG_NUMBER: | | SET CUVN:<Vehicle No><br>Example:<br>SET CUVN:<XXXXXXX><br>GET CUVN<br>Response:<br>VEHICLE_REG_NUMBER: XXXXXXX | ||
| Set/Get vehicle number | | Set/Get vehicle number | ||
| SET GET | | SET GET | ||
| Line 213: | Line 201: | ||
| CH | | CH | ||
| SET CUCH | | SET CUCH | ||
| | | Clearing history logs from device memory. | ||
| SET | | SET | ||
|- | |- | ||
| Line 252: | Line 240: | ||
|- | |- | ||
| ODOMODE | | ODOMODE | ||
| SET CUODOMODE:1<br>GET CUODOMODE<br>Response:<br>CUODOMODE:1 | | SET CUODOMODE:<1/2><br>GET CUODOMODE<br>Response:<br>CUODOMODE:1 | ||
| Set odometer calculation mode:<br>0 - Differential<br>1 - Accumulated | | Set odometer calculation mode:<br>0 - Differential<br>1 - Accumulated | ||
| SET GET | | SET GET | ||
| Line 299: | Line 287: | ||
|- | |- | ||
| OWCFG | | OWCFG | ||
| SET CUOWCFG:<Sensor name><br>Example:<br>SET CUOWCFG:DS18B20<br>GET CUOWCFG<br>Response:<br>DS18B20 | | SET CUOWCFG:<Sensor name><br>GET CUOWCFG<br>Example:<br>SET CUOWCFG:DS18B20<br>GET CUOWCFG<br>Response:<br>DS18B20 | ||
| Configure the 1-wire sensor models<br>1-BS18B20<br>2-AM2305 | | Configure the 1-wire sensor models<br>1-BS18B20<br>2-AM2305 | ||
| SET GET | | SET GET | ||
Revision as of 10:47, 16 August 2025
| Configuration Commands | Example and Response | 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 |
| APN | SET CUAPN:M2MISAFEcom(For VI) SET CUAPN:airtelgprs.com(For Airtel) 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:<IO Number>-<IO Mode>-<IO Function*>-<IO Number>-<IO Mode>-<IO Function*>-<IO Number><IO Mode>-<IO Function*> Example: SET CUIOCFG:IO1-DI-GEN*IO2-DO-GEN*IO3-AN-GEN* GET CUIOCFG Response CUIOCFG: IO1-DI-GEN*IO2-DO-GEN*IO3-AN-GEN |
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:<IP>.<state>,<IP>.<state> Example: SET CUENIP:0.1,1.0 GET CUENIP Response: ENIP:0.1,1.0 |
IP:Transight-0, Customer-1 State: |
SET GET |
| DO | SET CUDO:1.n,2.n (n=0:off,1:on) GET CUDO |
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> | |||
| DEVI | GET CUDEVI Response: device info packet |
Get complete hardware and firmware details from the device | GET |
| DEVCFG | GET CUDEVCFG Response: configuraton info packet |
Get entire configuration from device | GET |
| IMOB | SET CUIMOB:<ON/OFF> GET CUIMOB Example: SET CUIMOB:OFF GETCUIMOB Response: IMOB:OFF |
Enable/Disable Immobilizer feature | SET GET |
| SL | SET CUSL:<Limit> GET CUSL Example: SET CUSL:70 GET CUSL Response: SPEEDLIMIT: 70 |
Configure speed limit for alerts | SET GET |
| ACCELENABLE | SET CUACCELENABLE:<0/1> Example: SET CUACCELENABLE:1 GET CUACCELENABLE Response: ACCELERO_ENABLE_STATUS: 1 |
1 - Enable 0 - Disable |
SET GET |
| ORIENTATION | SET CUORIENTATION:<orientation number> Example: SET CUORIENTATION: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:<Vehicle No> Example: SET CUVN:<XXXXXXX> GET CUVN Response: VEHICLE_REG_NUMBER: XXXXXXX |
Set/Get vehicle number | SET GET |
| CH | SET CUCH | Clearing history logs from device memory. | 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 |
Command to get the time from which the device was switched on. Response format: DEVICE_UPTIME:<days>-<hours>-<minutes>-<seconds> |
GET |
| ODOMODE | SET CUODOMODE:<1/2> GET CUODOMODE Response: CUODOMODE:1 |
Set odometer calculation mode: 0 - Differential 1 - Accumulated |
SET GET |
| ODO | SET ODO:<Number> Example: SET CUODO:111 GET CUODO Response: CUODO:111 METERS |
Get/Set current odometer readings | SET 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 network registered status : 1 – Registration OK 2 - Searching 3 - Deny 5 – Registration OK Roaming 0 – Not registered GPRS network registered status 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 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:<Sensor name> GET CUOWCFG Example: SET CUOWCFG:DS18B20 GET CUOWCFG Response: DS18B20 |
Configure the 1-wire sensor models 1-BS18B20 2-AM2305 |
SET GET |
| OWNOS | SET CUOWNOS:<No's> Example: SET CUOWNOS:2 GET CUOWNOS Response: TEMPERATURE SENSOR NOS: 2 |
Number of 1-wire sensors connected | SET GET |