RU2722587C9 - Method of generating and breaking up a message text in information binary application layer packets - Google Patents

Method of generating and breaking up a message text in information binary application layer packets Download PDF

Info

Publication number
RU2722587C9
RU2722587C9 RU2019128098A RU2019128098A RU2722587C9 RU 2722587 C9 RU2722587 C9 RU 2722587C9 RU 2019128098 A RU2019128098 A RU 2019128098A RU 2019128098 A RU2019128098 A RU 2019128098A RU 2722587 C9 RU2722587 C9 RU 2722587C9
Authority
RU
Russia
Prior art keywords
parameter
message text
parameters
message
breaking
Prior art date
Application number
RU2019128098A
Other languages
Russian (ru)
Other versions
RU2722587C1 (en
Inventor
Игорь Евгеньевич Монвиж-Монтвид
Original Assignee
Акционерное общество "Калужский научно-исследовательский институт телемеханических устройств"
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Акционерное общество "Калужский научно-исследовательский институт телемеханических устройств" filed Critical Акционерное общество "Калужский научно-исследовательский институт телемеханических устройств"
Priority to RU2019128098A priority Critical patent/RU2722587C9/en
Application granted granted Critical
Publication of RU2722587C1 publication Critical patent/RU2722587C1/en
Publication of RU2722587C9 publication Critical patent/RU2722587C9/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3344Query execution using natural language analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Communication Control (AREA)

Abstract

FIELD: data processing.SUBSTANCE: method of generating and breaking up a message text based on use of a range of changes of transmitted parameters and their allowable accuracy, which consists in the fact that the length of the field for each parameter is determined by a natural number which characterizes the value of variation of said parameter in conditional units, which is the permissible accuracy of the parameter, fields for parameters in message text are placed in series, value of each parameter is transferred by its offset relative to minimum value in standard units, and formation and breaking up of message text is carried out by unified algorithms.EFFECT: achieved technical result of disclosed method of generating and breaking up message text is simplification and acceleration of development, generation and breaking up of extremely short texts of messages in binary protocols of application level by formation of optimal unified text structure of message based on data on range of changes and permissible accuracy of transmitted parameters using universal machine-oriented algorithms.1 cl

Description

Изобретение относится к области формирования информационных сообщений и может быть использовано для оптимального автоматизированного формирования и расформирования текста сообщения в информационных бинарных пакетах прикладного уровня на основе имеющейся информации о диапазоне изменений и допустимой точности передаваемых параметров.The invention relates to the field of information messages generation and can be used for optimal automated generation and decomposition of the message text in information binary packages of the application level based on the available information about the range of changes and the permissible accuracy of the transmitted parameters.

При передаче информационных сообщений, вне зависимости от выбранного способа кодирования и передачи информации, перед разработчиками стоит задача разработки протоколов прикладного уровня. На прикладном уровне в пакете любого протокола можно выделить «контейнерную» часть, задача которой довести пакет до нужного адресата и сообщить о типе текста сообщения, и собственно текста сообщения, передача которого и является целью взаимодействия между передающей и принимающей стороной.When transmitting information messages, regardless of the chosen method of encoding and transmitting information, developers are faced with the task of developing application-level protocols. At the application level, in a packet of any protocol, a "container" part can be distinguished, the task of which is to bring the packet to the desired addressee and inform about the type of the message text, and the message text itself, the transmission of which is the goal of interaction between the sending and receiving sides.

Текст сообщения представляет собой набор байтов, где в соответствии с типом сообщения в двоичном виде размещена информация о заранее обусловленных передаваемых параметрах самого различного назначения, например, идентификаторы и адреса передающей стороны, время формирования сообщения, показания скорости объекта, его местоположения, состояния датчиков. В бинарном протоколе под каждый из этих параметров должно быть выделено необходимое число бит, которые и образуют в совокупности структуру текста сообщения. Одной из главных задач разработчика является определение структур и выделение полей под передаваемые параметры в соответствии с типами передаваемых сообщений. В некоторых случаях число выделяемых бит является очевидным. Если, к примеру, необходимо передать одну из 14 возможных команд, то достаточно выделить 4 бита, на которых любая команда в форме натурального числа может быть размещена в двоичном виде, причем останется еще резерв на расширение до 16 команд. Но параметры в исходном состоянии могут быть и дробными, и отрицательными, а в общем случае они выражаются вещественным числом с определенным диапазоном изменения, при этом на приемной стороне параметр должен быть восстановлен с необходимой точностью. Бинарные протоколы, как правило, используются там, где скорость передачи информации критична, что обычно характерно для передач по радиоканалам с относительно низкой надежностью. В таких случаях, с точки зрения передачи информации, следует стремиться к формированию максимально короткого текста сообщения, повышая тем самым скорость передачи информации и увеличивая помехоустойчивость и надежность передачи.The text of the message is a set of bytes, where, in accordance with the type of the message in binary form, information about predetermined transmitted parameters of various purposes is placed, for example, identifiers and addresses of the transmitting side, the time of message formation, indications of the object's speed, its location, and the state of sensors. In a binary protocol, for each of these parameters, the required number of bits must be allocated, which together form the structure of the message text. One of the main tasks of the developer is to define structures and allocate fields for transmitted parameters in accordance with the types of transmitted messages. In some cases, the number of bits to allocate is obvious. If, for example, it is necessary to transmit one of 14 possible commands, then it is enough to allocate 4 bits, on which any command in the form of a natural number can be placed in binary form, and there will still be a reserve for expansion to 16 commands. But the parameters in the initial state can be both fractional and negative, and in the general case they are expressed as a real number with a certain range of variation, while on the receiving side the parameter must be restored with the required accuracy. Binary protocols, as a rule, are used where the information transfer rate is critical, which is usually typical for transmissions over radio channels with relatively low reliability. In such cases, from the point of view of information transmission, one should strive to form the shortest possible text of the message, thereby increasing the information transmission rate and increasing the noise immunity and transmission reliability.

Для экономии места в бинарных протоколах довольно часто передаваемый параметр представляют в форме натурального числа с младшим разрядом (условной единицей), равным допустимой погрешности. Максимальное значение этого числа, а значит, и число выделяемых под него бит определяется диапазоном изменения параметра в условных единицах. Объединенные в набор байтов поля передаваемых параметров и формируют структуру текста сообщения. Процедуры формирования и расформирования текста сообщения достаточно трудоемки, поэтому разработчики и программисты стараются разместить поля в пакете наиболее удобным для себя способом с минимальным дроблением байтов, что порой приводит к неоправданному расширению текста сообщения в ущерб надежности и скорости передачи информации. При этом любое дополнение или изменение протокола приводит к существенным программным доработкам. Между тем, если взять за основу сплошное расположение полей в пакете, а упаковку параметров проводить по единым правилам, процессы формирования и расформирования текстов сообщений можно полностью автоматизировать. В этом случае при изменениях в протоколе основные процедуры останутся неизменными, а от разработчиков даже не потребуется знание в явном виде структуры текста сообщения.To save space in binary protocols, the transmitted parameter is often presented in the form of a natural number with the least significant bit (conventional unit) equal to the permissible error. The maximum value of this number, and hence the number of bits allocated for it, is determined by the range of the parameter change in conventional units. The fields of the transmitted parameters combined into a set of bytes form the structure of the message text. The procedures for the formation and decomposition of the message text are quite laborious, so developers and programmers try to place the fields in the package in the most convenient way for themselves with minimal splitting of bytes, which sometimes leads to unjustified expansion of the message text to the detriment of reliability and information transfer speed. Moreover, any addition or change to the protocol leads to significant software improvements. Meanwhile, if we take as a basis the continuous arrangement of fields in the package, and the parameters are packed according to uniform rules, the processes of forming and decomposing message texts can be fully automated. In this case, with changes in the protocol, the basic procedures will remain unchanged, and the developers will not even need to know explicitly the structure of the message text.

Из известных способов формирования текста сообщения наиболее близким (прототипом) является способ формирования навигационных сообщений, транслируемых спутниками системы ГЛОНАСС (Глобальная спутниковая система ГЛОНАСС/Под ред. В.Н. Харисова, А.И. Перова, В.А. Болдина - М.:ИПРЖР, 1998.). Можно заметить, что в строках каждого навигационного кадра (Структура навигационного кадра, стр. 147, 148) параметры передаются как натуральные числа в условных единицах, равных величине младшего разряда (допустимой точности), длина полей большей части параметров определяется минимальным числом бит, позволяющим разместить диапазон изменения параметра в условных единицах, а сами поля в большинстве случаев располагают без пробелов. Но эти правила формирования сообщений не являются обязательными. Например, в выбранном прототипе число разрядов под спутниковые ускорения избыточно, а в строках навигационного кадра имеются пробелы. Отсутствие единых, унифицированных правил при формировании сообщений не позволяет добиться автоматизации процедур их формирования и расформирования.Of the known methods of forming the text of the message, the closest (prototype) is the method of forming navigation messages broadcast by satellites of the GLONASS system (Global satellite system GLONASS / Ed. By V.N. Kharisov, A.I. Perov, V.A. Boldin - M. : IPRZhR, 1998.). It can be noted that in the lines of each navigation frame (Navigation frame structure, pp. 147, 148), the parameters are transmitted as natural numbers in conventional units equal to the least significant bit (acceptable precision), the length of the fields of most of the parameters is determined by the minimum number of bits that allows the range of the parameter change in conventional units, and the fields themselves, in most cases, have no spaces. But these message rules are optional. For example, in the selected prototype the number of digits for satellite accelerations is excessive, and there are gaps in the lines of the navigation frame. The absence of uniform, unified rules for the formation of messages does not allow achieving automation of the procedures for their formation and disbandment.

Целью изобретения является упрощение и ускорение разработки, формирования и расформирования предельно коротких текстов сообщений бинарных протоколов прикладного уровня путем формирования оптимальной унифицированной структуры текста сообщения на основе данных по диапазону изменений и допустимой точности передаваемых параметров с использованием универсальных машинно-ориентированных алгоритмов.The aim of the invention is to simplify and accelerate the development, formation and decomposition of extremely short message texts of binary protocols of the application level by forming the optimal unified structure of the message text based on the data on the range of changes and the permissible accuracy of the transmitted parameters using universal machine-oriented algorithms.

Для достижения цели предложен универсальный, машинно-ориентированный способ формирования и расформирования текста сообщения, основанный на использовании диапазона изменений передаваемых параметров и их допустимой точности, заключающийся в том, что длину поля под каждый параметр определяют натуральным числом, характеризующим величину изменения этого параметра в условных единицах, представляющих собой допустимую точность параметра, поля под параметры в тексте сообщения располагают последовательно, значение каждого параметра передается его смещением по отношению к минимальному значению в условных единицах, а формирование и расформирование любого текста сообщения осуществляют по унифицированным алгоритмам.To achieve the goal, a universal, machine-oriented method of forming and decomposing the message text is proposed, based on the use of the range of changes in the transmitted parameters and their permissible accuracy, which consists in the fact that the length of the field for each parameter is determined by a natural number characterizing the magnitude of the change in this parameter in arbitrary units , representing the permissible accuracy of the parameter, the fields for the parameters in the message text are arranged sequentially, the value of each parameter is transmitted by its offset with respect to the minimum value in arbitrary units, and the formation and disbandment of any message text is carried out according to unified algorithms.

Для реализации предлагаемого способа необходимо на основе имеющейся информации о числе передаваемых параметров (k), границах изменений (Li Pi) каждого i-го параметра a i (a i, ∈ [Li, Pi]) и его допустимой точности di автоматизировать процессы:To implement the proposed method, it is necessary, based on the available information on the number of transmitted parameters (k), the boundaries of changes (L i P i ) of each i-th parameter a i ( a i , ∈ [L i , P i ]) and its permissible accuracy d i automate processes:

- формирования передающей стороной текста сообщения с информацией о текущих значениях параметров,- formation by the transmitting side of the text of the message with information about the current values of the parameters,

- расформирования приемной стороной теста сообщения с восстановлением текущих параметров с необходимой точностью в привычном виде.- disbanding by the receiving side of the test message with the restoration of the current parameters with the required accuracy in the usual form.

Перед описанием алгоритмов необходимо найти несколько предварительных соотношений.Before describing the algorithms, it is necessary to find some preliminary relationships.

Так как для каждого параметра a i известна область его изменения: a i ∈ [Li, Pi], то приняв за условную единицу (цену младшего разряда) задаваемую точность di, можно найти подлежащее передачи натуральное число ni, выражающее смещение параметра в условных единицах относительно левой границы (задаваемая точность и границы задаем в тех же единицах, что и параметр). С учетом округления до целого числа (round), искомое натуральное число определится по формуле:Since for each parameter a i the range of its variation is known: a i ∈ [L i , P i ], then taking the specified accuracy d i as a conventional unit (the price of the least significant digit), we can find the natural number n i to be transmitted, expressing the parameter shift in conventional units relative to the left border (the specified precision and boundaries are set in the same units as the parameter). Taking into account rounding to an integer (round), the required natural number is determined by the formula:

Figure 00000001
Figure 00000001

Максимальное значение число и, принимает при параметре, равном верхней границе (a i=Pi). Число бит

Figure 00000002
необходимое для его размещения, можно найти, решив показательное уравнение 2х-1=(Pi-Li)/di и округлив результат до целого значения (ceil) в большую сторону:The maximum value of the number and takes on the parameter equal to the upper limit ( a i = P i ). Number of bits
Figure 00000002
necessary for its placement, can be found by solving the exponential equation 2 x -1 = (P i -L i ) / d i and rounding the result to an integer value (ceil) upwards:

Figure 00000003
Figure 00000003

Figure 00000004
Figure 00000004

Общее расчетное количество байт N, необходимое для формирования текста сообщения с числом параметров к, при сплошном последовательном заполнении битовых полей находим по формуле:The total estimated number of bytes N required to form the message text with the number of parameters k, with continuous sequential filling of the bit fields, is found by the formula:

Figure 00000005
Figure 00000005

Дадим теперь краткое описание легко формализуемых алгоритмов по формированию и расформированию текста сообщения.Let us now give a brief description of easily formalized algorithms for the formation and decoding of the message text.

Формирование передающей стороной текста сообщения (массива {bj}N) осуществляют последовательной обработкой каждого i-го из общего числа k параметров {a i}k в следующем порядке:Formation of the message text (array {b j } N ) by the transmitting side is carried out by sequential processing of each i-th parameter of the total number of k parameters { a i } k in the following order:

1. По формуле (3) определяют отведенное под текущий i-й параметр число байт

Figure 00000006
1. According to the formula (3), the number of bytes allocated for the current i-th parameter is determined
Figure 00000006

2. По формуле (1) определяют подлежащее передаче натуральное число ni.2. According to the formula (1), the natural number n i to be transferred is determined.

3. Для первого параметра (i=1) номер первого из задействованных байтов и начало расположения параметра в этом байте (смещение) принимают равными нулю, для всех остальных параметров (i>1) номер первого из задействованных байтов и начало расположения параметра в нем определяют с учетом предыдущего цикла (п.4 для (i-1)-го параметра).3. For the first parameter (i = 1), the number of the first of the involved bytes and the beginning of the location of the parameter in this byte (offset) are taken equal to zero, for all other parameters (i> 1) the number of the first of the involved bytes and the beginning of the location of the parameter in it are determined taking into account the previous cycle (item 4 for the (i-1) -th parameter).

4. Для очередного параметра определяют границы его расположения: номера байтов, где он располагается, и число используемых бит в каждом задействованном байте.4. For the next parameter, the boundaries of its location are determined: the number of bytes where it is located, and the number of bits used in each involved byte.

5. По каждому из задействованных байтов:5. For each of the involved bytes:

- определяют под текущий параметр его маску (байт, в котором всем задействованным битам присваивают значение «1»),- define a mask for the current parameter (a byte in which all involved bits are assigned the value "1"),

- с учетом значения последнего задействованного байта предыдущего цикла (для i>1) находят значения текущих задействованных байтов bj, используя побитовый сдвиг ni и битовую логическую операцию «и» с соответствующей маской.- taking into account the value of the last involved byte of the previous cycle (for i> 1), the values of the current involved bytes b j are found using the bit shift n i and the bit logical operation "and" with the corresponding mask.

6. Если параметр не последний (i<k), переходят к п. 1.6. If the parameter is not the last (i <k), go to step 1.

7. Если параметр последний (i=k), считают процесс формирования массива текста сообщения {bj}N законченным.7. If the last parameter (i = k), consider the process of forming the message text array {b j } N finished.

Сформированный текст сообщения присоединяют к контейнерной части сообщения, кодируют и транслируют нужному адресату или нескольким адресатам. На приемной стороне декодируют сообщение, определяют по типу пакета число передаваемых параметров (k), границы их изменений (Li Pi) и допустимую точность di и приступают к расформирования массива {bj}N. Целью расформирования является восстановление исходных параметров

Figure 00000007
с заданной точностью, для чего должно выполняться условие:The formed message text is attached to the container part of the message, encoded and broadcast to the desired addressee or several addressees. On the receiving side, the message is decoded, the number of transmitted parameters (k), the boundaries of their changes (L i P i ) and the permissible accuracy d i are determined by the packet type, and the array {b j } N is decomposed. The purpose of the disbandment is to restore the original parameters
Figure 00000007
with a given accuracy, for which the condition must be met:

Figure 00000008
Figure 00000008

Расформирование принимающей стороной текста сообщения {bj}N осуществляют последовательной обработкой атрибутов каждого i-го из общего числа k параметров в следующем порядке (при получении структуры используют те же соотношения, что и при процессе формирования):The disbanding of the message text {b j } N by the receiving party is carried out by sequential processing of the attributes of each i-th of the total number of k parameters in the following order (when obtaining the structure, the same relations are used as during the formation process):

1. По формуле (3) определяют отведенное под текущий i-й параметр число байт

Figure 00000009
1. According to the formula (3), the number of bytes allocated for the current i-th parameter is determined
Figure 00000009

2. Для первого параметра (i=1) номер первого из задействованных байтов и начало расположения параметра в этом байте принимают равными нулю, для всех остальных параметров (i>1) номер первого из задействованных байтов и начало расположения параметра в нем определяют с учетом предыдущего цикла (п.3 для (i-1)-zo параметра).2. For the first parameter (i = 1) the number of the first of the involved bytes and the beginning of the location of the parameter in this byte are taken equal to zero, for all other parameters (i> 1) the number of the first of the involved bytes and the beginning of the location of the parameter in it are determined taking into account the previous cycle (item 3 for the (i-1) -zo parameter).

3. Для очередного параметра определяют границы его расположения: номера байтов, где он располагается, и число используемых бит в последнем задействованном байте.3. For the next parameter, the boundaries of its location are determined: the number of bytes where it is located and the number of bits used in the last used byte.

4. По каждому из задействованных байтов под текущий параметр:4. For each of the involved bytes for the current parameter:

- определяют его маску,- define his mask,

- определяют компонент натурального числа и„ используя битовую логическую операцию «и» с соответствующей маской и побитный сдвиг,- determine the component of a natural number and „using the bit logical operation" and "with the corresponding mask and bitwise shift,

- суммируя очередной компонент, последовательно формируют натуральное число, получая после обработки последнего из задействованных байтов искомое значение ni.- summing up the next component, sequentially form a natural number, receiving after processing the last of the involved bytes the desired value n i .

5. Преобразованиями, обратными формуле (1), восстанавливают с заданной точностью исходный параметр:5. Transformations inverse to formula (1) restore the original parameter with a given accuracy:

Figure 00000010
Figure 00000010

6. Если параметр не последний (i<k), переходят к п. 1.6. If the parameter is not the last (i <k), go to step 1.

7. Если параметр последний (i=k), считают процесс расформирования массива текста сообщения и восстановления с заданной точностью параметров

Figure 00000011
законченным.7. If the parameter is the last (i = k), consider the process of decomposition of the message text array and restoration with a given parameter accuracy
Figure 00000011
finished.

Как следует из алгоритмов формирования и расформирования, структура текста сообщения полностью определяется исходной информацией по диапазону изменений и допустимой точностью передаваемых параметров, и знание ее в явном виде представляет интерес только как справочный материал. Следует так же отметить, что при разработке сложных систем номенклатура передаваемых сообщений может быть очень большой и расчетное число байт N (см. формулу (4)) может меняться в широких пределах. Для удобства кодирования и передачи по каналу связи реальную длину текста сообщения часто унифицируют либо для всех сообщений, либо для определенного класса близких по длине сообщений. В этом случае расчетное число байт N служит ориентиром для разбивки по классам и выбора оптимальных длин сообщений. Все неиспользуемые биты заполняются нулями, процедуры же формирования и расформирования текстов сообщения остаются неизменными.As follows from the algorithms of formation and decomposition, the structure of the message text is completely determined by the initial information on the range of changes and the permissible accuracy of the transmitted parameters, and knowing it explicitly is of interest only as a reference material. It should also be noted that when developing complex systems, the nomenclature of transmitted messages can be very large and the calculated number of bytes N (see formula (4)) can vary within wide limits. For the convenience of coding and transmission over a communication channel, the real length of the message text is often unified either for all messages or for a certain class of messages close in length. In this case, the calculated number of bytes N serves as a guideline for classifying and choosing the optimal message lengths. All unused bits are filled with zeros, while the procedures for forming and disbanding message texts remain unchanged.

Пример.Example.

Система мониторинга служебного транспорта состоит из диспетчерского пункта (ДП) и взаимодействующими с ним по радиоканалам УКВ транспортных средств (ТС). В штатном режиме ДП последовательно ведет опрос ТС и принимает от них навигационные сообщения. Очевидно, что для помехоустойчивости и уменьшения цикла опроса при составлении протокола следует стремиться к разработке максимально коротких сообщений.The service transport monitoring system consists of a control center (DP) and vehicles (TS) interacting with it via VHF radio channels. In the normal mode, the DP sequentially polls the vehicle and receives navigation messages from them. Obviously, for noise immunity and a decrease in the polling cycle, when drawing up a protocol, one should strive to develop the shortest messages possible.

Согласно техническому заданию система должна обслуживать до 500 ТС. Подконтрольная зона (часть Псковской области) ограничена координатами (в системе координат Гаусса-Крюгера):According to the terms of reference, the system must serve up to 500 vehicles. The controlled area (part of the Pskov region) is limited by coordinates (in the Gauss-Kruger coordinate system):

- по оси X: 6356 км - 6424 км- along the X axis: 6356 km - 6424 km

- по оси Y: 5564 км - 5604 км- along the Y axis: 5564 km - 5604 km

Возможная скорость движения ТС до 160 км/час.Possible vehicle speed up to 160 km / h.

В состав основного и наиболее нагруженного навигационного сообщения должны входить: адрес ТС, состояние ТС (до 16 значений), его плановые координаты с точностью 4 м, скорость с точностью 3 км/час, курс с точностью 5°.The main and most loaded navigation message should include: vehicle address, vehicle state (up to 16 values), its planned coordinates with an accuracy of 4 m, speed with an accuracy of 3 km / h, heading with an accuracy of 5 °.

Как передающая, так и приемная сторона располагают характеристиками параметров, соответствующими типу навигационного сообщения: Параметры (k=6):Both the transmitting and receiving sides have the characteristics of the parameters corresponding to the type of navigation message: Parameters (k = 6):

-адрес (a 1): d1=1, L1=0, P1=499;-address ( a 1 ): d 1 = 1, L 1 = 0, P 1 = 499;

- состояние (а 2): d2=1, L2=0, P2=15;- state ( a 2 ): d 2 = 1, L 2 = 0, P 2 = 15;

- координата Х(а 3(км)): d3=0.004, L3=6356, P3=6424;- coordinate X ( a 3 (km)): d 3 = 0.004, L 3 = 6356, P 3 = 6424;

- координата Y (а 4(км)): d4=0.004, L4=5564, P4=5604;- Y coordinate ( a 4 (km)): d 4 = 0.004, L 4 = 5564, P 4 = 5604;

- скорость (а 5(км/час)): d5=3, L5=0, P5=160;- speed ( a 5 (km / h)): d 5 = 3, L 5 = 0, P 5 = 160;

- курс (а 6(градус)): d6=5, L6=0, P6=355;- course ( a 6 (degree)): d 6 = 5, L 6 = 0, P 6 = 355;

Как при формировании, так и при расформировании текста сообщения последовательно определяют длины полей под параметры (см. формулу (3)) и общую структуру пакета:Both in the formation and in the decomposition of the message text, the lengths of the fields for the parameters are sequentially determined (see formula (3)) and the general structure of the packet:

Figure 00000012
Figure 00000012

Маски под каждый из параметров принимают значения:Masks for each of the parameters take the following values:

- для 1-го параметра (задействованы байты 1, 2): 255, 1;- for the 1st parameter (bytes 1, 2 are involved): 255, 1;

- для 2-го параметра (задействован 2-ой байт): 30;- for the 2nd parameter (the 2nd byte is involved): 30;

- для 3-го параметра (задействованы байты 2, 3, 4): 224, 255, 15;- for the 3rd parameter (bytes 2, 3, 4 are involved): 224, 255, 15;

- для 4-го параметра (задействованы байты 4, 5, 6): 240, 255, 3;- for the 4th parameter (bytes 4, 5, 6 are involved): 240, 255, 3;

- для 5-го параметра (задействован 6-ой байт): 252;- for the 5th parameter (the 6th byte is involved): 252;

- для 6-го параметра (задействован 7-ой байт): 127.- for the 6th parameter (the 7th byte is involved): 127.

Figure 00000013
Figure 00000013

Предполагаем, что предназначенные к передаче параметры имеют следующие значения:We assume that the parameters intended for transmission have the following meanings:

a 1=356; а 2=7; а 3=6404.336; а 4=5581.222; а 5=87.6; а 6=46.5; a 1 = 356; a 2 = 7; a 3 = 6404.336; a 4 = 5581.222; a 5 = 87.6; a 6 = 46.5;

После обработки на передающей стороне получим:After processing on the transmitting side, we get:

а) натуральные формы параметров (1):a) natural forms of parameters (1):

