.. _headlabel-refx-record-50: 50H (Fixed Report Information) ============================== This message is used to report the location information of the terminal to the backend server. **Note**: In particular, when the following happens, this message will stop being sent and the terminal will use another message to report the location to the backend server: - When the vehicle is towed, the terminal sends :ref:`Record 13H ` to the backend server. The frame format of a report that only carries **50H** record is as follows: .. code-block:: none For example (Total 56 bytes): 2B 00 00 38 00 01 23 45 67 89 01 23 45 00 00 00 1B 00 00 21 64 F9 AA F6 00 00 50 00 52 16 09 F9 20 A8 E1 FF 2D C0 96 5F 17 9D A0 01 7D 0A 00 25 00 01 B3 0C 01 23 54 24 .. tabularcolumns:: |p{3.8em}|p{3.2em}|p{5.5em}|p{5.8em}|p{15em}|p{4.8em}| .. table:: :width: 100% :widths: auto +----------+--------------------+------------------+---------------+------------------------------------------------+---------------+ | Parts | Fields | Length (Byte) | Range/Format | Default | +==========+====================+==================+===============+================================================+===============+ | Head | | 18 or 20 | | | +----------+--------------------+------------------+---------------+------------------------------------------------+---------------+ | Reserved | | 1 or 1+N | | | +----------+--------------------+------------------+---------------+------------------------------------------------+---------------+ | Records | Record Length | 1 or 2 | 00H-7FH or 8080H-FFFFH | | + +--------------------+------------------+---------------+------------------------------------------------+---------------+ | | Generated Time | 4 | | | + +--------------------+------------------+---------------+------------------------------------------------+---------------+ | | Record Count Number | 2 | 0000H-FFFFH | | + +--------------------+------------------+---------------+------------------------------------------------+---------------+ | | `Record ID` | 1 | **50H** | **50H** | + +--------------------+------------------+---------------+------------------------------------------------+---------------+ | | `Event Code` | 1 | | | + +--------------------+------------------+---------------+------------------------------------------------+---------------+ | | `Data of Record` | Data ID | 1 or 2 | 00H-7FH or 8080H-FFFFH | | + + +------------------+---------------+------------------------------------------------+---------------+ | | | Data Length | 1 or 2 | 00H-7FH or 8080H-FFFFH | | + + +------------------+---------------+------------------------------------------------+---------------+ | | | Data Content | N | | | + + +------------------+---------------+------------------------------------------------+---------------+ | | | ... | | | | + +--------------------+------------------+---------------+------------------------------------------------+---------------+ | | ... | | | | +----------+--------------------+------------------+---------------+------------------------------------------------+---------------+ | Tail | | 4 | | | +----------+--------------------+------------------+---------------+------------------------------------------------+---------------+ The definitions of parts 'Head', 'Reserved', and 'Tail' are :ref:`here `. - `Event Code` - **00H** - Report at a fixed time. - **01H** - Report at a fixed mileage. - **02H** - Report at fixed time and fixed mileage. - **03H** - Report at a corner. - `Data of Record` It consists of one or more :ref:`Data ID units `. By default, this record contains only the data IDs listed below, which can be changed by the `AT@QRC` command described below. - :ref:`Data 82 ` - Full Location. .. _refx-record-50-configuration: Configuration ------------- The parameters related to the generation and transmission of **50H** record are controlled by the following :ref:`QRC ` command: .. code-block:: none Example: AT@QRC=gv500cna,50,0,1,,,,,,,,,012F$ +ACK:QRC,123456789012345,8203,3,0,50,012F,20210407101530,1234$ AT@QRC?gv500cna,50,0C37$ +QRY:QRC,123456789012345,8203,3,0,3,1,50,0,1,1,82,10,,600,,0,0,,0,0C37,20210407101530,1240$ +QRY:QRC,123456789012345,8203,3,0,3,2,50,1,1,1,82,10,,600,,0,0,,0,0C37,20210407101530,1241$ +QRY:QRC,123456789012345,8203,3,0,3,3,50,63,1,1,82,10,,600,,0,0,,0,0C37,20210407101530,1242$ .. tabularcolumns:: |p{2.2em}|p{14.2em}|p{5.8em}|p{12em}|p{4.8em}| .. table:: :width: 100% :widths: auto +-------+-------------------------+---------------+---------------------------------------+-------------------------+ | Parts | Fields | Length (Byte) | Range/Format | Default | +=======+=========================+===============+=======================================+=========================+ | Head | Header | 3 | AT@ | AT@ | + +-------------------------+---------------+---------------------------------------+-------------------------+ | | Command Word | 3 | QRC | QRC | + +-------------------------+---------------+---------------------------------------+-------------------------+ | | Leading Symbol | 1 | = | = | + +-------------------------+---------------+---------------------------------------+-------------------------+ | | Password | 8-16 | | gv500cna | +-------+-------------------------+---------------+---------------------------------------+-------------------------+ | Body | `Record ID` | 2 | 50 | 50 | + +-------------------------+---------------+---------------------------------------+-------------------------+ | | `Profile ID` | | All supported profiles | | + +-------------------------+---------------+---------------------------------------+-------------------------+ | | `Mode` | <=2 |0, 1, 3 | 1 | + +-------------------------+---------------+---------------------------------------+-------------------------+ | | `Action` | 1 | 0-2 | | + +-------------------------+---------------+---------------------------------------+-------------------------+ | | `Data IDs` | N | ID1|ID2|ID3… | | + +-------------------------+---------------+---------------------------------------+-------------------------+ | | `Record Count` | <=2 | 2-99 | 10 | + +-------------------------+---------------+---------------------------------------+-------------------------+ | | Reserved | 0 | | | + +-------------------------+---------------+---------------------------------------+-------------------------+ | | `Time Interval` | <=5 | 0 or 10-86400 (seconds) | 600 | + +-------------------------+---------------+---------------------------------------+-------------------------+ | | Reserved | 0 | | | + +-------------------------+---------------+---------------------------------------+-------------------------+ | | `Mileage Interval` | <=5 | 0 or 200-10000 (meters) | 0 | + +-------------------------+---------------+---------------------------------------+-------------------------+ | | `Corner Value` | <=3 | 0 or 10-180 (degrees) | 0 | + +-------------------------+---------------+---------------------------------------+-------------------------+ | | Reserved | 0 | | | + +-------------------------+---------------+---------------------------------------+-------------------------+ | | `Interval Optimization` | 1 | 0, 1 | 0 | +-------+-------------------------+---------------+---------------------------------------+-------------------------+ | Tail | Sequence Number | 4 | 0000-FFFF ('0'-'9', 'A'-'F') | | + +-------------------------+---------------+---------------------------------------+-------------------------+ | | Tail | 1 | $ | $ | +-------+-------------------------+---------------+---------------------------------------+-------------------------+ - `Record ID` Which record to configure. Always "50" here. - `Mode` - **0** - Disable. The terminal no longer generates and sends the 50H record. - **1** - Enable Report. The terminal generates and sends the 50H report. If the location information needs to be included, the terminal will turn on the power supply of the GNSS chip in advance to ensure that the location information is real-time. - **3** - Enable Batch Record. The terminal will generate records according to the parameters 'Time Interval', 'Mileage Interval' and 'Corner Value'. And when the number of records reaches the number indicated by the 'Record Count' field, the terminal will pack these records into a 50H report and send it to the backend server. - `Action` - **Empty** - No change the data IDs in the terminal. If this field is empty, the 'Data IDs' field will be ignored. - **0** - Append the data IDs carried in the 'Data IDs' field to the terminal. - **1** - Replace the data IDs in the terminal with the data IDs carried by the 'Data IDs' field. - **2** - Clear the data IDs carried in the 'Data IDs' field from the terminal. **Note**: In particular, it always will be 1 when reading this field. - `Data IDs` The data IDs contained in the 50H record. The characters '|' are used to connect each data ID. For example, "2|88" means Data 2 (Device Name) and Data 88 (SIM Card). - `Record Count` When the terminal generates the number of records indicated by this field, it sends them to the backend server in batches. This field is only valid for Mode 3. **Note**: When any of the following conditions are met, even if the number of generated record is insufficient, the terminal will still send them to the backend server: - When 'Mode' changes from non-zero (Enable) to zero (Disable). - When the terminal switches to Profile 63 (Emergency). - When the Profile 3 (Off Duty) is enabled and the terminal switches from duty hours to off duty hours. - `Time Interval` The terminal will periodically generate a 50H record according to this interval. And a value of **0** in this field means that no records will be generated at this interval. - `Mileage Interval` The terminal will generate a 50H record according to this mileage interval when the vehicle is driving. And a value of **0** in this field means that no records will be generated at this interval. - `Corner Value` If the absolute value of the difference of the azimuth between two positions is greater than or equal to the value of 'Corner Value', the terminal will generate a 50H record. And a value of **0** in this field means that no records will be generated at this corner value. - `Interval Optimization` Specify an optimization logic for generating records at intervals. - **0** - Logical OR. When the time interval accumulation is not less than the 'Time Interval' **OR** the mileage interval accumulation is not less than the 'Mileage Interval', a 50H record is generated, and then the time interval accumulation and mileage interval accumulation will be recalculated. - **1** - Logical AND. When the time interval accumulation is not less than the 'Time Interval' **AND** the mileage interval accumulation is not less than the 'Mileage Interval', a 50H record is generated, and then the time interval accumulation and mileage interval accumulation will be recalculated. **Note**: This parameter is only valid when both the 'Time Interval' and 'Mileage Interval' are not 0.