[go: up one dir, main page]

RU2362211C1 - Method of generating output information from state of several input signals in systems for collecting, converting, transferring data and control - Google Patents

Method of generating output information from state of several input signals in systems for collecting, converting, transferring data and control Download PDF

Info

Publication number
RU2362211C1
RU2362211C1 RU2007145364/09A RU2007145364A RU2362211C1 RU 2362211 C1 RU2362211 C1 RU 2362211C1 RU 2007145364/09 A RU2007145364/09 A RU 2007145364/09A RU 2007145364 A RU2007145364 A RU 2007145364A RU 2362211 C1 RU2362211 C1 RU 2362211C1
Authority
RU
Russia
Prior art keywords
code
telematic
condition
message
source
Prior art date
Application number
RU2007145364/09A
Other languages
Russian (ru)
Inventor
Михаил Валерьевич Соловьев (RU)
Михаил Валерьевич Соловьев
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 RU2007145364/09A priority Critical patent/RU2362211C1/en
Application granted granted Critical
Publication of RU2362211C1 publication Critical patent/RU2362211C1/en

Links

Images

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

FIELD: information technology.
SUBSTANCE: invention relates to method of generating output information from the state of several input signals in systems for collecting, converting, transferring data and control and can be used in monitoring and control systems, for example in telematic programmable logic controllers, fitted on mobile and stationary objects. An array of instructions is set in computer memory, each of which contains a first condition code for checking the current value of one of the input signals, second condition code for checking the same or another input signal and a code for setting output information, generated when these two conditions are met, as well as a list of output messages and a list of recipient addresses, to which these messages can be sent. For each input signal subject to processing, all instructions from their given array are executed.
EFFECT: increased set of solutions.
17 cl, 6 dwg

Description

Область техники, к которой относится изобретениеFIELD OF THE INVENTION

Изобретение относится к области вычислительной, информационно-измерительной и телекоммуникационной техники и, более точно, к способам формирования выходной информации по состоянию множества входных сигналов в системах сбора, преобразования, передачи данных и управления устройствами. В этих системах передача данных используется для отправления сообщений к удаленным внешним объектам, то есть к объектам, не входящим в эти системы, и для приема сообщений от удаленных внешних объектов, например, по радиоканалам.The invention relates to the field of computing, information-measuring and telecommunication equipment and, more precisely, to methods for generating output information by the state of the set of input signals in the systems for collecting, converting, transmitting data and controlling devices. In these systems, data transmission is used to send messages to remote external objects, that is, to objects that are not included in these systems, and to receive messages from remote external objects, for example, via radio channels.

Изобретение может быть использовано в разнообразных системах мониторинга, контроля и управления, например, в системах, с использованием передачи информации по беспроводным каналам связи, в том числе, в программируемых логических контроллерах (ПЛК), особенно в телематических ПЛК, устанавливаемых на подвижных (наземных, речных, морских) объектах и на стационарных объектах, в том числе, на удаленных.The invention can be used in a variety of monitoring, control and management systems, for example, in systems using the transmission of information via wireless communication channels, including programmable logic controllers (PLCs), especially in telematic PLCs installed on mobile (ground, river, sea) objects and stationary objects, including remote ones.

Термин «программируемый логический контроллер (ПЛК)» разъясняется в статье «Программируемые контроллеры, начальные сведения», опубликованной на сайте фирмы «Пролог» www.codesys.ru/tmpl.php?content=info1.htm и в статье «Programmable logic controller», опубликованной в энциклопедии «Wikipedia, the free encyklopedia» на сайте http://en.wikipedia.org/wiki/Programmable_logic_controller.The term “programmable logic controller (PLC)” is explained in the article “Programmable Controllers, Initial Information” published on the website of the Prolog company www.codesys.ru/tmpl.php?content=info1.htm and in the article “Programmable logic controller” published in the Wikipedia, the free encyklopedia encyclopedia at http://en.wikipedia.org/wiki/Programmable_logic_controller.

Под телемагическим ПЛК понимается такой ПЛК, в котором могут быть использованы телематические внешние устройства - навигационный приемник (например, навигационные приемники, выполненные на основе систем GPS-NAVSTAR, Galileo, ГЛОНАСС), связное устройство - модем (например, GSM/GPRS-модем, CDMA-модем или спутниковый модем, в частности Global Star, Irridium, VSAT).Telemagic PLC means a PLC in which telematic external devices can be used - a navigation receiver (for example, navigation receivers based on GPS-NAVSTAR, Galileo, GLONASS), a communication device - a modem (for example, GSM / GPRS modem, CDMA modem or satellite modem, in particular Global Star, Irridium, VSAT).

Термин «телематический» происходит от термина «телематика» («telematics»), толкование которого приведено в патенте США № 7091903 от 2006 г. по классу США 701/213 на изобретение «Apparatus and method for processing of telematics terminal».The term "telematics" comes from the term "telematics", the interpretation of which is given in US patent No. 7091903 from 2006 according to US class 701/213 for the invention "Apparatus and method for processing of telematics terminal".

Термин «телематический» относится также к сообщениям, принимаемым и отправляемым телематическими внешними устройствами. Одни из этих устройств обеспечивают прием в ПЛК входных телематических сообщений от удаленных цифровых измерителей различных величин (например, от датчиков температуры, давления, уровня жидкости, расхода топлива, расхода электроэнергии и т.п.) и от удаленных телематических систем (например, от системы навигационных спутников, от системы базовых станций абонентской связи). Другие из этих устройств обеспечивают отправление выходных телематических сообщений к телематическим системам. Телематическое сообщение в общем случае содержит набор (кортеж) переменных величин и код, указывающий тип этого сообщения.The term “telematic” also refers to messages received and sent by telematic external devices. Some of these devices allow receiving telematic messages from remote digital meters of various sizes (for example, from sensors of temperature, pressure, liquid level, fuel consumption, power consumption, etc.) and from remote telematic systems (for example, from a system) to the PLC navigation satellites, from a subscriber base station system). Other of these devices send telematics messages to telematics systems. A telematic message generally contains a set (tuple) of variables and a code indicating the type of message.

Уровень техникиState of the art

В системах сбора, преобразования, передачи данных и управления используются различные способы формирования выходной информации по состоянию множества входных сигналов. Эта выходная информация может передаваться к различным ее получателям в виде управляющих воздействий или в виде сообщений, посылаемых адресатам по линиям связи. В этих способах производят периодический опрос источников входных сигналов и считывают набор текущих значений этих сигналов, определяющий текущее состояние множества входных сигналов.In systems for collecting, converting, transmitting data, and controlling, various methods of generating output information using the state of multiple input signals are used. This output information can be transmitted to its various recipients in the form of control actions or in the form of messages sent to recipients via communication lines. In these methods, a periodic survey of the sources of input signals is performed and a set of current values of these signals is determined, which determines the current state of the set of input signals.

К подобным способам относится способ периодической регистрации данных с использованием датчиков и/или электронных интерфейсов в качестве источников входных сигналов (см. патент США № 6532434 от 2003 г. по классу США 702/187 на изобретение «Modular data sensing and logging system»). В этом способе входные сигналы, полученные в результате опроса их источников, регистрируются и передаются в компьютер для последующего формирования выходной информации, а в остальном способ формирования в указанном патенте не раскрыт. Предполагается, что в компьютере может быть запрограммирован требуемый способ формирования выходной информации.Such methods include a method for periodically recording data using sensors and / or electronic interfaces as input sources (see US patent No. 6532434 of 2003 for US class 702/187 for the invention of "Modular data sensing and logging system"). In this method, the input signals obtained as a result of a survey of their sources are recorded and transmitted to a computer for the subsequent generation of output information, but otherwise the method of formation in the said patent is not disclosed. It is contemplated that the desired method of generating output information may be programmed in the computer.

К аналогичным способам формирования выходной информации относятся также способы, которые могут быть реализованы в системе сбора данных, поступающих от датчиков первичной информации, преобразования этой информации, приема и отправления сообщений по радиоканалу стандарта GSM и подачи управляющих воздействий к исполнительным устройствам (см. патент РФ на полезную модель №RU 39548 от 2004 г. по классу МПК7 B60R 25/10, «Система для контроля состояния и управления транспортным средством»). Предполагается, что в микропроцессоре этой системы могут быть запрограммированы требуемые способы формирования выходной информации.Similar methods for generating output information also include methods that can be implemented in a system for collecting data from primary information sensors, converting this information, receiving and sending messages via the GSM radio channel, and supplying control actions to actuators (see RF patent for Utility model No. RU 39548 of 2004 according to IPC class 7 B60R 25/10, “System for monitoring the state and driving a vehicle”). It is assumed that in the microprocessor of this system, the required methods for generating output information can be programmed.

Недостаток подхода к формированию выходной информации, используемого в указанных выше патентных источниках и предусматривающего полную разработку программы формирования выходной информации для каждого применения, заключается в необходимости и трудоемкости программирования и отладки программ для каждой задачи сбора, преобразования, передачи данных и управления, а также значительный объем программирования при изменении задачи.The disadvantage of the approach to the formation of the output information used in the above patent sources and providing for the full development of the program for generating the output information for each application is the need and the complexity of programming and debugging programs for each task of collecting, converting, transmitting data, and managing, as well as a significant amount programming when changing a task.