n1=356; n2=7; n3=12084; n4=4305; n5=29; n6=9;n 1 = 356; n 2 = 7; n 3 = 12084; n 4 = 4305; n 5 = 29; n 6 = 9;

б) байты текста сообщения:b) bytes of the message text:

b1=100; b2=143; b3=230; b4=21;b 1 = 100; b 2 = 143; b 3 = 230; b 4 = 21;

b5=13; b6=117; b7=9.b 5 = 13; b 6 = 117; b 7 = 9.

Figure 00000014
Figure 00000014

После расформирования на принимающей стороне и использования формулы (5) получим:After disbanding on the receiving side and using formula (5), we get:

Figure 00000015
Figure 00000015

Полученные значения в пределах допускаемой точности совпадают с исходными параметрами.The obtained values coincide with the initial parameters within the permissible accuracy.

Достигаемым техническим результатом предлагаемого способа формирования и расформирования текста сообщения является упрощение и ускорение разработки, формирования и расформирования предельно коротких текстов сообщений в бинарных протоколах прикладного уровня путем формирования оптимальной унифицированной структуры текста сообщения на основе данных по диапазону изменений и допустимой точности передаваемых параметров с использованием универсальных машинно-ориентированных алгоритмов.The achievable technical result of the proposed method for the formation and decomposition of the message text is to simplify and accelerate the development, formation and decomposition of extremely short message texts in binary protocols of the application level by forming an optimal unified structure of the message text based on the data on the range of changes and the permissible accuracy of the transmitted parameters using universal machine tools. -oriented algorithms.

Claims (1)

Способ формирования и расформирования текста сообщения в информационных бинарных пакетах прикладного уровня, при котором передаваемые параметры упаковывают в форме натуральных чисел в условных единицах, равных допустимой точности передаваемого параметра, отличающийся тем, что при формировании и расформировании текста сообщения используют только данные по допустимой точности и диапазону изменений передаваемых параметров, а формирование и расформирование текста сообщения осуществляют по единым унифицированным правилам, по которым значение каждого параметра определяют его смещением по отношению к минимальному значению в условных единицах, длину поля, выделяемого под параметр, определяют натуральным числом, характеризующим диапазон его изменения в условных единицах, а поля в тексте сообщения строго упорядочены.A method of forming and decomposing a message text in information binary packages of the application level, in which the transmitted parameters are packed in the form of natural numbers in arbitrary units equal to the permissible accuracy of the transmitted parameter, characterized in that when forming and decomposing the message text, only data on permissible accuracy and range is used changes in the transmitted parameters, and the formation and decomposition of the message text is carried out according to uniform unified rules, according to which the value of each parameter is determined by its displacement with respect to the minimum value in conventional units, the length of the field allocated for the parameter is determined by a natural number characterizing the range of its change in conventional units, and the fields in the message text are strictly ordered.
RU2019128098A 2019-09-06 2019-09-06 Method of generating and breaking up a message text in information binary application layer packets RU2722587C9 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
RU2019128098A RU2722587C9 (en) 2019-09-06 2019-09-06 Method of generating and breaking up a message text in information binary application layer packets

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
RU2019128098A RU2722587C9 (en) 2019-09-06 2019-09-06 Method of generating and breaking up a message text in information binary application layer packets