Известно множество способов формирования выходной информации, используемых в телематических устройствах (системах), рассчитанных на конкретные применения (см., например, патент США № 6347281 от 2002 г. по классу США 701/213 на изобретение «Remote global positioning device and method», патент США № 7024308 от 4 апреля 2006 г. по классам США 701/213, 701/209 на изобретение «Telematic method for real-time routing to stolen vehicles» и патент США № 7091903 от 15 августа 2006 г. по классу США 701/213 на изобретение «Apparatus and method for processing signal of telematics terminal»). Недостаток этих способов состоит в их специализации на решение частных задач и вследствие этого в невозможности их применения для других задач. Общий недостаток этих способов состоит также в том, что в них не предусмотрена возможность сбора и обработки нетелематических сигналов (то есть аналоговых, числовых и релейных сигналов, поступающих от нетелематических устройств). Такая возможность, как правило, не предусмотрена в телематических системах (см., например, патент США № 6957133 от 2005 г. по классам США 701/29, 701/36 на изобретение «Small-scale, integrated vehicle telematics device»).There are many known methods for generating output information used in telematic devices (systems) designed for specific applications (see, for example, US patent No. 6347281 of 2002 for US class 701/213 for the invention "Remote global positioning device and method", US patent No. 7024308 dated April 4, 2006 for US classes 701/213, 701/209 for the invention of the “Telematic method for real-time routing to stolen vehicles" and US patent No. 7091903 dated August 15, 2006 for US class 701 / 213 for the invention "Apparatus and method for processing signal of telematics terminal"). The disadvantage of these methods lies in their specialization in solving particular problems and, as a result, in the impossibility of their application for other tasks. A common disadvantage of these methods is also that they do not provide for the possibility of collecting and processing non-telematics signals (i.e., analog, numerical and relay signals coming from non-telematics devices). Such a possibility, as a rule, is not provided in telematic systems (see, for example, US patent No. 6957133 of 2005 for US classes 701/29, 701/36 for the invention of "Small-scale, integrated vehicle telematics device").

Известен способ формирования выходной информации по состоянию множества входных сигналов в системах сбора, преобразования и передачи данных, состоящий в том, что производят периодический опрос источников входных сигналов и считывают набор текущих значений этих сигналов, определяющий текущее состояние множества входных сигналов (см., патент РФ на изобретение № 2079882 от 2004 г. по классу МПК7 G06F 17/40, «Система сбора, преобразования и передачи результатов измерения параметров физической среды»). В этом способе источниками входных сигналов являются аналоговые датчики физических величин. Опрос этих датчиков начинают, если хотя бы значение сигнала одного из них равно или превышает значение опорного сигнала, задаваемого компьютером. Далее считанные текущие значения входных сигналов сравнивают с пороговыми значениями, заданными для каждого датчика, и если текущее значение входного сигнала равно или больше порогового значения, соответствующего этому датчику, то формируют выходную информацию в виде сообщения, которое передают в линию связи.A known method of generating output information on the state of the set of input signals in the systems for collecting, converting and transmitting data, which consists in periodically polling the sources of the input signals and reading the set of current values of these signals, which determines the current state of the set of input signals (see, RF patent for invention No. 2079882 of 2004 in accordance with IPC class 7 G06F 17/40, “System for collecting, converting and transmitting results of measurements of physical medium parameters”). In this method, the sources of input signals are analog sensors of physical quantities. The interrogation of these sensors begins if at least the signal value of one of them is equal to or greater than the value of the reference signal specified by the computer. Next, the read current values of the input signals are compared with the threshold values specified for each sensor, and if the current value of the input signal is equal to or greater than the threshold value corresponding to this sensor, then output information is generated in the form of a message that is transmitted to the communication line.

Недостаток этого способа состоит в его специализации на конкретную задачу, в том числе, в использовании источников только аналоговых входных сигналов. Специализация этого способа на конкретную задачу обусловлена также тем, что опрос источников входных сигналов начинают в зависимости от их значений.The disadvantage of this method is its specialization for a specific task, including the use of sources of only analog input signals. The specialization of this method for a specific task is also due to the fact that a survey of the sources of input signals begins depending on their values.

Прототипом предлагаемого способа является близкий к предыдущему способ формирования выходной информации по состоянию множества входных сигналов в системах сбора, преобразования и передачи данных, состоящий в том, что производят периодический опрос источников входных сигналов и считывают набор текущих значений этих сигналов, определяющий текущее состояние множества входных сигналов (см., патент РФ на изобретение № 2081452 от 2004 г. по классу МПК7 G06F 17/40, «Система для сбора, преобразования и передачи результатов измерения параметров физической среды»). В этом способе источниками входных сигналов также являются аналоговые датчики физических величин. Каждое из считанных текущих значений входных сигналов сравнивают с пороговыми значениями, заданными для каждого датчика, и если текущее значение входного сигнала равно или больше порогового значения, соответствующего этому датчику, то формируют выходную информацию в виде сообщения, которое передают в линию связи. В этом способе в отличие от предыдущего (по патенту РФ на изобретение № 2079882) периодический опрос источников входных сигналов производят вне зависимости от их значений.The prototype of the proposed method is close to the previous method of generating output information on the state of the set of input signals in the systems for collecting, converting and transmitting data, which consists in periodically polling the sources of input signals and reading a set of current values of these signals, which determines the current state of the set of input signals (see., Russian patent 2081452 № from 2004 till class IPC7 G06F 17/40, «system for the collection, conversion, and transmission of the results of measurement parameters INDIVIDUALS Second environment "). In this method, analog physical quantity sensors are also input sources. Each of the read current values of the input signals is compared with the threshold values specified for each sensor, and if the current value of the input signal is equal to or greater than the threshold value corresponding to this sensor, then output information is generated in the form of a message that is transmitted to the communication line. In this method, in contrast to the previous one (according to the patent of the Russian Federation for invention No. 2079882), a periodic survey of the sources of input signals is carried out regardless of their values.

Недостаток этого способа также состоит в его специализации на конкретную задачу, в том числе в использовании источников только аналоговых входных сигналов.The disadvantage of this method also lies in its specialization for a specific task, including the use of sources of only analog input signals.

Раскрытие (сущность) изобретенияDisclosure (essence) of the invention

Задачей предлагаемого изобретения является разработка способа формирования выходной информации по состоянию множества входных сигналов в системах сбора, преобразования, передачи данных и управления, который по сравнению с аналогами и прототипом обеспечил бы технический результат в виде одновременного достижений следующих целей:The objective of the invention is to develop a method for generating output information by the state of the set of input signals in the systems for collecting, converting, transmitting data and control, which, in comparison with analogues and prototype, would provide a technical result in the form of simultaneous achievement of the following goals:

- упрощения и снижения трудоемкости создания различных систем сбора, преобразования, передачи данных и управления, в которых могут использоваться нетелематические (аналоговые, числовые и релейные) входные сигналы, поступающие от датчиков, входящих в эти системы, а также числовые или текстовые входные сообщения, поступающие от телематических устройств, например навигационных приемников и модемов;- simplification and reduction of the laboriousness of creating various systems for collecting, converting, transmitting data and control, in which non-telematical (analog, numerical and relay) input signals coming from the sensors included in these systems, as well as numerical or text input messages, can be used from telematics devices, such as navigation receivers and modems;

- расширения круга решаемых задач.- expanding the range of tasks.

Такой технический результат можно описать кратко как упрощение создания систем сбора, преобразования, передачи данных и управления для широкого круга решаемых задач или как расширение технических возможностей этих систем, увеличивающее множество решаемых ими задач.Such a technical result can be described briefly as a simplification of the creation of systems for collecting, converting, transmitting data and control for a wide range of tasks or as an extension of the technical capabilities of these systems, increasing the number of tasks they solve.

Благодаря этому техническому результату предлагаемый способ и построенные на его основе системы могут применяться для решения многих практических задач в различных областях. В число этих задач входят, например, следующие:Due to this technical result, the proposed method and systems built on its basis can be used to solve many practical problems in various fields. These tasks include, for example, the following:

- мониторинг транспортных средств с использованием навигационных данных, совмещенный с контролем различных величин (например, с контролем расхода топлива, электроэнергии, состояния окружающей среды и т.п.);- monitoring of vehicles using navigation data, combined with the control of various quantities (for example, with the control of fuel consumption, electricity, environmental conditions, etc.);

- контроль соответствия следования транспортного средства заданному маршруту и графику передвижения;- control of compliance of the vehicle following the given route and schedule;

- охрана транспортных средств;- protection of vehicles;

- контроль состояний механизмов транспортного средства и управление ими на расстоянии;- monitoring the status of vehicle mechanisms and controlling them from a distance;

- управление устройствами, в том числе, расположенными на удаленных объектах;- device management, including those located at remote sites;

- регистрация и передача данных в метеорологии;- registration and transmission of data in meteorology;

- контроль экологической обстановки, мониторинг окружающей среды.- environmental monitoring, environmental monitoring.

Этот технический результат достигается, во-первых, благодаря тому, что в способе формирования выходной информации по состоянию множества входных сигналов в системах сбора, преобразования, передачи данных и управления, при котором производят периодический опрос нетелематических источников входных сигналов, например аналого-цифровых преобразователей, числовых и релейных датчиков, и периодически считывают набор текущих значений этих сигналов, осуществляют следующее:This technical result is achieved, firstly, due to the fact that in the method of generating output information according to the state of the set of input signals in the systems for collecting, converting, transmitting data and control, in which periodically polling non-telematical sources of input signals, for example analog-to-digital converters, numerical and relay sensors, and periodically read a set of current values of these signals, carry out the following:

- в компьютерной памяти задают массив инструкций, каждая из которых содержит код первого условия проверки текущего значения одного из входных сигналов, код второго условия проверки текущего значения того же или другого входного сигнала и код задания выходной информации, формируемой при выполнении двух указанных условий;- an array of instructions is set in computer memory, each of which contains a code for the first condition for checking the current value of one of the input signals, a code for the second condition for checking the current value of the same or another input signal, and a code for setting the output information generated when these two conditions are met;

- в компьютерной памяти задают список заготовок выходных телематических сообщений, список адресов получателей, к которым могут быть направлены эти сообщения, и список указателей величин и массивов, значения которых могут быть вставлены в эти сообщения;- a list of blanks for the output telematic messages, a list of recipient addresses to which these messages can be sent, and a list of pointers of quantities and arrays whose values can be inserted into these messages are set in computer memory;

- для нетелематических источников входных сигналов, например, в компьютерной памяти задают пороги абсолютной величины разности между текущим и предыдущим значениями;- for non-telematical sources of input signals, for example, thresholds of the absolute value of the difference between the current and previous values are set in computer memory;

- для нетелематических источников входных сигналов периодически сравнивают текущие значения входных сигналов соответственно со значениями одноименных входных сигналов, полученными в предыдущем периоде опроса, запоминают коды источников входных сигналов, изменившихся на величину, превысившую порог, заданный для каждого источника, и текущие значения этих сигналов, после чего подают запросы на обработку этих изменившихся сигналов, соответствующую массиву инструкций;- for non-telematical input sources, the current values of the input signals are periodically compared, respectively, with the values of the same input signals obtained in the previous polling period, the codes of the sources of input signals that have changed by an amount exceeding the threshold specified for each source and the current values of these signals, after why submit requests for processing these changed signals, corresponding to an array of instructions;

- при использовании телематических устройств, например навигационных приемников и модемов, для получения входных сигналов запоминают все принятое от них телематическое сообщение, содержащее кортеж переменных величин и код характеристики этого сообщения, определяющий указанный кортеж, после чего сигнал о завершении его принятия используют в качестве запроса на обработку этого сообщения, соответствующую массиву инструкций, и при этом каждую переменную величину, содержащуюся в принятом входном телематическом сообщении, выделяют из этого сообщения как телематический источник входного сигнала, а значение этой переменной величины интерпретируют как значение входного сигнала;- when using telematics devices, such as navigation receivers and modems, to receive input signals, they memorize all the telematic message received from them, containing a tuple of variables and a characteristic code of this message defining the specified tuple, after which the signal of completion of its adoption is used as a request for the processing of this message corresponding to the array of instructions, and each variable contained in the received input telematic message is isolated from this of telematic message as the input source, and the value of this variable is interpreted as an input signal value;

- по запросу на обработку каждого текущего значения входного сигнала, соответствующую массиву инструкций, просматривают весь этот массив и выполняют каждую инструкцию, для чего проверяют выполнение первых условий; затем в случае выполнения любого первого условия, заданного в любой из указанных инструкций, при заданном признаке необходимости проверки второго условия проверяют выполнение второго условия, заданного в той же инструкции, а в случае выполнения этого второго условия и в случае, когда не задан признак необходимости проверки второго условия, формируют выходную информацию, код задания которой указан в той же инструкции.- upon request for processing each current value of the input signal corresponding to an array of instructions, they look through this entire array and execute each instruction, for which they check the fulfillment of the first conditions; then, if any first condition specified in any of the above instructions is fulfilled, if the sign of the need to verify the second condition is specified, then the second condition specified in the same instruction is checked, and if this second condition is met, if the sign of the need to check is not specified the second condition, form the output information, the job code of which is specified in the same instructions.

Во-вторых, технический результат достигается благодаря следующему представлению и интерпретации указанных кодов первых и вторых условий:Secondly, the technical result is achieved due to the following presentation and interpretation of the indicated codes of the first and second conditions:

- каждый код первого условия задают в виде набора, содержащего код источника входного сигнала, константу сравнения и код операции сравнения, сравнивают на совпадение этот код источника с кодами нетелематических источников изменившихся входных сигналов и с кодами телематических источников входных сигналов и в случае совпадения этих кодов выдают сигнал о выполнении первого условия, если константа и код операции сравнения равны нулю, а если константа и код операции сравнения не равны нулю, то сравнивают указанную константу с соответствующим этому коду источника текущим значением входного сигнала в соответствии с указанной операцией сравнения, и если результат этой операции удовлетворяет условию этого сравнения, то выдают сигнал о выполнении первого условия;- each code of the first condition is set in the form of a set containing the source code of the input signal, the constant of comparison and the code of the comparison operation, this source code is compared with the codes of non-telematic sources of the changed input signals and with codes of telematic sources of the input signals, and if these codes match signal about the fulfillment of the first condition, if the constant and the code of the operation of comparison are equal to zero, and if the constant and the code of the operation of comparison are not equal to zero, then compare the specified constant with the corresponding to this source code with the current value of the input signal in accordance with the specified comparison operation, and if the result of this operation satisfies the condition of this comparison, then they give a signal about the fulfillment of the first condition;

- каждый код второго условия задают в виде набора, содержащего код источника входного сигнала, константу сравнения и код операции сравнения, сравнивают текущее значение входного сигнала, соответствующего коду его источника, с указанной константой в соответствии с указанной операцией сравнения и в случае, если результат этой операции удовлетворяет условию этого сравнения, то выдают сигнал о выполнении второго условия.- each code of the second condition is set in the form of a set containing the source code of the input signal, the comparison constant and the code of the comparison operation, the current value of the input signal corresponding to the code of its source is compared with the specified constant in accordance with the specified comparison operation and if the result of this operation satisfies the condition of this comparison, then give a signal about the fulfillment of the second condition.

Получению технического результата способствуют следующие варианты задания указанных первых и вторых условий в предлагаемом способе:The technical options contribute to the following options for specifying the specified first and second conditions in the proposed method:

- код нетелематического источника входного сигнала в первом условии задают в виде набора, содержащего код типа источника входного сигнала и код номера источника этого типа;- the code of the non-telematics input source in the first condition is set in the form of a set containing the type code of the input signal source and the source number code of this type;

- код телематического источника входного сигнала в первом условии формируют как набор, содержащий код типа телематического устройства, номер устройства этого типа, код типа телематического сообщения, определяющий набор переменных величин в этом сообщении, и номер переменной величины в этом сообщении;- the code of the telematic source of the input signal in the first condition is formed as a set containing a code of the type of the telematic device, the number of the device of this type, the code of the type of the telematic message that defines the set of variables in this message, and the number of the variable in this message;

- в качестве операции сравнения в первых условиях используют любую необходимую арифметическую операцию сравнения;- as the comparison operation in the first conditions use any necessary arithmetic comparison operation;

- код нетелематического источника входного сигнала во втором условии задают в виде набора, содержащего код типа источника входного сигнала и код номера источника этого типа;- the code of the non-telematical source of the input signal in the second condition is set in the form of a set containing the code of the type of the source of the input signal and the code of the source number of this type;

- код телематического источника входного сигнала во втором условии формируют как набор, содержащий код типа телематического устройства, номер устройства этого типа, код типа телематического сообщения, определяющий набор переменных величин в этом сообщении, и номер переменной величины в этом сообщении;- the code of the telematic source of the input signal in the second condition is formed as a set containing a code of the type of a telematic device, a device number of this type, a code of the type of a telematic message defining a set of variables in this message, and the number of a variable in this message;

- в качестве операции сравнения во вторых условиях используют любую необходимую арифметическую операцию сравнения;- as a comparison operation in the second conditions, use any necessary arithmetic comparison operation;

- коду второго условия придают признак, например, значение этого кода, равное нулю, указывающий, что второе условие не подлежит проверке и считается выполненным;- the code of the second condition is given a sign, for example, the value of this code is zero, indicating that the second condition is not subject to verification and is considered fulfilled;

- в инструкциях указывают номера кодов вторых условий, а коды вторых условий хранят в списке, и при этом одним из этих номеров, например нулевым, указывают на то, что второе условие не подлежит проверке и считается выполненным.- the instructions indicate the numbers of the codes of the second conditions, and the codes of the second conditions are stored in the list, and one of these numbers, for example, zero, indicates that the second condition is not subject to verification and is considered fulfilled.

Далее, технический результат достигается благодаря тому, что в предлагаемом способе используют следующее представление и интерпретацию кода задания выходной информации:Further, the technical result is achieved due to the fact that the proposed method uses the following representation and interpretation of the code for setting the output information:

- код задания выходной информации задают в виде набора, содержащего код объекта, на который направлено управляющее воздействие, код вида воздействия и параметр воздействия, интерпретация которого зависит от кода объекта и кода вида воздействия;- the code for setting the output information is set in the form of a set containing the code of the object to which the control action is directed, the code of the type of influence and the parameter of the impact, the interpretation of which depends on the code of the object and the code of the type of effect;

- код объекта задают в виде набора, содержащего код типа объекта и номер объекта этого типа;- the object code is set in the form of a set containing an object type code and an object number of this type;

- код задания выходной информации задают в виде набора, содержащего код телематического устройства, передающего сообщение, номер заготовки сообщения в заданном списке заготовок выходных телематических сообщений и номер адреса получателя в заданном списке адресов;- the code for setting the output information is set in the form of a set containing the code of the telematic device transmitting the message, the number of the message blank in the given list of blanks for the output telematic messages, and the recipient address number in the specified address list;

- каждую заготовку сообщения в списке заготовок выходных телематических сообщений задают в виде последовательности фиксированных частей передаваемого текста и признаков переменных частей этого текста, каждый из которых указывает какую информацию вставлять на его место в соответствующую ему переменную часть передаваемого текста, причем формируют каждую переменную часть текста в соответствии с указанием, содержащимся в соответствующем ему признаке переменной части текста;- each message blank in the list of blanks for the output telematic messages is set in the form of a sequence of fixed parts of the transmitted text and signs of variable parts of this text, each of which indicates what information to insert in its place in the corresponding variable part of the transmitted text, and each variable part of the text is formed in in accordance with the indication contained in the corresponding attribute of the variable part of the text;

- признак переменной части передаваемого текста задают в виде набора, содержащего идентификатор этого признака и номер указателя той величины или того массива в заданном списке этих указателей, значения которых вставляют в эту переменную часть передаваемого текста;- the sign of the variable part of the transmitted text is set in the form of a set containing the identifier of this sign and the number of the pointer of that value or that array in the given list of these pointers whose values are inserted into this variable part of the transmitted text;

- признак переменной части передаваемого текста задают в виде набора, содержащего идентификатор этого признака и код, служащий командой для формирования контрольной информации передаваемого сообщения, например контрольной суммы, которую вставляют в эту переменную часть передаваемого текста.- the sign of the variable part of the transmitted text is set in the form of a set containing the identifier of this sign and a code that serves as a command for generating the control information of the transmitted message, for example, the checksum that is inserted into this variable part of the transmitted text.

Предлагаемый способ формирования выходной информации по состоянию множества входных сигналов в системах сбора, преобразования, передачи данных и управления можно рассматривать как способ построения процессорного узла, ориентированного на применение в различных системах сбора, преобразования, передачи данных и управления, в частности, в разнообразных системах мониторинга, контроля, управления и учета, например, в системах с использованием передачи информации по беспроводным каналам связи, и особенно в телематических программируемых логических контроллерах, устанавливаемых на подвижных наземных объектах (например, легковых автомобилях, трейлерах), на подвижных речных и морских объектах и на стационарных объектах, например удаленных.The proposed method for generating output information on the state of the set of input signals in the systems for collecting, converting, transmitting data and control can be considered as a way of constructing a processor node oriented to use in various systems for collecting, converting, transmitting data and control, in particular, in various monitoring systems , control, management and accounting, for example, in systems using the transmission of information via wireless communication channels, and especially in telematic programmed ogicheskih controllers installed on mobile terrestrial objects (e.g., cars, trailers) for moving river and sea objects and stationary objects, such as distant.

То что по запросу на обработку каждого текущего значения входного сигнала, соответствующую заданному массиву инструкций, просматривают весь этот массив и выполняют (интерпретируют) все содержащиеся в нем инструкции, обусловлено тем, что каждому источнику входного сигнала может соответствовать не одна, а множество инструкций в этом массиве. Это позволяет существенно расширить класс решаемых задач и обеспечить достаточно большие логические возможности, предоставляемые предлагаемым способом, по сравнению со случаем, в котором одному источнику входного сигнала соответствовала бы одна инструкция.The fact that, upon request for processing each current value of the input signal corresponding to a given array of instructions, looks through this entire array and executes (interprets) all the instructions contained in it, due to the fact that each source of the input signal can correspond to not one, but many instructions in this an array. This allows us to significantly expand the class of problems to be solved and to provide sufficiently large logical possibilities provided by the proposed method, compared with the case in which one instruction would correspond to one input source.

Предлагаемый способ позволяет одновременно решать несколько задач, благодаря тому, что массив инструкций по существу может содержать задания для решения нескольких задач.The proposed method allows you to simultaneously solve several problems, due to the fact that the array of instructions can essentially contain tasks for solving several problems.

Предлагаемый способ и построенный в соответствии с ним процессорный узел могут быть реализованы программно или программно-аппаратно.The proposed method and the processor unit constructed in accordance with it can be implemented in software or in software and hardware.

Упрощение и снижение трудоемкости создания систем сбора, преобразования, передачи данных и управления для различных областей применения достигается благодаря тому, что предлагаемый способ обеспечивает построение и функционирование процессорного узла, ориентированного на решение широкого круга задач формирования выходной информации по состоянию множества входных сигналов.The simplification and reduction of the complexity of creating systems for collecting, converting, transmitting data and control for various fields of application is achieved due to the fact that the proposed method provides the construction and operation of a processor unit, focused on solving a wide range of problems of generating output information by the state of a variety of input signals.

Расширение круга решаемых технических задач достигается благодаря обладающей большими функциональными возможностями и ориентированной на множество решаемых задач структуре инструкций, схемы обработки массива этих инструкций, выделению обрабатываемых входных сигналов в результате сравнения их текущих и предыдущих значений и интерпретации телематических сообщений как набора значений источников входных сигналов.Expanding the range of technical problems to be solved is achieved thanks to the structure of instructions having a great functionality and a lot of tasks to be solved, the processing circuit of the array of these instructions, the allocation of processed input signals as a result of comparing their current and previous values, and interpreting telematic messages as a set of input signal source values.

Расширение технических возможностей по сравнению с аналогами и с прототипом достигается благодаря тому, что предлагаемый способ и структура построенного на его основе процессорного узла позволяет создать системы для решения технических задач, принадлежащих к множеству задач, которые могут быть востребованы в различных областях применения, и благодаря тому, что при этом предлагаемый способ может обеспечивать одновременное решение нескольких задач.The expansion of technical capabilities in comparison with analogues and with the prototype is achieved due to the fact that the proposed method and structure of the processor unit built on its basis allows us to create systems for solving technical problems belonging to many tasks that can be in demand in various fields of application, and due to that in this case, the proposed method can provide simultaneous solution of several tasks.

Краткое описание чертежейBrief Description of the Drawings

На фиг.1 показан пример структурной схемы (или, иначе, блок-схемы) обобщенной телематической системы сбора, преобразования, передачи данных и управления,Figure 1 shows an example of a structural diagram (or, otherwise, a block diagram) of a generalized telematics system for collecting, converting, transmitting data and controlling,

на фиг.2 - пример структурной схемы обобщенного телематического программируемого логического контроллера (ПЛК),figure 2 is an example of a structural diagram of a generalized telematic programmable logic controller (PLC),

на фиг.3 показана схема основных этапов предлагаемого способа формирования выходной информации в системах сбора, преобразования, передачи данных и управления,figure 3 shows a diagram of the main stages of the proposed method of generating output information in the systems for collecting, converting, transmitting data and control,

на фиг.4 - схема основных этапов приема и начальной обработки входных сигналов,figure 4 - diagram of the main stages of the reception and initial processing of input signals,

на фиг.5 показан пример структурной схемы блока обработки входных данных в соответствии с массивом инструкций,figure 5 shows an example of a structural diagram of an input data processing unit in accordance with an array of instructions,

на фиг.6 - пример структурной схемы блока обработки пары <код источника входного сигнала, текущее значение этого сигнала> по одной инструкции.Fig.6 is an example of a structural diagram of the processing unit of the pair <source code of the input signal, the current value of this signal> according to one instruction.

Осуществление изобретенияThe implementation of the invention

Предлагаемый способ предназначен для применения в системах сбора, преобразования, передачи данных и управления, например, в телематических системах, обобщенный пример которых показан на фиг.1. В этих системах предлагаемый способ может быть осуществлен в телематическом программируемом логическом контроллере (телематическом ПЛК), обобщенный пример которого показан на фиг.2.The proposed method is intended for use in systems for collecting, converting, transmitting data and control, for example, in telematic systems, a generalized example of which is shown in figure 1. In these systems, the proposed method can be implemented in a telematic programmable logic controller (telematic PLC), a generalized example of which is shown in figure 2.

Телематическая система (фиг.1) содержит телематический ПЛК 1 с приемно-передающей антенной 2, навигационный приемник 3 с приемной антенной 4, релейные, или иначе, однобитовые датчики 5 (например, датчик состояния «дверь открыта»), числовые датчики 6 (например, цифровые измерители температуры, расхода топлива, уровня жидкости), аналоговые датчики 7, управляемые устройства 8, соединенные с управляющим выходом 9 ПЛК 1, базовая станция 10, входящая в GSM-сеть базовых станций (GSM-сеть на чертеже не показана), аппаратура 11 удаленных стационарных объектов, аппаратура 12 подвижных объектов. В состав базовой станции 10 входит компьютер (на чертеже не показан), который связан каналом Интернета с IP-сервером 13. ПЛК 1 через антенну 2 связан по радиоканалу с базовой станцией 10 GSM-сети, а через нее связан по радиоканалам с аппаратурой 11 удаленных стационарных объектов и аппаратурой 12 подвижных объектов. Подвижные объекты могут быть наземными (например, легковые автомобили, трейлеры), речными и морскими. В состав аппаратуры 11 и 12 может входить телематический ПЛК 1.The telematics system (Fig. 1) contains a telematics PLC 1 with a transmitting and receiving antenna 2, a navigation receiver 3 with a receiving antenna 4, relay, or otherwise, single-bit sensors 5 (for example, a door-open status sensor), numerical sensors 6 (for example , digital meters for temperature, fuel consumption, liquid level), analog sensors 7, controlled devices 8 connected to the control output 9 of PLC 1, base station 10 included in the GSM network of base stations (GSM network is not shown in the drawing), equipment 11 remote stationary objects, up Parameter of 12 moving objects. The base station 10 includes a computer (not shown) that is connected by the Internet channel to the IP server 13. PLC 1 through the antenna 2 is connected by radio to the base station 10 of the GSM network, and through it is connected via radio channels to the equipment 11 remote stationary objects and equipment 12 moving objects. Moving objects can be land (for example, cars, trailers), river and sea. The equipment 11 and 12 may include a telematic PLC 1.

Управляемыми устройствами 8 могут быть, например, устройства световой и звуковой сигнализации, электромагнитные замки, электромагнитные газовые краны.The controlled devices 8 can be, for example, light and sound signaling devices, electromagnetic locks, electromagnetic gas taps.

Навигационный приемник 3 соединен со входом 14 ПЛК 1, релейные датчики 5 соединены со входом 15 ПЛК 1, числовые датчики 6 - со входом 16 ПЛК 1, аналоговые датчики 7 - со входом 17 ПЛК 1.Navigation receiver 3 is connected to input 14 of PLC 1, relay sensors 5 are connected to input 15 of PLC 1, numeric sensors 6 are connected to input 16 of PLC 1, analog sensors 7 are connected to input 17 of PLC 1.

Навигационный приемник 3 может быть выполнен различным образом, например, на основе американской GPS-системы NAVSTAR, либо европейской системы Galileo, либо российской системы ГЛОНАСС.Navigation receiver 3 can be made in various ways, for example, based on the American GPS-system NAVSTAR, or the European Galileo system, or the Russian GLONASS system.

Навигационный приемник 3 через антенну 4 принимает от спутников навигационную информацию и передает в телематический ПЛК 1 входные навигационные сообщения (текстовые или числовые). Релейные датчики 5 подают в ПЛК 1 релейные, то есть однобитовые сигналы. Цифровые датчики 6 подают в ПЛК 1 числовые сигналы, каждый из которых представлен цифровым кодом числа. Аналоговые датчики 7 подают в ПЛК 1 аналоговые сигналы. Релейные датчики 5, числовые датчики 6 и аналоговые датчики 7 являются нетелематическими источниками входных сигналов, а навигационный приемник 3 является телематическим устройством. Информация, которой базовая станция 10 обменивается через антенну 2 с ПЛК 1, с аппаратурой 11 удаленных стационарных объектов и аппаратурой 12 подвижных объектов является телематической.The navigation receiver 3, through the antenna 4, receives navigation information from the satellites and transmits input navigation messages (text or numerical) to the telematics PLC 1. Relay sensors 5 are fed to the PLC 1 relay, that is, single-bit signals. Digital sensors 6 provide numerical signals to PLC 1, each of which is represented by a digital number code. Analog sensors 7 provide analog signals to PLC 1. Relay sensors 5, numerical sensors 6 and analog sensors 7 are non-telematic input sources, and the navigation receiver 3 is a telematic device. The information that the base station 10 exchanges through the antenna 2 with the PLC 1, with the equipment 11 of the remote stationary objects and the equipment 12 of the moving objects is telematic.

Телематический ПЛК 1 (фиг.2) содержит приемно-передающую антенну 2, микропроцессор 18, GSM/GPRS-модем 19, соединенный с антенной 2, энергетически независимую память 20, выполненную, например, как флэш-память, блок 21 сопряжения с управляемыми устройствами 8, блок 22 приема навигационных сообщений, блок 23 приема релейных сигналов, блок 24 приема числовых сигналов и блок 25 аналого-цифровых преобразователей (АЦП), принимающий аналоговые сигналы и преобразующие их в цифровые коды (числа). Микропроцессор 18 соединен с GSM/GPRS-модемом 19, с энергонезависиомой памятью 20, с блоком 21 сопряжения с управляемыми устройствами и с приемными блоками 22, 23, 24, 25. Линии связи микропроцессора 18 с блоком 22 и с GSM/GPRS-модемом 19 служат для передачи телематических сообщений, а блок 22 и GSM/GPRS-модем 19 являются телематическими устройствами. Блоки 23, 24, 25 являются для микропроцессора 18 нетелематическими источниками входных сигналов. В зависимости от конструктивных требований навигационный приемник 3 может быть включен в состав блока 22.The telematics PLC 1 (Fig. 2) contains a transmit-receive antenna 2, a microprocessor 18, a GSM / GPRS modem 19 connected to an antenna 2, an energy-independent memory 20, made, for example, as a flash memory, a block 21 for interfacing with controlled devices 8, a block 22 receiving navigation messages, a block 23 for receiving relay signals, a block 24 for receiving digital signals and a block 25 for analog-to-digital converters (ADCs) that receive analog signals and convert them to digital codes (numbers). The microprocessor 18 is connected to a GSM / GPRS modem 19, with non-volatile memory 20, with a block 21 for interfacing with controlled devices and with receiving blocks 22, 23, 24, 25. Communication lines of the microprocessor 18 with a block 22 and with a GSM / GPRS modem 19 serve to transmit telematic messages, and block 22 and GSM / GPRS-modem 19 are telematic devices. Blocks 23, 24, 25 are for non-telematics microprocessor 18 sources of input signals. Depending on the design requirements, the navigation receiver 3 may be included in the unit 22.

Описанные телематическая система (фиг.1) и входящий в нее телематический ПЛК 1 (фиг.2) могут применяться для решения многих практических задач в различных областях. В их число входят, например, следующие задачи:The described telematic system (Fig. 1) and the telematic PLC 1 included in it (Fig. 2) can be used to solve many practical problems in various fields. These include, for example, the following tasks:

- мониторинг транспортных средств с использованием навигационных данных, совмещенный с контролем различных величин (например, с контролем расхода топлива, электроэнергии, состояния окружающей среды и т.п.);- monitoring of vehicles using navigation data, combined with the control of various quantities (for example, with the control of fuel consumption, electricity, environmental conditions, etc.);

- контроль соответствия следования транспортного средства заданному маршруту и графику передвижения;- control of compliance of the vehicle following the given route and schedule;

- охрана транспортных средств;- protection of vehicles;

- контроль состояний механизмов транспортного средства и управление ими на расстоянии;- monitoring the status of vehicle mechanisms and controlling them from a distance;

- управление устройствами, в том числе расположенными на удаленных объектах;- device management, including those located at remote sites;

- регистрация и передача данных в области метеорологии;- registration and transmission of data in the field of meteorology;

- контроль экологической обстановки, мониторинг окружающей среды.- environmental monitoring, environmental monitoring.

Предлагаемый способ может быть реализован в микропроцессоре 18 телематического ПЛК 1 программно или программно-аппаратно.The proposed method can be implemented in the microprocessor 18 of the telematic PLC 1 software or software and hardware.

Этот способ содержит три основных этапа (фиг.3):This method contains three main stages (figure 3):

- настройка телематического ПЛК, представленная блоком 26 действий,- setting telematic PLC, represented by block 26 actions,

- прием входных нетелематических сигналов и телематических сообщений, представленный блоком 27 действий,- receiving input non-telematics signals and telematic messages, represented by a block of 27 actions,

- обработка входных данных (нетелематических сигналов и телематических сообщений) в соответствии с массивом инструкций, заданным на этапе настройки; эта обработка представлена блоком 28 действий.- processing of input data (non-telematic signals and telematic messages) in accordance with the array of instructions specified at the setup stage; this processing is represented by block 28 actions.

На этапе настройки (блок 26) в компьютерной памяти предварительно задают (например, записывают или прожигают):At the setup stage (block 26) in the computer memory is pre-set (for example, recorded or burned):

- массив инструкций,- an array of instructions,

- список заготовок выходных телематических сообщений,- a list of blanks output telematic messages,

- список адресов получателей выходных телематических сообщений,- a list of addresses of recipients of output telematic messages,

- список указателей величин и массивов, значения которых могут быть вставлены в выходные телематические сообщения,- a list of pointers to quantities and arrays, the values of which can be inserted into the output telematic messages,

- пороги абсолютной величины разности между текущим и предыдущим значениями входных сигналов.- thresholds of the absolute value of the difference between the current and previous values of the input signals.

Структура указанных инструкций, а также пороги абсолютной величины разности, заготовки выходных телематических сообщений, список адресатов и список указателей величин и массивов будут рассмотрены ниже. Все задаваемые в блоке 26 данные хранят в памяти микропроцессора 18 либо в энергонезависимой памяти 20.The structure of these instructions, as well as the thresholds of the absolute value of the difference, the preparation of the output telematic messages, the mailing list and the list of indexes of quantities and arrays will be discussed below. All data specified in block 26 is stored in the memory of microprocessor 18 or in non-volatile memory 20.

Рассмотрим действия, выполняемые в блоке 26, более подробно и проиллюстрируем структуры инструкций, кодов и сообщений формальной записью наборов (кортежей) величин.Consider the actions performed in block 26 in more detail and illustrate the structure of instructions, codes and messages by formal recording of sets (tuples) of quantities.

В блоке 26 задают массив инструкций, каждая из которых содержит код первого условия проверки текущего значения одного из входных сигналов, код второго условия проверки текущего значения того же самого или другого выходного сигнала и код задания выходной информации, формируемой при выполнении двух указанных условий. Каждую инструкцию I можно представить в виде набора (кортежа):In block 26, an array of instructions is set, each of which contains a code for the first condition for checking the current value of one of the input signals, a code for the second condition for checking the current value of the same or another output signal, and a code for setting the output information generated when these two conditions are met. Each instruction I can be represented as a set (tuple):

Figure 00000001
Figure 00000001

где С1 - код первого условия проверки;where C 1 is the code of the first verification condition;

С2 - код второго условия проверки;C 2 is the code of the second verification condition;

А - код задания выходной информации.A is the code for setting the output information.

Если выполняются условия, заданные кодами С1 и C2, то производят действия, заданные кодом А. Ниже будет показано, что предусмотрены случаи, когда выполнение условия, заданного кодом C2, не требуется.If the conditions specified by codes C 1 and C 2 are fulfilled, then the actions specified by code A are performed. Below it will be shown that there are cases when the fulfillment of the condition specified by code C 2 is not required.

Код С1 первого условия задают в виде набора, содержащего код источника входного сигнала, константу сравнения и код операции сравнения:Code C 1 of the first condition is set in the form of a set containing the source code of the input signal, the comparison constant and the code of the comparison operation:

Figure 00000002
Figure 00000002

где S1 - код источника входного сигнала;where S 1 is the source code of the input signal;

D1 - константа сравнения;D 1 is the constant of comparison;

Op1 - код операции сравнения;Op 1 is the code of the comparison operation;

здесь нижним индексом 1 помечены величины, относящиеся к первому условию.here the lower index 1 marks the values related to the first condition.

Код C2 второго условия задают в виде набора, содержащего код источника входного сигнала, константу сравнения и код операции сравнения:Code C 2 of the second condition is set in the form of a set containing the source code of the input signal, the constant of comparison and the code of the comparison operation:

Figure 00000003
Figure 00000003

где S2 - код источника входного сигнала;where S 2 is the source code of the input signal;

D2 - константа сравнения;D 2 is the constant of comparison;

Ор2 - код операции сравнения;Ор 2 - code of the comparison operation;

здесь нижним индексом 2 помечены величины, относящиеся ко второму условию.here the lower index 2 marks the values related to the second condition.

В качестве операции сравнения в первом (2) и втором (3) условиях используют любые необходимые арифметические операции сравнения («больше», «больше или равно», «меньше», «меньше или равно», «равно», «не равно»).As a comparison operation in the first (2) and second (3) conditions, any necessary arithmetic comparison operations are used (“more”, “more or equal”, “less”, “less than or equal”, “equal”, “not equal” )

Коду второго условия (3) придают признак z, например, значение этого кода, равное нулю, указывающий, что второе условие не подлежит проверке и считается выполненным.The code of the second condition (3) is given the attribute z, for example, the value of this code is zero, indicating that the second condition is not subject to verification and is considered fulfilled.

Для более экономного представления массива инструкций в них вместо кодов вторых условий указывают номера кодов вторых условий, а соответствующие этим номерам коды вторых условий (3) хранят в списке в памяти микропроцессора 18 (фиг.2). В этом случае инструкцию представляют в виде:For a more economical presentation of the array of instructions, instead of the codes of the second conditions, the codes of the second conditions are indicated in them, and the codes of the second conditions (3) corresponding to these numbers are stored in a list in the memory of the microprocessor 18 (Fig. 2). In this case, the instruction is presented in the form:

Figure 00000004
Figure 00000004

где I - инструкция;where I is the instruction;

С1 - код первого условия проверки;C 1 - code of the first verification condition;

c2 - номер кода второго условия проверки;c 2 is the code number of the second verification condition;

А - код задания выходной информации.A is the code for setting the output information.

При этом один из этих номеров с2, например, равный нулю, служит признаком z, которым указывают на то, что второе условие не подлежит проверке и считается выполненным.Moreover, one of these numbers with 2 , for example, equal to zero, serves as a sign of z, which indicates that the second condition is not subject to verification and is considered fulfilled.

Для нетелематических источников входных сигналов (релейных датчиков 5, числовых датчиков 6, то есть цифровых измерителей, и аналого-цифровых преобразователей 7) код источника входного сигнала задают в виде пары, содержащей код типа источника входного сигнала и код номера источника этого типа (так как в общем случае могут использоваться несколько источников одного типа):For non-telematical input sources (relay sensors 5, numerical sensors 6, that is, digital meters, and analog-to-digital converters 7), the input signal source code is set in the form of a pair containing the source code type of the input signal and the source number code of this type (since in general, several sources of the same type can be used):

Figure 00000005
Figure 00000005

где S - код источника входного сигнала;where S is the source code of the input signal;

T(s) - код типа источника входного сигнала;T (s) - type code of the input signal source;

N(sT) - код номера источника типа T(s).N (sT) - source number code of type T (s).

Предлагаемый способ позволяет использовать программно-реализованные цифровые измерители, например таймеры и счетчики. В этих случаях нетелематическими источниками выходного сигнала служат ячейки памяти, содержащие значения выходных сигналов этих измерителей. Код таких источников, как и код аппаратно реализованных нетелематических источников, задают в виде набора, содержащего код типа источника (например, код таймера) и код номера источника этого типа (например, код номера таймера).The proposed method allows the use of software-implemented digital meters, such as timers and counters. In these cases, non-telematical sources of the output signal are memory cells containing the values of the output signals of these meters. The code of such sources, as well as the code of hardware-implemented non-telematics sources, is set in the form of a set containing a source type code (for example, a timer code) and a source number code of this type (for example, a timer number code).

Входные телематические сообщения содержат кортеж переменных величин и код характеристики этого сообщения, определяющий этот кортеж (то есть набор переменных величин и порядок их расположения в кортеже). Поэтому при использовании телематических устройств (навигационных приемников или модемов) каждую переменную величину, содержащуюся в поступающих от них входных телематических сообщениях, выделяют их этих сообщений как телематический источник входного сигнала, а значение этой переменной величины интерпретируют как значение входного сигнала. В этом случае код такого источника входного сигнала формируют как набор, содержащий код типа телематического устройства, номер телематического устройства этого типа, код типа входного телематического сообщения, определяющий набор переменных величин в этом сообщении, и номер переменной величины в этом телематическом сообщении:Input telematic messages contain a tuple of variables and a characteristic code for this message that defines this tuple (that is, a set of variables and the order in which they are located in the tuple). Therefore, when using telematics devices (navigation receivers or modems), each variable contained in the incoming telematic messages is allocated from these messages as a telematic source of the input signal, and the value of this variable is interpreted as the value of the input signal. In this case, the code of such an input signal source is generated as a set containing a code of the type of a telematic device, a number of a telematic device of this type, a code of the type of an input telematic message defining a set of variables in this message, and a variable number in this telematic message:

Figure 00000006
Figure 00000006

где S - код телематического источника входного сигнала, выделенного из входного телематического сообщения;where S is the code of the telematic source of the input signal extracted from the input telematic message;

T(d) - код типа телематического устройства;T (d) - code type telematics device;

N(dT) - номер телематического устройства типа T(d);N (dT) - number of the telematic device of type T (d);

T(m) - код типа входного телематического сообщения;T (m) - type code of the input telematic message;

N(ν) - номер переменной величины во входном телематическом сообщении.N (ν) is the number of the variable in the input telematic message.

Набор, содержащий код типа телематического устройства, номер телематического устройства этого типа и код типа входного телематического сообщения, является кодом характеристики этого сообщения.A set containing a telematics device type code, a telematics device number of this type, and an input telematics message type code is a characteristic code for this message.

Типы телематических сообщений, указываемые в формуле (6) их кодом Т(m), являются стандартными или дополнительно определены изготовителями телематических устройств.The types of telematic messages indicated in formula (6) by their code T (m) are standard or additionally determined by the manufacturers of telematic devices.

Код А задания выходной информации задают в виде набора одного из двух типов. С помощью кода задания первого типа обеспечивают задание управляющих воздействий, а с помощью кода задания второго типа обеспечивают задание выходных телематических сообщений.Code A of the output information job is specified as a set of one of two types. Using the job code of the first type, the task of control actions is provided, and using the job code of the second type, the task of output telematic messages is set.

Код задания выходной информации первого типа задают в виде набора, содержащего код объекта, на который направлено управляющее воздействие, код вида воздействия и параметр воздействия, интерпретация которого зависит от кода объекта и кода вида воздействия. Этот набор первого типа имеет вид:The code for setting the output information of the first type is set in the form of a set containing the code of the object to which the control action is directed, the code of the type of influence, and the parameter of influence, the interpretation of which depends on the code of the object and the code of the type of influence. This set of the first type has the form:

Figure 00000007
Figure 00000007

где А - код задания выходной информации первого типа;where A is the code for setting the output information of the first type;

Ob - код объекта, на который направлено управляющее воздействие;Ob is the code of the object to which the control action is directed;

K - код вида воздействия;K is the code of the type of exposure;

Р - параметр воздействия.P is the exposure parameter.

Код Оb объекта задают в виде набора, содержащего код типа объекта и номер объекта этого типа (так как в общем случае могут использоваться несколько объектов одного типа):The object code Ob is set in the form of a set containing an object type code and an object number of this type (since in general several objects of the same type can be used):

Figure 00000008
Figure 00000008

где T(Ob) - код типа объекта;where T (Ob) is the object type code;

N(Ob) - номер объекта типа Т(Оb).N (Ob) is the number of an object of type T (Ob).

Объектами, на которые направлены управляющие воздействия, могут быть аппаратные блоки ПЛК, например, GSM/GPRS-модем 19, энергонезависимая память 20, блок 21 сопряжения с управляемыми устройствами 8 (фиг.2), программно реализованные блоки ПЛК 1, например, счетчики, таймеры, и внешние по отношению к ПЛК 1 устройства, например, навигационный приемник 3. К возможным видам управляющего воздействия относятся, например, сигналы на передачу сообщения через GSM/GPRS-модем 19, на запись данных в энергонезависимую память 20 и на чтение из нее, на изменение состояния программно реализованных счетчиков и сигналы управления, передаваемые через блок 21 сопряжения к управляемым устройствам 8. К параметрам Р воздействия относятся параметры команд воздействия, например, число записываемых или считываемых элементов энергонезависимой памяти 20, характеристики режима работы таймера.The objects to which control actions are directed may be PLC hardware blocks, for example, a GSM / GPRS modem 19, non-volatile memory 20, a block 21 for interfacing with controlled devices 8 (Fig. 2), software-implemented blocks of PLC 1, for example, counters, timers and devices external to the PLC 1, for example, the navigation receiver 3. Possible control actions include, for example, signals for transmitting a message through a GSM / GPRS modem 19, for writing data to and reading from non-volatile memory 20 to change the state of programmable counters and control signals transmitted through the interface unit 21 to the controlled devices 8. The parameters P of the action include the parameters of the action commands, for example, the number of written or read out elements of the non-volatile memory 20, the characteristics of the timer operation mode.

Код задания выходной информации второго типа задают в виде набора, содержащего код телематического устройства, принимающего сообщение, номер заготовки сообщения в заданном списке заготовок выходных телематических сообщений и номер адреса в заданном списке адресов получателей:The code for setting the output information of the second type is set in the form of a set containing the code of the telematic device that receives the message, the number of message blanks in the given list of blanks for the output telematic messages, and the address number in the specified list of recipient addresses:

Figure 00000009
Figure 00000009

где А - код задания выходной информации второго типа;where A is the code for setting the output information of the second type;

В - код телематического устройства, принимающего сообщение;B is the code of the telematic device receiving the message;

N(m) - номер заготовки сообщения в списке выходных телематических сообщений;N (m) is the number of message blanks in the list of output telematic messages;

N(a) - номер адреса в заданном списке адресов получателей.N (a) is the address number in the given list of recipient addresses.

Код Оb в формуле (7) и код В в формуле (9) являются идентификаторами задания соответственно первого и второго типа, а именно задания управляющего воздействия и задания отправления выходного телематического сообщения.The code Ob in the formula (7) and code B in the formula (9) are identifiers of the task of the first and second type, respectively, namely the task of the control action and the task of sending the output telematic message.

Как указывалось выше, список заготовок выходных телематических сообщений и список адресов получателей задают в блоке 26. В общем случае эти заготовки являются «полуфабрикатами» или «полупродуктами» по отношению к передаваемым выходным телематическим сообщениям.As indicated above, the list of blanks for the output telematic messages and the list of addresses of recipients are specified in block 26. In general, these blanks are “semi-finished products” or “intermediate products” with respect to the transmitted output telematic messages.

Каждую заготовку выходного телематического сообщения представляют в виде последовательности фиксированных частей передаваемого текста, признаков переменных частей этого текста, каждый из которых указывает, какую информацию вставлять на его место в соответствующую ему переменную часть передаваемого текста и признака конца сообщения. Каждую переменную часть текста формируют в соответствии с указанием, содержащимся в соответствующем ему признаке переменной части текста. Ниже показан пример заготовки М выходного телематического сообщения:Each blank of the output telematic message is represented as a sequence of fixed parts of the transmitted text, signs of variable parts of this text, each of which indicates what information to insert in its place in the corresponding variable part of the transmitted text and the end of the message sign. Each variable part of the text is formed in accordance with the indication contained in the corresponding attribute of the variable part of the text. The following is an example of a blank M of the output telematic message:

Figure 00000010
Figure 00000010

где Х - символы фиксированной части текста,where X are the characters of the fixed part of the text,

Y - признаки переменной части текста,Y - signs of the variable part of the text,

L - признак конца сообщения.L - sign of the end of the message.

Признак переменной части текста представляют одним из двух типов кодов, указывающих соответственно на два типа этих признаков.The sign of the variable part of the text is one of two types of codes, respectively indicating two types of these signs.

Признак переменной части первого типа задают в виде набора, содержащего идентификатор признака переменной части текста и номер указателя той величины или того массива в заданном списке этих указателей, значения которых должны быть вставлены в эту переменную часть передаваемого текста:The attribute of the variable part of the first type is specified in the form of a set containing the identifier of the attribute of the variable part of the text and the number of the pointer of that value or that array in the given list of these pointers, the values of which should be inserted into this variable part of the transmitted text:

Figure 00000011
Figure 00000011

где Y(l) - признак переменной части первого типа;where Y (l) is a sign of the variable part of the first type;

Е - идентификатор признака переменной части текста;E is the identifier of the attribute of the variable part of the text;

N(p) - номер указателя величины или массива в списке их указателей.N (p) is the number of the pointer of the quantity or array in the list of their pointers.

В качестве идентификатора Е используют, например, символ %.As identifier E, for example, the symbol% is used.

Как указывалось выше, список указателей величин и массивов задают в блоке 26.As indicated above, the list of pointers to values and arrays are set in block 26.

Указатели величин и массивов в этом списке могут быть заданы различным образом, например, в виде идентификаторов величин и массивов. Этим идентификаторам могут соответствовать характеристики величин и массивов.Pointers to quantities and arrays in this list can be specified in various ways, for example, in the form of identifiers of quantities and arrays. These identifiers may correspond to characteristics of quantities and arrays.

Признак переменной части второго типа задают в виде набора, содержащего индентификатор признака переменной части текста, код, по которому формируют контрольную информацию для передаваемого сообщения, например, контрольную сумму, которую и вставляют в переменную часть передаваемого текста:The attribute of the variable part of the second type is set in the form of a set containing the identifier of the attribute of the variable part of the text, the code used to generate the control information for the transmitted message, for example, the checksum, which is inserted into the variable part of the transmitted text:

Figure 00000012
Figure 00000012

где Y(2) - признак переменной части второго типа;where Y (2) is a sign of the variable part of the second type;

Е - идентификатор признака переменной части текста;E is the identifier of the attribute of the variable part of the text;

F - код, по которому формируют контрольную информацию для передаваемого выходного телематического сообщения.F is the code by which control information is generated for the transmitted output telematic message.

Например, если в качестве идентификатора Е используют символ %, а в качестве кода F - латинские символы «cc», то признак переменной части второго типа примет вид:For example, if the symbol% is used as the identifier E, and the Latin characters “cc” are used as the code F, then the variable part of the second type will take the form:

Figure 00000013
Figure 00000013

В списке адресов получателей указывают адреса, представленные в одном из следующих видов:In the list of recipient addresses indicate the addresses presented in one of the following types:

- номер телефона абонента,- phone number of the subscriber,

- телефонный номер модема,- telephone number of the modem,

- IP-адрес сервера и номер IP-порта,- server IP address and IP port number,

- имя (адрес) сайта в Интернете.- the name (address) of the site on the Internet.

Сообщения по этим адресам передают через GSM/GPRS-модем 19.Messages to these addresses are transmitted via the GSM / GPRS modem 19.

По номеру телефона абонента или модема, указанному в качестве адреса, посылают SMS-сообщения.SMS-messages are sent to the subscriber or modem phone number specified as the address.

По IP-адресу сервера и номеру ЕР-порта или по имени сайта и номеру IP-порта, указанным в качестве адреса, передают сообщение на IP-сервер 13 сети Интернет.A message is sent to the IP server 13 of the Internet using the server IP address and EP port number or the site name and IP port number specified as the address.

В блоке 26 для нетелематических источников входных сигналов задают порог абсолютной величины разности между текущим и предыдущим значением. Значения этих порогов могут храниться в памяти микропроцессора. Для релейных датчиков этот порог задают по умолчанию равным нулю.In block 26 for non-telematical input sources, a threshold for the absolute value of the difference between the current and previous value is set. The values of these thresholds can be stored in the microprocessor memory. For relay sensors, this threshold is set to zero by default.

Этап приема входных нетелематических сигналов и телематических сообщений (блок 27), в свою очередь, содержит несколько этапов, представленных следующими блоками действий (фиг.4):The step of receiving input non-telematics signals and telematic messages (block 27), in turn, contains several stages, represented by the following blocks of actions (figure 4):

- периодический опрос нетелематических источников входных сигналов (блок 29),- periodic interrogation of non-telematics input sources (block 29),

- периодическое сравнение текущих значений входных сигналов с их значениями, полученными в предыдущем периоде опроса (блок 30),- periodic comparison of the current values of the input signals with their values obtained in the previous polling period (block 30),

- запоминание текущих значений входных сигналов, изменившихся на величину, превышающую заданный порог, и кодов источников этих сигналов (блок 31),- storing the current values of the input signals that have changed by an amount exceeding a predetermined threshold, and source codes of these signals (block 31),

- прием и запоминание входных телематических сообщений (блок 32).- receiving and storing input telematic messages (block 32).

В блоках 31, 32 вырабатывают запросы q1 и q2 соответственно к блоку 28 на обработку входных данных в соответствии с массивом инструкций, заданным в блоке 26 (фиг.3).In blocks 31, 32, queries q 1 and q 2 are generated, respectively, to block 28 for processing input data in accordance with the array of instructions specified in block 26 (Fig. 3).

Рассмотрим действия, выполняемые в блоках 29, 30, 31, 32.Consider the actions performed in blocks 29, 30, 31, 32.

В блоке 29 производят периодический опрос нетелематических источников входных сигналов, то есть сигналов, вырабатываемых релейными датчиками 5, числовыми датчиками 6 и аналоговыми датчиками 7 (см. фиг.1 и 2) и периодически считывают набор текущих значений этих сигналов. Период опроса может быть задан для каждого типа нетелематического источника входного сигнала.In block 29, a periodic interrogation of non-telematical input signal sources is performed, that is, signals generated by relay sensors 5, numerical sensors 6 and analog sensors 7 (see FIGS. 1 and 2) and a set of current values of these signals are periodically read. A polling period can be set for each type of non-telematical input source.

В блоке 30 для нетелематических источников периодически сравнивают текущие значения входных сигналов соответственно со значениями одноименных входных сигналов, полученными в предыдущем периоде опроса. Для каждого такого источника производят проверку условия сравнения:In block 30 for non-telematics sources periodically compare the current values of the input signals, respectively, with the values of the same input signals obtained in the previous period of the survey. For each such source, the comparison conditions are checked:

Figure 00000014
Figure 00000014

где хi - текущее значение входного сигнала в i-й период опроса источника,where x i is the current value of the input signal in the i-th period of the source survey,

xi-1 - значение входного сигнала в предыдущий, (i-l)-й, период опроса того же источника,x i-1 - the value of the input signal to the previous, (il) -th, the polling period of the same source,

t - заданный порог абсолютной величины разности между текущим и предыдущим значениями.t is a given threshold of the absolute value of the difference between the current and previous values.

Для релейных датчиков по умолчанию принимают t=0.For relay sensors, t = 0 by default.

Если условие сравнения (14) выполняется, то в блоке 31 запоминают текущее значение х, входного сигнала и код этого источника. Таким образом, в блоке 31 запоминают текущие значения входных сигналов, изменившихся на величину, превышающую порог, заданный для каждого источника, и соответствующие им коды источников этих сигналов.If the comparison condition (14) is fulfilled, then in block 31 the current value of x, the input signal, and the code of this source are stored. Thus, in block 31, the current values of the input signals that have changed by an amount exceeding the threshold specified for each source and the corresponding source codes of these signals are stored.

Блок 31 вырабатывает запрос q1 на обработку запомненных пар <источник входного сигнала, текущее значение этого сигнала> в блоке 28.Block 31 generates a request q 1 for processing the stored pairs <input source, the current value of this signal> in block 28.

Запросы q1 вырабатывают либо после запоминания очередной указанной пары, либо после запоминания группы таких пар, либо после запоминания всех указанных пар, полученных в очередном периоде опроса. В рассматриваемом ниже примере (фиг.5) принято, что эти запросы вырабатывают после запоминания всех указанных пар.Queries q 1 are generated either after storing the next specified pair, or after storing a group of such pairs, or after storing all of the indicated pairs received in the next survey period. In the example considered below (figure 5), it is assumed that these requests are generated after storing all of these pairs.

При использовании телематических устройств, например, навигационных приемников или модемов, для получения входных сигналов, в блоке 32 запоминают все принятое телепатическое сообщение, а сигнал о завершении его принятия подают в качестве запроса q2 на обработку этого сообщения в блоке 28.When using telematics devices, for example, navigation receivers or modems, to receive input signals, in block 32 all the received telepathic message is stored, and the signal on completion of its acceptance is sent as a q 2 request for processing this message in block 28.

Если поступило несколько запросов на обработку в блоке 28, то их выполняют в порядке поступления или в каком-либо другом заданном порядке, например, в соответствии с их заданными приоритетами. В блоке 33 (фиг.5) производят чтение очередного запроса qk, где k - тип запроса: если k=1, то это запрос на обработку изменившихся нетелематических входных сигналов, полученных в некотором периоде опроса, а если k=2, то это запрос на обработку входного телематического сообщения.If several processing requests are received in block 28, then they are executed in the order of receipt or in some other specified order, for example, in accordance with their given priorities. In block 33 (Fig. 5), the next request q k is read, where k is the request type: if k = 1, then this is a request for processing the changed non-telematical input signals received in a certain polling period, and if k = 2, then this request for processing the input telematic message.

Далее обработку входных данных в блоке 28 производят согласно примеру структурной схемы на фиг.5.Next, the processing of the input data in block 28 is carried out according to an example of the structural diagram in Fig. 5.

В элементе 34 проверяют значение типа k очередного запроса.At element 34, a value of type k of the next request is checked.

Если k=1, то в элементе 35 величине - счетчику p присваивают число n1 входных сигналов, изменившихся в некотором периоде опроса, и их нетелематических источников.If k = 1, then in element 35, the counter p is assigned the number n 1 of input signals that have changed in a certain period of the survey, and their non-telematics sources.

При k=1 в блоке 36 производят чтение очередной пары <код нетелематического источника, текущее значение изменившегося нетелематического входного сигнала>. Код этого источника формируют в виде пары, содержащей код типа источника входного сигнала и код номера источника этого типа.When k = 1, in block 36, the next pair is read <code of the non-telematics source, the current value of the changed non-telematics input signal>. The code of this source is formed in the form of a pair containing a code of the type of the input signal source and a code of the source number of this type.

Если k=2, то в элементе 37 счетчику р присваивают число n2 переменных величин в телематическом сообщении, которые интерпретируют как источники входных сигналов.If k = 2, then in element 37, the counter p is assigned the number n 2 variables in the telematic message, which are interpreted as sources of input signals.

При k=2 в блоке 38 выделяют из принятого телематического сообщения очередную переменную величину как телематический источник входного сигнала, а значение этой переменной интерпретируют как значение входного сигнала. Для этого формируют очередную пару <код источника переменной величины в телематическом сообщении, значение этой переменной> и производят чтение этой пары. Код этого источника формируют как набор, содержащий код типа телематического устройства, номер устройства этого типа, код типа телематического сообщения, определяющий набор переменных величин в этом сообщении, и номер переменной величины в этом сообщении.When k = 2, in block 38, the next variable is extracted from the received telematic message as a telematic source of the input signal, and the value of this variable is interpreted as the value of the input signal. To do this, form the next pair <source code of a variable in a telematic message, the value of this variable> and read this pair. The code of this source is formed as a set containing a code of the type of a telematic device, a device number of this type, a code of a type of a telematic message defining a set of variables in this message, and the number of a variable in this message.

Далее обработку пары <код источника, текущее значение входного сигнала> производят одинаково для случаев k=1 и k=2.Further processing of the pair <source code, the current value of the input signal> is carried out identically for the cases k = 1 and k = 2.

В элементе 39 величине - счетчику r присваивают число h инструкций в заданном массиве инструкций. В элементе 40 осуществляют чтение очередной инструкции, в блоке 41 осуществляют обработку пары <код источника входного сигнала, текущее значение этого сигнала> по одной, очередной, инструкции. Пример структурной схемы обработки в блоке 41 показан на фиг.6 и будет рассмотрен ниже.In element 39, the value of counter r is assigned the number h of instructions in a given array of instructions. In element 40, the next instruction is read, in block 41, the pair <source code of the input signal, the current value of this signal> is processed by one, next, instruction. An example of a block diagram of the processing in block 41 is shown in FIG. 6 and will be discussed below.

В элементе 42 уменьшают значение счетчика r на единицу. В элементе 43 проверяют равенство нулю значения счетчика r. Если r не равно нулю, то снова переходят к чтению следующей инструкции в элементе 40. Если r равно нулю, то в элементе 44 уменьшают значение счетчика р на единицу и затем в элементе 45 проверяют равенство нулю значения счетчика р. Если р не равно нулю, то продолжают обработку запроса qk, для чего в элементе 46 проверяют, какой тип запроса выполняется k=1 или k=2, и в соответствии с этим переходят к выполнению действий в блоках 36 или 38. Если значение р равно нулю, то это означает, что обработка очередного запроса qk закончена. В этом случае переходят к чтению очередного запроса qk в блоке 33.In element 42, the counter r is reduced by one. In element 43, the counter value r is set to zero. If r is not equal to zero, then we again go on to read the next instruction in element 40. If r is equal to zero, then we reduce the value of counter p by one in element 44 and then check in element 45 that the value of counter p is zero. If p is not zero, then processing continues to request q k, for which the element 46 is checked which type of request is performed k = 1 or k = 2, and accordingly proceeds to action block 36 or 38. If the value of p is zero, then this means that the processing of the next request q k is finished. In this case, they proceed to reading the next request q k in block 33.

Таким образом, по запросу на обработку каждого текущего значения входного сигнала, соответствующую заданному массиву инструкций, просматривают весь этот массив и выполняют (то есть интерпретируют) каждую инструкцию.Thus, upon a request for processing each current value of the input signal corresponding to a given array of instructions, they look through this entire array and execute (i.e. interpret) each instruction.

Обработку входного сигнала по одной инструкции I, определенной формулой (1), производят в блоке 41 в соответствии с примером структурной схемы на фиг.6 следующим образом. В элементе 47 проверяют выполнение первого условия С1. Если это условие не выполняется («нет»), то заканчивают обработку. Если это условие выполняется («да»), то в элементе 48 проверяют, есть ли необходимость проверять выполнение второго условия С2, то есть задан ли признак Z, указывающий, что второе условие не подлежит проверке и считается выполненным. Об этом признаке сказано в пояснениях к формулам (3) и (4). Примем, что этот признак z задан («да»), если z=0. В этом случае нет необходимости проверки второго условия и переходят к выполнению действий блока 50, в котором формируют и отправляют выходную информацию в соответствии с кодом А задания. Если признак z не задан («нет»), то есть, если z не равно 0, то проверка второго условия необходима. В этом случае в блоке 49 осуществляют проверку второго условия С2. Если второе условие не выполняется («нет»), то заканчивают обработку входного сигнала. Если второе условие выполняется («да»), то переходят к выполнению указанных выше действий в блоке 50. Проверку первого и второго условий и формирование выходной информации осуществляют в соответствии с указанными выше формулами (2) - (13).Processing the input signal according to one instruction I, defined by formula (1), is performed in block 41 in accordance with the example of the structural diagram in FIG. 6 as follows. At element 47, the fulfillment of the first condition C 1 is checked. If this condition is not satisfied ("no"), then the processing is completed. If this condition is satisfied (“yes”), then in element 48 it is checked whether there is a need to verify the fulfillment of the second condition C 2 , that is, if the characteristic Z is specified, indicating that the second condition is not subject to verification and is considered to be fulfilled. This feature is mentioned in the explanations to formulas (3) and (4). We assume that this characteristic z is given (yes) if z = 0. In this case, there is no need to check the second condition and proceed to the actions of block 50, in which the output information is generated and sent in accordance with the task code A. If the attribute z is not specified ("no"), that is, if z is not equal to 0, then the verification of the second condition is necessary. In this case, in block 49, the second condition C 2 is checked. If the second condition is not satisfied ("no"), then the processing of the input signal is completed. If the second condition is satisfied (“yes”), then proceed to the execution of the above actions in block 50. The verification of the first and second conditions and the formation of output information is carried out in accordance with the above formulas (2) - (13).

Таким образом, при выполнении (то есть при интерпретации) каждой инструкции проверяют выполнение первых условий; затем в случае выполнения любого первого условия, заданного в любой из указанных инструкций, при заданном признаке необходимости проверки второго условия, проверяют выполнение второго условия, заданного в той же инструкции, а в случае выполнения этого второго условия и в случае, когда не задан признак необходимости проверки второго условия, формируют выходную информацию, код задания которой указан в той же инструкции.Thus, when executing (that is, interpreting) each instruction, the fulfillment of the first conditions is checked; then, if any first condition specified in any of the indicated instructions is fulfilled, if the second condition is necessary to verify the second condition, then the second condition specified in the same instruction is checked, and if this second condition is fulfilled, if the sign of necessity is not specified checking the second condition, form the output information, the task code of which is specified in the same instruction.

Claims (17)

1. Способ формирования выходной информации по состоянию множества входных сигналов в системах сбора, преобразования, передачи данных и управления, состоящий в том, что производят периодический опрос нетелематических источников входных сигналов, например аналого-цифровых преобразователей, числовых и релейных датчиков, и периодически считывают набор текущих значений этих сигналов, отличающийся тем, что
в компьютерной памяти задают массив инструкций, каждая из которых содержит код первого условия проверки текущего значения одного из входных сигналов, код второго условия проверки текущего значения того же или другого входного сигнала и код задания выходной информации, формируемой при выполнении двух указанных условий;
в компьютерной памяти задают список заготовок выходных телематических сообщений, список адресов получателей, к которым могут быть направлены эти сообщения, и список указателей величин и массивов, значения которых могут быть вставлены в эти сообщения;
для нетелематических источников входных сигналов в компьютерной памяти задают пороги абсолютной величины разности между текущим и предыдущим значениями;
для нетелематических источников входных сигналов периодически сравнивают текущие значения входных сигналов соответственно со значениями одноименных входных сигналов, полученными в предыдущем периоде опроса, запоминают коды источников входных сигналов, изменившихся на величину, превысившую порог, заданный для каждого источника, и текущие значения этих сигналов, после чего подают запросы на обработку этих изменившихся сигналов, соответствующую массиву инструкций;
при использовании телематических устройств, например, навигационных приемников и модемов, для получения входных сигналов, запоминают все принятое от них телематическое сообщение, содержащее кортеж переменных величин и код характеристики этого сообщения, определяющий указанный кортеж, после чего сигнал о завершении его принятия используют в качестве запроса на обработку этого сообщения, соответствующую массиву инструкций, и при этом каждую переменную величину, содержащуюся в принятом входном телематическом сообщении, выделяют из этого сообщения как телематический источник входного сигнала, а значение этой переменной величины интерпретируют как значение входного сигнала;
по запросу на обработку каждого текущего значения входного сигнала, соответствующую массиву инструкций, просматривают весь этот массив и выполняют каждую инструкцию, для чего проверяют выполнение первых условий;
затем в случае выполнения любого первого условия, заданного в любой из указанных инструкций, при заданном признаке необходимости проверки второго условия проверяют выполнение второго условия, заданного в той же инструкции, а в случае выполнения этого второго условия и в случае, когда не задан признак необходимости проверки второго условия, формируют выходную информацию, код задания которой указан в той же инструкции.
1. The method of generating output information on the state of the set of input signals in the systems for collecting, converting, transmitting data and control, which consists in periodically polling non-telematical sources of input signals, for example analog-to-digital converters, numerical and relay sensors, and periodically read the set current values of these signals, characterized in that
an array of instructions is set in computer memory, each of which contains a code for the first condition for checking the current value of one of the input signals, a code for the second condition for checking the current value of the same or another input signal, and a code for setting the output information generated when these two conditions are met;
in the computer memory, a list of blanks for the output telematic messages is specified, a list of recipient addresses to which these messages can be sent, and a list of pointers to quantities and arrays whose values can be inserted into these messages;
for non-telematical input sources in computer memory, thresholds for the absolute value of the difference between the current and previous values are set;
for non-telematical input sources, the current values of the input signals are periodically compared, respectively, with the values of the same input signals obtained in the previous survey period, the codes of the sources of input signals that have changed by an amount exceeding the threshold specified for each source and the current values of these signals are stored, after which submit requests for processing these changed signals corresponding to an array of instructions;
when using telematic devices, for example, navigation receivers and modems, to receive input signals, they memorize all the telematic message received from them, containing a tuple of variables and a characteristic code of this message defining the specified tuple, after which the signal to complete its adoption is used as a request to process this message, corresponding to an array of instructions, and each variable contained in the received input telematic message is isolated from this of telematic message as the input source, and the value of this variable is interpreted as an input signal value;
upon a request for processing each current value of the input signal corresponding to an array of instructions, they look through this entire array and execute each instruction, for which they check the fulfillment of the first conditions;
then, if any first condition specified in any of the above instructions is fulfilled, if the sign of the need to verify the second condition is specified, then the second condition specified in the same instruction is checked, and if this second condition is met, if the sign of the need to check is not specified the second condition, form the output information, the job code of which is specified in the same instructions.
2. Способ по п.1, отличающийся тем, что каждый код первого условия задают в виде набора, содержащего код источника входного сигнала, константу сравнения и код операции сравнения, сравнивают на совпадение этот код источника с кодами нетелематических источников изменившихся входных сигналов и с кодами телематических источников входных сигналов и в случае совпадения этих кодов выдают сигнал о выполнении первого условия, если константа и код операции сравнения равны нулю, а если константа и код операции сравнения не равны нулю, то сравнивают указанную константу с соответствующим этому коду источника текущим значением входного сигнала в соответствии с указанной операцией сравнения, и если результат этой операции удовлетворяет условию этого сравнения, то выдают сигнал о выполнении первого условия.2. The method according to claim 1, characterized in that each code of the first condition is set in the form of a set containing an input signal source code, a comparison constant and a comparison operation code, and this source code is compared for coincidence with codes of non-telematic sources of changed input signals and with codes telematic sources of input signals and if these codes coincide, they give a signal about the fulfillment of the first condition, if the constant and the code of the comparison operation are equal to zero, and if the constant and the code of the comparison operation are not equal to zero, then compare the indicated constant with the current value of the input signal corresponding to this source code in accordance with the specified comparison operation, and if the result of this operation satisfies the condition of this comparison, a signal is issued that the first condition is fulfilled. 3. Способ по п.2, отличающийся тем, что
код нетелематического источника входного сигнала задают в виде набора, содержащего код типа источника входного сигнала и код номера источника этого типа.
3. The method according to claim 2, characterized in that
the code of the non-telematical input source is set in the form of a set containing the code of the type of the input signal source and the code of the source number of this type.
4. Способ по п.2, отличающийся тем, что
код телематического источника входного сигнала формируют как набор, содержащий код типа телематического устройства, номер устройства этого типа, код типа телематического сообщения, определяющий набор переменных величин в этом сообщении, и номер переменной величины в этом сообщении.
4. The method according to claim 2, characterized in that
the code of the telematic source of the input signal is formed as a set containing a code of the type of a telematic device, a device number of this type, a code of the type of a telematic message defining a set of variables in this message, and the number of a variable in this message.
5. Способ по п.2, отличающийся тем, что
в качестве операции сравнения используют любую необходимую арифметическую операцию сравнения.
5. The method according to claim 2, characterized in that
As the comparison operation, any necessary arithmetic comparison operation is used.
6. Способ по п.1, отличающийся тем, что
каждый код второго условия задают в виде набора, содержащего код источника входного сигнала, константу сравнения и код операции сравнения, сравнивают текущее значение входного сигнала, соответствующего коду его источника, с указанной константой в соответствии с указанной операцией сравнения и в случае, если результат этой операции удовлетворяет условию этого сравнения, то выдают сигнал о выполнении второго условия.
6. The method according to claim 1, characterized in that
each code of the second condition is set in the form of a set containing the source code of the input signal, the comparison constant and the code of the comparison operation, the current value of the input signal corresponding to the code of its source is compared with the specified constant in accordance with the specified comparison operation and if the result of this operation satisfies the condition of this comparison, then they give a signal about the fulfillment of the second condition.
7. Способ по п.6, отличающийся тем, что
код нетелематического источника входного сигнала задают в виде набора, содержащего код типа источника входного сигнала и код номера источника этого типа.
7. The method according to claim 6, characterized in that
the code of the non-telematical input source is set in the form of a set containing the code of the type of the input signal source and the code of the source number of this type.
8. Способ по п.6, отличающийся тем, что
код телематического источника входного сигнала формируют как набор, содержащий код типа телематического устройства, номер устройства этого типа, код типа телематического сообщения, определяющий набор переменных величин в этом сообщении, и номер переменной величины в этом сообщении.
8. The method according to claim 6, characterized in that
the code of the telematic source of the input signal is formed as a set containing a code of the type of a telematic device, a device number of this type, a code of the type of a telematic message defining a set of variables in this message, and the number of a variable in this message.
9. Способ по п.6, отличающийся тем, что
в качестве операции сравнения используют любую необходимую арифметическую операцию сравнения.
9. The method according to claim 6, characterized in that
As the comparison operation, any necessary arithmetic comparison operation is used.
10. Способ по п.1, отличающийся тем, что
коду второго условия придают признак, например, значение этого кода, равное нулю, указывающий, что второе условие не подлежит проверке и считается выполненным.
10. The method according to claim 1, characterized in that
the code of the second condition is given a sign, for example, the value of this code is zero, indicating that the second condition is not subject to verification and is considered fulfilled.
11. Способ по п.1, отличающийся тем, что
в инструкциях указывают номера кодов вторых условий, а коды вторых условий хранят в списке, и при этом одним из этих номеров, например, нулевым, указывают на то, что второе условие не подлежит проверке и считается выполненным.
11. The method according to claim 1, characterized in that
the instructions indicate the codes numbers of the second conditions, and the codes of the second conditions are stored in the list, and one of these numbers, for example, zero, indicates that the second condition is not subject to verification and is considered fulfilled.
12. Способ по п.1, отличающийся тем, что
код задания выходной информации задают в виде набора, содержащего код объекта, на который направлено управляющее воздействие, код вида воздействия и параметр воздействия, интерпретация которого зависит от кода объекта и кода вида воздействия.
12. The method according to claim 1, characterized in that
the output information setting code is set in the form of a set containing the code of the object to which the control action is directed, the code of the type of influence and the parameter of the impact, the interpretation of which depends on the code of the object and the code of the type of effect.
13. Способ по п.12, отличающийся тем, что
код объекта задают в виде набора, содержащего код типа объекта и номер объекта этого типа.
13. The method according to p. 12, characterized in that
the object code is set in the form of a set containing an object type code and an object number of this type.
14. Способ по п.1, отличающийся тем, что
код задания выходной информации задают в виде набора, содержащего код телематического устройства, передающего сообщение, номер заготовки сообщения в заданном списке заготовок выходных телематических сообщений и номер адреса получателя в заданном списке адресов.
14. The method according to claim 1, characterized in that
the output information setting code is set in the form of a set containing the code of the telematic device transmitting the message, the message blank number in the given list of blank messages for telematics messages, and the recipient address number in the specified address list.
15. Способ по п.14, отличающийся тем, что
каждую заготовку сообщения в списке заготовок выходных телематических сообщений задают в виде последовательности фиксированных частей передаваемого текста и признаков переменных частей этого текста, каждый из которых указывает какую информацию вставлять на его место в соответствующую ему переменную часть передаваемого текста, причем формируют каждую переменную часть текста в соответствии с указанием, содержащимся в соответствующем ему признаке переменной части текста.
15. The method according to 14, characterized in that
each message blank in the list of blanks for telematic messages is set in the form of a sequence of fixed parts of the transmitted text and signs of variable parts of this text, each of which indicates what information to insert in its place in the corresponding variable part of the transmitted text, and each variable part of the text is formed in accordance with with the indication contained in the corresponding attribute of the variable part of the text.
16. Способ по п.15, отличающийся тем, что
признак переменной части передаваемого текста задают в виде набора, содержащего идентификатор этого признака и номер указателя той величины или того массива в заданном списке этих указателей, значения которых вставляют в эту переменную часть передаваемого текста.
16. The method according to clause 15, wherein
the sign of the variable part of the transmitted text is set in the form of a set containing the identifier of this sign and the number of the pointer of that value or that array in the given list of these pointers whose values are inserted into this variable part of the transmitted text.
17. Способ по п.15, отличающийся тем, что
признак переменной части передаваемого текста задают в виде набора, содержащего идентификатор этого признака и код, служащий командой для формирования контрольной информации передаваемого сообщения, например, контрольной суммы, которую вставляют в эту переменную часть передаваемого текста.
17. The method according to clause 15, wherein
the sign of the variable part of the transmitted text is set in the form of a set containing the identifier of this sign and a code that serves as a command for generating the control information of the transmitted message, for example, the checksum that is inserted into this variable part of the transmitted text.
RU2007145364/09A 2007-12-10 2007-12-10 Method of generating output information from state of several input signals in systems for collecting, converting, transferring data and control RU2362211C1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
RU2007145364/09A RU2362211C1 (en) 2007-12-10 2007-12-10 Method of generating output information from state of several input signals in systems for collecting, converting, transferring data and control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
RU2007145364/09A RU2362211C1 (en) 2007-12-10 2007-12-10 Method of generating output information from state of several input signals in systems for collecting, converting, transferring data and control

Publications (1)

Publication Number Publication Date
RU2362211C1 true RU2362211C1 (en) 2009-07-20

Family

ID=41047300

Family Applications (1)

Application Number Title Priority Date Filing Date
RU2007145364/09A RU2362211C1 (en) 2007-12-10 2007-12-10 Method of generating output information from state of several input signals in systems for collecting, converting, transferring data and control

Country Status (1)

Country Link
RU (1) RU2362211C1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2693266C2 (en) * 2015-01-12 2019-07-01 ФОРД ГЛОУБАЛ ТЕКНОЛОДЖИЗ, ЭлЭлСи Effective telematic data unloading

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2081452C1 (en) * 1994-08-22 1997-06-10 Тамази Георгиевич Самхарадзе Device which gathers, converts and transmits results of measurement of physical environment characteristics
RU2173888C1 (en) * 2000-10-09 2001-09-20 Громаков Юрий Алексеевич Telematic system
RU46873U1 (en) * 2005-03-01 2005-07-27 Общество с ограниченной ответственностью "Научно-производственная фирма "ГЕЙЗЕР" TELEMATIC VIDEO SURVEILLANCE AND ALARM SYSTEM
US6957133B1 (en) * 2003-05-08 2005-10-18 Reynolds & Reynolds Holdings, Inc. Small-scale, integrated vehicle telematics device
US7091903B2 (en) * 2004-01-09 2006-08-15 Lg Electronics, Inc. Apparatus and method for processing signal of telematics terminal
RU67748U1 (en) * 2006-12-26 2007-10-27 Евгений Георгиевич Соловьев TELEMATIC SYSTEM OF VISUAL AND HARDWARE MONITORING

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2081452C1 (en) * 1994-08-22 1997-06-10 Тамази Георгиевич Самхарадзе Device which gathers, converts and transmits results of measurement of physical environment characteristics
RU2173888C1 (en) * 2000-10-09 2001-09-20 Громаков Юрий Алексеевич Telematic system
US6957133B1 (en) * 2003-05-08 2005-10-18 Reynolds & Reynolds Holdings, Inc. Small-scale, integrated vehicle telematics device
US7091903B2 (en) * 2004-01-09 2006-08-15 Lg Electronics, Inc. Apparatus and method for processing signal of telematics terminal
RU46873U1 (en) * 2005-03-01 2005-07-27 Общество с ограниченной ответственностью "Научно-производственная фирма "ГЕЙЗЕР" TELEMATIC VIDEO SURVEILLANCE AND ALARM SYSTEM
RU67748U1 (en) * 2006-12-26 2007-10-27 Евгений Георгиевич Соловьев TELEMATIC SYSTEM OF VISUAL AND HARDWARE MONITORING

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2693266C2 (en) * 2015-01-12 2019-07-01 ФОРД ГЛОУБАЛ ТЕКНОЛОДЖИЗ, ЭлЭлСи Effective telematic data unloading

Similar Documents

Publication Publication Date Title
Jimoh et al. A vehicle tracking system using greedy forwarding algorithms for public transportation in urban arterial
CN111507541B (en) Goods quantity prediction model construction method, goods quantity measurement device and electronic equipment
CN103824181A (en) System and method for obtaining mobile payment information
CN111107492A (en) Multi-device interaction method, medium, terminal and system based on UWB
CN105246031A (en) Information intelligence prompting method of terminal equipment and system
CN112132725A (en) Vehicle returning judgment method and device and electronic equipment
CN202770447U (en) Indoor intelligent positioning navigation system
RU2362211C1 (en) Method of generating output information from state of several input signals in systems for collecting, converting, transferring data and control
CN116663432B (en) Hundred-meter height wind speed forecast correction downscaling method and device
CN110658542A (en) Method, device, equipment and storage medium for positioning and identifying automatic driving automobile
CN203966185U (en) A kind of system of obtaining mobile payment information
CN104751260A (en) System and method for identifying abnormal reading of meter
CN102236098A (en) Auxiliary positioning method and device for global positioning system
CN108376320A (en) Fulfilling data managing method and device
Kedia Localised weather monitoring system
Hao et al. A novel three-dimensional coordinate positioning algorithm based on factor graph
CN103577485A (en) Master and slave mode inquiry system and method
RU2012128270A (en) METHOD FOR REMOTE SURVEILLANCE AND MANAGEMENT OF VEHICLES, DEVICE FOR TRACKING AND MANAGEMENT OF POSSIBILITY OF MOVEMENT OF VEHICLES, CENTRAL MONITORING DEVICE, METHOD FOR TRAINING
CN110651305A (en) System and method for vehicle value assessment
AU2022389872B2 (en) System and method for assisting management of product after shipment
CN216621188U (en) Navigation positioning system for unmanned automobile
CN206058539U (en) Parking service end, mobile unit and parking service system
CN115913932A (en) Receiver parameter remote control system based on high in clouds
CN103116970A (en) Automatic acquisition, remote transmission and processing system and method for gauge data
Vasaki et al. An IoT based college bus trailing and surveiling system

Legal Events

Date Code Title Description
MM4A The patent is invalid due to non-payment of fees

Effective date: 20101211

QB4A Licence on use of patent

Free format text: LICENCE

Effective date: 20130415

MM4A The patent is invalid due to non-payment of fees

Effective date: 20181211