Publications (2)

Publication Number Publication Date
RU2722587C1 RU2722587C1 (en) 2020-06-01
RU2722587C9 true RU2722587C9 (en) 2020-09-14

Family

ID=71067411

Family Applications (1)

Application Number Title Priority Date Filing Date
RU2019128098A RU2722587C9 (en) 2019-09-06 2019-09-06 Method of generating and breaking up a message text in information binary application layer packets

Country Status (1)

Country Link
RU (1) RU2722587C9 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999005621A1 (en) * 1997-07-22 1999-02-04 Microsoft Corporation System for processing textual inputs using natural language processing techniques
RU134341U1 (en) * 2013-07-17 2013-11-10 Общество с ограниченной ответственностью "Бизнес Центр "Видео Интернешнл" AUTOMATED DOCUMENT TEXT SYSTEM
US8606778B1 (en) * 2004-03-31 2013-12-10 Google Inc. Document ranking based on semantic distance between terms in a document
RU2571405C1 (en) * 2014-06-27 2015-12-20 Игорь Петрович Рогачев Method for preliminary conversion of structured data array

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999005621A1 (en) * 1997-07-22 1999-02-04 Microsoft Corporation System for processing textual inputs using natural language processing techniques
US8606778B1 (en) * 2004-03-31 2013-12-10 Google Inc. Document ranking based on semantic distance between terms in a document
RU134341U1 (en) * 2013-07-17 2013-11-10 Общество с ограниченной ответственностью "Бизнес Центр "Видео Интернешнл" AUTOMATED DOCUMENT TEXT SYSTEM
RU2571405C1 (en) * 2014-06-27 2015-12-20 Игорь Петрович Рогачев Method for preliminary conversion of structured data array

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Глобальная спутниковая система ГЛОНАСС. Под ред. В.Н. Харисова, А.И. Перова, В.А. Болдина - М.: ИПРЖР, 1998, 400 с., с.147-148. *

Also Published As

Publication number Publication date
RU2722587C1 (en) 2020-06-01

Similar Documents

Publication Publication Date Title
US10291482B2 (en) ECU for transmitting large data in HiL test environment, system including the same and method thereof
US9219499B2 (en) Run time compression method for a vehicle communication bus
CN104125152A (en) Vehicle-mounted gateway-based method for improving vehicle-mounted network reliability
CN106685429B (en) Integer compression method and device
CN104104475A (en) Response signal generation method, receiving method and device
JP6992039B2 (en) Test data creation system and test data creation method
RU2722587C9 (en) Method of generating and breaking up a message text in information binary application layer packets
CN110912805B (en) Message reading state synchronization method, terminal, server and system
US20030069995A1 (en) Method and system for communicating among heterogeneous systems
CN103731424B (en) A kind of transmission method of network data, apparatus and system
US6263001B1 (en) Packet data communication protocol with reduced acknowledgements in a client/server computing system
CN103634229A (en) Inter-chip communication method and control device
KR100859499B1 (en) Data transmitting/receiving method and communication system thereof
CN109698718A (en) A kind of navigation path data sending method based on dipper system
CN110351028B (en) Data processing method and device and electronic equipment
KR101704300B1 (en) Method for transmitting/receiving can message and system performing the same
CN113645175B (en) Data communication method, device, equipment and computer readable storage medium
CN111865884B (en) Message processing method, device and equipment
WO2021036189A1 (en) Rdma data sending and receiving methods, electronic device and readable storage medium
WO2020220683A1 (en) Method and device for packet processing, computer device, and storage medium
CN111586112A (en) Data transmission method and device and computer readable storage medium
JP2008131481A (en) Data relay apparatus
CN104954823A (en) Image calculation pretreatment device, method thereof and system thereof
KR100330523B1 (en) Data communications apparatus, method and computer program product implementating data communications protocol with efficient packing of datagrams
CN114780258B (en) Method and system for processing partition communication of operating system

Legal Events

Date Code Title Description
TK4A Correction to the publication in the bulletin (patent)

Free format text: CORRECTION TO CHAPTER -FG4A- IN JOURNAL 16-2020 FOR INID CODE(S) (54)

TH4A Reissue of patent specification