CN113099551A - Communication method based on self-adaptive Beidou communication node - Google Patents

Communication method based on self-adaptive Beidou communication node Download PDF

Info

Publication number
CN113099551A
CN113099551A CN202110385538.9A CN202110385538A CN113099551A CN 113099551 A CN113099551 A CN 113099551A CN 202110385538 A CN202110385538 A CN 202110385538A CN 113099551 A CN113099551 A CN 113099551A
Authority
CN
China
Prior art keywords
beidou
equipment
user equipment
sending
interface
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202110385538.9A
Other languages
Chinese (zh)
Other versions
CN113099551B (en
Inventor
周长军
张国良
隋超
杨辉
沈圆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Taiji Jiangtai Technology Development Co ltd
Original Assignee
Beijing Taiji Jiangtai Technology Development Co ltd
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 Beijing Taiji Jiangtai Technology Development Co ltd filed Critical Beijing Taiji Jiangtai Technology Development Co ltd
Priority to CN202110385538.9A priority Critical patent/CN113099551B/en
Publication of CN113099551A publication Critical patent/CN113099551A/en
Application granted granted Critical
Publication of CN113099551B publication Critical patent/CN113099551B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/04Large scale networks; Deep hierarchical networks
    • H04W84/06Airborne or Satellite Networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Astronomy & Astrophysics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

A communication method based on a self-adaptive Beidou communication node is characterized in that activation of Beidou user equipment required by a user designates or activates equipment with the best performance in the Beidou user equipment for the user; according to the method, active identification of connected Beidou user equipment is realized through Beidou self-adaptive module software in the self-adaptive Beidou communication node; actively detecting the connection state of the currently connected Beidou user equipment, such as disconnection and equipment failure; simultaneously managing a plurality of Beidou equipment with different models; a plurality of Beidou user equipment in shielded connection are managed into one device in a unified mode.

Description

Communication method based on self-adaptive Beidou communication node
Technical Field
The invention relates to the field of communication, in particular to a communication method based on a self-adaptive Beidou communication node.
Background
The Beidou service station generally adopts a computer (a server or a common computer and the like) to be connected with each Beidou user equipment such as a Beidou data transmission standard interface, a Beidou all-in-one machine, a Beidou commander or a Beidou multi-card machine and the like, communicates with the Beidou equipment connected with the Beidou service station according to an interface protocol defined by a manufacturer, and realizes the functions of monitoring the positions of other Beidou equipment, short message communication with other Beidou equipment and the like by applying an RNSS satellite radio navigation system and an RDSS satellite radio measurement service.
The current big dipper service station is direct to connect single big dipper equipment or a plurality of big dipper equipment of the same model with serial data transmission standard interface, and these big dipper service stations only need connect this single big dipper equipment or a plurality of big dipper equipment of the same model and communicate and send big dipper short message with same serial ports configuration, same big dipper equipment agreement interface and adoption same frequency of sending.
In addition, some big dipper service stations use and provide manual switching big dipper equipment function, and it has realized a plurality of big dipper equipment protocol interfaces that can support, but must the serial ports configuration of the big dipper equipment of manual setting being connected with it and the protocol interface of the big dipper equipment of manual selection ground of being connected with it, just can connect the big dipper equipment of new access and communicate with it, but can not communicate with the big dipper equipment of a plurality of different models simultaneously. For example, the application program on the Beidou service station manually sets serial port settings of a single Beidou device of type A or a plurality of Beidou devices of type A, then manually selects a protocol interface matched with type A, and the application program on the Beidou service station is connected with the Beidou device of type A for communication; at this moment, this big dipper service station will switch to B model big dipper equipment, then will manually close all A model big dipper equipment serial ports of connecting earlier, disconnection A model big dipper equipment, the big dipper equipment of serial ports connection B model, the serial ports setting of a plurality of big dipper equipment of the single big dipper equipment of manual setting B model or B model earlier, then the protocol interface that manual selection matches with the B model, the communication of B model big dipper equipment with it is just connected to the application on this big dipper service station.
Therefore, on one hand, the old Beidou equipment is fully utilized, newly purchased Beidou equipment is used, the fault equipment is removed, and a technology for flexibly accessing and removing various Beidou equipment of different manufacturers, different types, different models and different protocols is required; on the other hand, according to the current common usage, a computer is provided for each type of Beidou equipment to be connected and communicated with the Beidou equipment, so that the Beidou equipment is clumsy and wastes computer resources, and a technology that one computer can be simultaneously connected with and communicated with various Beidou equipment of different manufacturers, different types and different protocols is needed; in addition, civilian big dipper short message's particularity, general ordinary big dipper card is that every minute sends a big dipper short message, special commander card can only insert big dipper commander machine and use and can only send a big dipper short message every 50 seconds, big dipper multiple card machine then has its special interval requirement, for example 16 big dipper multiple card machines send the interval and need 3 seconds at least, 16 big dipper short messages can be sent every minute, these different grade type big dipper equipment require differently to the interval of sending, it reaches the maximum sending efficiency to need effectual control to send the interval.
Various problems may be encountered, such as: the fixed serial port setting of each type of Beidou equipment is specified; the first generation and the second generation of Beidou different standard protocol interface versions, and equipment provided by each manufacturer of Beidou user equipment supports standard protocols; additionally adding custom private protocol data or completely custom private protocol; the Beidou devices of different types have different requirements on the sending intervals.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a communication method based on a self-adaptive Beidou communication node, which can effectively solve the problems in the background technology.
In order to solve the problems, the technical scheme adopted by the invention is as follows: a communication method based on an adaptive Beidou communication node comprises the following steps:
s1, establishing a connection channel with Beidou user equipment by using a computer, and connecting a Beidou self-adaptive module in the computer with the Beidou user equipment;
s2, connecting a user with Beidou self-adaptive module software through Beidou self-adaptive interface software in a computer, and sending an information sending instruction; a unified interface for external calling is provided by Beidou self-adaptive interface software; the external calling interface comprises a user registration interface, a state query interface, a sending interface and a receiving interface;
s3, carrying out monitoring, polling and sending operations on the Beidou equipment by the Beidou self-adaptive module software according to the received information instruction;
3-1, inquiring serial port information by an automatic monitoring management submodule in the Beidou self-adaptive module software: the automatic monitoring management sub-module inquires idle available serial ports on a computer according to set time, the serial ports are opened one by adopting serial port configuration in a serial port configuration list for the available serial ports, after the serial ports are opened successfully, each analysis configuration is sent to Beidou user equipment connected with the serial ports according to the analysis configuration of each registered equipment type in a registered equipment type table, an analysis result is received, the Beidou user equipment type and the current serial port configuration which are analyzed successfully are recorded in an activation equipment table, and the serial port number is recorded as an activation state;
3-2, judging and polling the configuration and state information of the active Beidou user equipment through a polling monitoring management submodule in the Beidou self-adaptive module software:
if the interval time exceeds the inactive duration, the configuration of the current active Beidou user equipment is adopted, the specified detection command in the active equipment information is sent, and whether the response is normal or not is judged: deleting the information of the Beidou user equipment which is activated from the activated equipment table when the time is not returned or the time is not corrected, and informing the upper application; when the reply is correct, the configuration of the current Beidou user equipment is adopted, the detection command appointed in the information of the activation equipment is sent, and whether the reply is carried out or not is continuously judged;
if the interval time does not exceed the inactivity time, continuing to poll the next Beidou activated user equipment;
3-3, performing data conversion and data transmission through a unified transmission management submodule in the Beidou self-adaptive module software; the unified transmission management submodule converts the unified protocol data into protocol data of the target activated Beidou user equipment for transmission and returns a transmission result;
s4, the Beidou equipment judges the source of the received data and transmits the data back to the Beidou self-adaptive module software; the unified receiving management submodule in the Beidou self-adaptive module software identifies the received data and returns a result: the unified receiving management submodule identifies and receives data of the Beidou user equipment, maps the data into a standard unified command and returns the standard unified command to a user;
and S5, the Beidou self-adaptive module software continuously records the information to an activated Beidou device list.
As a further preferable scheme of the invention, the big dipper user equipment in the step S1 includes a big dipper commander, a big dipper integrated machine, and a big dipper multiple card machine; and the Beidou user equipment provides serial data exchange through a serial data transmission standard interface.
As a further preferable scheme of the present invention, the automatic monitoring management submodule in step 3-1 of S3 mainly detects serial port configuration of the beidou user equipment and adapts its corresponding protocol analysis, and places the configuration corresponding to the beidou user equipment that is detected correctly into the activated equipment table; after all serial ports are polled, carrying out next round of polling of all serial ports at a sleep fixed interval time, and comprising the following steps:
a1, inquiring the free available serial ports on the computer, namely unused serial ports, and identifying effective serial ports by the system, and executing the step A2;
a2, judging whether an idle available serial port exists: if so, jump to A3; if no effective port exists, configuring polling interval time for the dormant serial port, and then executing A1;
a3, opening the serial ports one by adopting the serial port configuration according to the serial port configuration list sequence, and executing A4;
a4, judging whether the serial port is opened successfully: if no serial port configuration can be conducted to open the serial port, configuring a polling interval time for the dormant serial port, and then executing A1; if the serial port configuration exists, the serial port can be opened, A5 is executed;
a5, according to the analysis configuration of each registered device type in the registered device type table, sending each analysis configuration to the Beidou user equipment connected with the serial port through the serial port, receiving the analysis result, and executing A6;
a6, judging whether the analysis result is successfully received or not, if not, sending the next analysis configuration to the Beidou user equipment, and if not, indicating that the type of the equipment is not matched with the type of the equipment trying to register, and executing A3; if the resolution is successful, the description is matched with the device type of the attempted registration, A7 is executed;
a7, recording the matched registered device type and the current serial port configuration in an activated device table, recording the serial port number as an activated state, and continuing to execute A1.
As a further preferable scheme of the present invention, the polling monitoring management submodule in step 3-2 in S3 queries the status information of the activated device one by one according to the fixed time interval, and determines whether the serial connection and the device operation are normal; the inactivity duration represents the inactivity duration between the polling time and the last data receiving time; the polling interval time represents the interval duration of two times of polling initiation; the method comprises the following steps:
b1, judging whether active Beidou user equipment does not poll, and if the active Beidou user equipment does not poll, executing B2; if all the active Beidou user equipment has been polled this time, the polling interval is dormant, and then B1 is executed;
b2, the configuration and state information of each Beidou user equipment is taken out one by one from the activated equipment information table, and B3 is executed;
b3, judging the difference between the last data receiving time recorded by the Beidou user equipment and the current time, and executing B4 if the time for receiving the data last time exceeds the inactive time; if the time for receiving data last time does not exceed the inactive time, which indicates that the device is still in a normal working state, executing B1;
b4, adopting the configuration of the current active Beidou user equipment, sending a detection command specified in the active equipment information, and executing B5;
b5, judging whether the reply is normal or not, and if the reply is not back or not, executing B6; if the reply is correct, B7 is executed;
b6, deleting the information of the Beidou user equipment from the activated equipment table, calling an external state change interface associated with the activated equipment information to notify an upper layer application, and continuing to execute B1;
b7, recording the receiving time of the activated device, and continuing to execute B1.
As a further preferable scheme of the present invention, the unified transmission management submodule of step 3-3 in step S3 converts the unified transmission protocol data into the protocol data of the target activation device according to the connection device, and sends back the transmission result; if the user registers a plurality of Beidou user equipment, the unified transmission management submodule uniformly manages the transmission of the Beidou user equipment; the method comprises the following steps:
c1, firstly, judging whether the request is a Beidou short message request, and if the request is the Beidou short message request, executing C2; if it is other RDSS and RNSS commands, C3 is executed;
c2, the time sequence requirements of the Beidou equipment of different types for sending the Beidou short messages are different, the Beidou short messages are sent according to the connected Beidou equipment time sequence requirements, the execution result is obtained, and then C4 is executed;
c3, inquiring an activation device list, acquiring a transmitting and receiving command mapping table which is required by a user and activates Beidou user equipment, acquiring a corresponding transmitting command of the equipment, transmitting the corresponding command through the serial port, acquiring execution result information, and then executing C4;
c4, returning the execution result.
As a further preferable scheme of the invention, the activation of the beidou user equipment required by the user designates or activates the equipment with the best performance in the beidou user equipment for the user.
As a further preferable scheme of the invention, the unified transmission management submodule 3-3 in the step S3 is used for transmitting beidou short messages to beidou devices of different types according to a set time sequence; the unified Beidou short message sending submodule comprises two parts, wherein one part is used for sending control, and the other part is used for sending tasks; the sending control is responsible for receiving a sending request of the Beidou short message and returning sending result information; the sending task is responsible for continuously polling the Beidou short message list waiting for sending, and sending the Beidou short messages according to close time sequence control.
As a further preferable scheme of the present invention, the sending control of the beidou short message includes the following steps:
d1, inquiring the number of the activated devices, and if the number of the activated devices is less than or equal to 0, indicating that no Beidou device is available at present, returning a sending failure result;
d2, if the number of the activated devices is more than 0, indicating that there is currently available Beidou equipment, namely that the requested Beidou short message can be sent, storing the currently requested Beidou short message into a queue to be sent, calculating the predicted waiting time of the Beidou short message according to the length of the queue to be sent and a time sequence list of the activated devices waiting for sending, and taking the time as a sending execution result.
As a further preferable scheme of the present invention, the task of sending the beidou short message is an individual task of executing circularly, and includes the following steps:
e1, inquiring the number of the active devices which can be sent;
e2, judging whether the number of the transmittable activated devices is greater than 0: if the number of the active devices which can be sent is more than 0, executing E3; if the transmittable active device is less than or equal to 0, E1 is performed again after the sleep polling minimum interval time;
e3, judging whether the Beidou short message to be sent needs to wait: if the activation equipment needs to wait for sending the next Beidou short message to be sent, inquiring the resending waiting time of all the activation equipment, and executing E4 after the minimum waiting time is taken to sleep; if the activation equipment can send the Beidou short message without waiting, E4 is executed;
e4, obtaining a transmittable Beidou short message, transmitting the transmittable Beidou short message by using a transmission command mapped by the equipment, and recording the waiting time of the activated equipment for retransmission; execution continues with E1.
As a further preferable scheme of the present invention, the status query interface for the external invocation interface in the step S2 provides information of currently activated beidou user equipment; the information for activating the Beidou user equipment comprises hardware configuration information, equipment type, protocol type, current state and Beidou card number list information used by the equipment; the user registration interface is used for registering a state change interface and a data receiving interface of one or more designated Beidou user equipment; the transmitting interface controls the Beidou user equipment to transmit information one by one according to one or more Beidou user equipment appointed in the user registration interface and a transmitting interval sequence; the receiving interface carries out callback according to the registered state change interface and the data receiving interface, if one or more pieces of equipment state information in one or more appointed Beidou user equipment are changed, the callback state change interface informs a user, and if one or more pieces of equipment in one or more appointed Beidou user equipment receive Beidou module information, the callback data receiving interface informs the user.
Compared with the prior art, the invention provides a communication method based on a self-adaptive Beidou communication node, which has the following beneficial effects:
according to the method, active identification of connected Beidou user equipment is realized through Beidou self-adaptive module software in the self-adaptive Beidou communication node; actively detecting the connection state of the currently connected Beidou user equipment, such as disconnection and equipment failure; simultaneously managing a plurality of Beidou equipment with different models; shielding and connecting a plurality of Beidou user equipment, and uniformly managing the Beidou user equipment into one piece of equipment; through Beidou self-adaptive interface software in the self-adaptive Beidou communication node, a user only needs to send and receive commands according to a uniform interface; the Beidou short message dispatching system provides a unified Beidou short message sending dispatching service for users, timely and quickly dispatches connected Beidou equipment, and sends Beidou short messages one by one according to the requirement of minimum time intervals, so that the Beidou short messages are timely sent.
Drawings
FIG. 1 is an overall view of the present invention;
FIG. 2 is a communication flow diagram of the present invention;
FIG. 3 is an overall flow chart of the present invention;
FIG. 4 is a flow chart of the present invention;
FIG. 5 is a flow chart of an automatic monitoring management submodule of the present invention;
FIG. 6 is a flow chart of a polling monitoring management sub-module according to the present invention;
FIG. 7 is a flow chart of a unified transmission sub-module of the present invention;
FIG. 8 is a flow chart of a transmission control and transmission task according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The invention provides a communication method based on a self-adaptive Beidou communication node, which comprises the following steps:
s1, establishing a connection channel with Beidou user equipment by using a computer, and connecting a Beidou self-adaptive module in the computer with the Beidou user equipment;
s2, connecting a user with Beidou self-adaptive module software through Beidou self-adaptive interface software in a computer, and sending an information sending instruction; a unified interface for external calling is provided by Beidou self-adaptive interface software; the external calling interface comprises a user registration interface, a state query interface, a sending interface and a receiving interface;
s3, carrying out monitoring, polling and sending operations on the Beidou equipment by the Beidou self-adaptive module software according to the received information instruction;
3-1, inquiring serial port information by an automatic monitoring management submodule in the Beidou self-adaptive module software: the automatic monitoring management sub-module inquires idle available serial ports on a computer according to set time, the serial ports are opened one by adopting serial port configuration in a serial port configuration list for the available serial ports, after the serial ports are opened successfully, each analysis configuration is sent to Beidou user equipment connected with the serial ports according to the analysis configuration of each registered equipment type in a registered equipment type table, an analysis result is received, the Beidou user equipment type and the current serial port configuration which are analyzed successfully are recorded in an activation equipment table, and the serial port number is recorded as an activation state; the automatic monitoring management submodule is used for opening a serial port of the Beidou equipment which is not detected, automatically identifying the connection of the dynamically connected Beidou equipment and confirming the equipment state readiness through the configuration requirement of the equipment and the specified configuration command;
3-2, judging and polling the configuration and state information of the active Beidou user equipment through a polling monitoring management submodule in the Beidou self-adaptive module software; the polling monitoring management submodule inquires the state information of the activated equipment one by one at fixed intervals and confirms whether the serial connection and the equipment operation are normal or not; the Beidou equipment monitoring system is used for monitoring that the Beidou equipment in use normally operates, and if normal serial port communication exists all the time, no instruction is sent to detect, and the default is normal; if serial port communication that does not have for a long time, then use appointed detection state instruction to send and receive for it is normal to detect this big dipper equipment state of connecting:
if the interval time exceeds the inactive duration, the configuration of the current active Beidou user equipment is adopted, the specified detection command in the active equipment information is sent, and whether the response is normal or not is judged: deleting the information of the Beidou user equipment which is activated from the activated equipment table when the time is not returned or the time is not corrected, and informing the upper application; when the reply is correct, the configuration of the current Beidou user equipment is adopted, the detection command appointed in the information of the activation equipment is sent, and whether the reply is carried out or not is continuously judged; (ii) a
If the interval time does not exceed the inactivity time, continuing to poll the next Beidou activated user equipment;
3-3, performing data conversion and data transmission through a unified transmission management submodule in the Beidou self-adaptive module software; the unified sending management submodule is a management module for sending instructions to the Beidou equipment in a normal state, and the unified sending management submodule sends the instructions matched with the equipment in a unified mode; the unified transmission management submodule converts the unified protocol data into protocol data of the target activated Beidou user equipment for transmission and returns a transmission result;
s4, the Beidou equipment judges the source of the received data and transmits the data back to the Beidou self-adaptive module software; the unified receiving management submodule in the Beidou self-adaptive module software identifies the received data and returns a result: the unified receiving management submodule identifies and receives data of the Beidou user equipment, maps the data into a standard unified command and returns the standard unified command to a user; the unified receiving management submodule judges which user the receiving equipment belongs to, and then the receiving equipment is mapped to a standard unified receiving interface command and returned to a target user; the information transmitted by the Beidou equipment is respectively analyzed according to the analysis protocol of each equipment and then uniformly transmitted to corresponding modules, which may be automatic detection management submodules, polling monitoring management submodules and receiving interfaces; if the equipment is in an automatic detection state, returning the returned instruction which is also the return result matched with the automatic detection command to the automatic detection state module;
and S5, the Beidou self-adaptive module software continuously records the information to an activated Beidou device list.
As a further preferable scheme of the invention, the big dipper user equipment in the step S1 includes a big dipper commander, a big dipper integrated machine, and a big dipper multiple card machine; and the Beidou user equipment provides serial data exchange through a serial data transmission standard interface.
As a further preferable scheme of the present invention, the automatic monitoring management submodule in step 3-1 of S3 mainly detects serial port configuration of the beidou user equipment and adapts its corresponding protocol analysis, and places the configuration corresponding to the beidou user equipment that is detected correctly into the activated equipment table; after all serial ports are polled, carrying out next round of polling of all serial ports at a sleep fixed interval time, and comprising the following steps:
a1, inquiring the free available serial ports on the computer, namely unused serial ports, and identifying effective serial ports by the system, and executing the step A2;
a2, judging whether an idle available serial port exists: if so, jump to A3; if no effective port exists, configuring polling interval time for the dormant serial port, and then executing A1;
a3, opening the serial ports one by adopting the serial port configuration according to the serial port configuration list sequence, and executing A4;
a4, judging whether the serial port is opened successfully: if no serial port configuration can be conducted to open the serial port, configuring a polling interval time for the dormant serial port, and then executing A1; if the serial port configuration exists, the serial port can be opened, A5 is executed;
a5, according to the analysis configuration of each registered device type in the registered device type table, sending each analysis configuration to the Beidou user equipment connected with the serial port through the serial port, receiving the analysis result, and executing A6;
a6, judging whether the analysis result is successfully received or not, if not, sending the next analysis configuration to the Beidou user equipment, and if not, indicating that the type of the equipment is not matched with the type of the equipment trying to register, and executing A3; if the resolution is successful, the description is matched with the device type of the attempted registration, A7 is executed;
a7, recording the matched registered device type and the current serial port configuration in an activated device table, recording the serial port number as an activated state, and continuing to execute A1.
As a further preferable scheme of the present invention, the polling monitoring management submodule in step 3-2 in S3 queries the status information of the activated device one by one according to the fixed time interval, and determines whether the serial connection and the device operation are normal; the inactivity duration represents the inactivity duration between the polling time and the last data receiving time; the polling interval time represents the interval duration of two times of polling initiation; the method comprises the following steps:
b1, judging whether active Beidou user equipment does not poll, and if the active Beidou user equipment does not poll, executing B2; if all the active Beidou user equipment has been polled this time, the polling interval is dormant, and then B1 is executed;
b2, the configuration and state information of each Beidou user equipment is taken out one by one from the activated equipment information table, and B3 is executed;
b3, judging the difference between the last data receiving time recorded by the Beidou user equipment and the current time, and executing B4 if the time for receiving the data last time exceeds the inactive time; if the time for receiving data last time does not exceed the inactive time, which indicates that the device is still in a normal working state, executing B1;
b4, adopting the configuration of the current active Beidou user equipment, sending a detection command specified in the active equipment information, and executing B5;
b5, judging whether the reply is normal or not, and if the reply is not back or not, executing B6; if the reply is correct, B7 is executed;
b6, deleting the information of the Beidou user equipment from the activated equipment table, calling an external state change interface associated with the activated equipment information to notify an upper layer application, and continuing to execute B1;
b7, recording the receiving time of the activated device, and continuing to execute B1.
As a further preferable scheme of the present invention, the unified transmission management submodule of step 3-3 in step S3 converts the unified transmission protocol data into the protocol data of the target activation device according to the connection device, and sends back the transmission result; if the user registers a plurality of Beidou user equipment, the unified transmission management submodule uniformly manages the transmission of the Beidou user equipment; the method comprises the following steps:
c1, firstly, judging whether the request is a Beidou short message request, and if the request is the Beidou short message request, executing C2; if it is other RDSS and RNSS commands, C3 is executed;
c2, the time sequence requirements of the Beidou equipment of different types for sending the Beidou short messages are different, the Beidou short messages are sent according to the connected Beidou equipment time sequence requirements, the execution result is obtained, and then C4 is executed;
c3, inquiring an activation device list, acquiring a transmitting and receiving command mapping table which is required by a user and activates Beidou user equipment, acquiring a corresponding transmitting command of the equipment, transmitting the corresponding command through the serial port, acquiring execution result information, and then executing C4;
c4, returning the execution result.
As a further preferable scheme of the invention, the activation of the beidou user equipment required by the user designates or activates the equipment with the best performance in the beidou user equipment for the user.
As a further preferable scheme of the invention, the unified transmission management submodule 3-3 in the step S3 is used for transmitting beidou short messages to beidou devices of different types according to a set time sequence; the unified Beidou short message sending submodule comprises two parts, wherein one part is used for sending control, and the other part is used for sending tasks; the sending control is responsible for receiving a sending request of the Beidou short message and returning sending result information; the sending task is responsible for continuously polling the Beidou short message list waiting for sending, and sending the Beidou short messages according to close time sequence control.
As a further preferable scheme of the present invention, the sending control of the beidou short message includes the following steps:
d1, inquiring the number of the activated devices, and if the number of the activated devices is less than or equal to 0, indicating that no Beidou device is available at present, returning a sending failure result;
d2, if the number of the activated devices is more than 0, indicating that there is currently available Beidou equipment, namely that the requested Beidou short message can be sent, storing the currently requested Beidou short message into a queue to be sent, calculating the predicted waiting time of the Beidou short message according to the length of the queue to be sent and a time sequence list of the activated devices waiting for sending, and taking the time as a sending execution result.
As a further preferable scheme of the present invention, the task of sending the beidou short message is an individual task of executing circularly, and includes the following steps:
e1, inquiring the number of the active devices which can be sent;
e2, judging whether the number of the transmittable activated devices is greater than 0: if the number of the active devices which can be sent is more than 0, executing E3; if the transmittable active device is less than or equal to 0, E1 is performed again after the sleep polling minimum interval time;
e3, judging whether the Beidou short message to be sent needs to wait: if the activation equipment needs to wait for sending the next Beidou short message to be sent, inquiring the resending waiting time of all the activation equipment, and executing E4 after the minimum waiting time is taken to sleep; if the activation equipment can send the Beidou short message without waiting, E4 is executed;
e4, obtaining a transmittable Beidou short message, transmitting the transmittable Beidou short message by using a transmission command mapped by the equipment, and recording the waiting time of the activated equipment for retransmission; execution continues with E1.
As a further preferable scheme of the present invention, the status query interface for the external invocation interface in the step S2 provides information of currently activated beidou user equipment; the information for activating the Beidou user equipment comprises hardware configuration information, equipment type, protocol type, current state and Beidou card number list information used by the equipment; the user registration interface is used for registering a state change interface and a data receiving interface of one or more designated Beidou user equipment; after the Beidou equipment used for registration and the callback interface provided for the upper-layer user are registered, the module calls the adaptive Beidou equipment to send a Beidou short message according to the requirement, and returns state change information and Beidou short message receiving information according to the registration callback interface; the transmitting interface controls the Beidou user equipment to transmit information one by one according to one or more Beidou user equipment appointed in the user registration interface and a transmitting interval sequence; the Beidou short message sending interface is provided for upper layer users, the upper layer users call the interface to send Beidou short messages in a unified mode, and the short message requests to return to waiting time; the receiving interface carries out callback according to the registered state change interface and the data receiving interface, if one or more pieces of equipment state information in one or more appointed Beidou user equipment are changed, the callback state change interface informs a user, and if one or more pieces of equipment in one or more appointed Beidou user equipment receive Beidou module information, the callback data receiving interface informs the user that the serial number is recorded as an activated state and the serial number is recorded as an activated state.
As a specific embodiment of the present invention:
the self-adaptive Beidou communication node is a computer with a plurality of serial ports or a plurality of extended serial ports, Beidou self-adaptive module software is installed in the computer, and the Beidou self-adaptive module software comprises an automatic monitoring management submodule, a polling detection management submodule, a uniform sending management submodule and a uniform receiving management submodule; the Beidou self-adaptive module software is used for automatically identifying the connection of Beidou user equipment of different manufacturers and different models, automatically configuring the connected Beidou user equipment, automatically detecting the disconnection of the Beidou user equipment, automatically scheduling a Beidou short message sending queue to provide a uniform sending interface and a uniform Beidou short message receiving interface, and providing other uniform RNSS and RDSS interfaces. The Beidou user equipment comprises various Beidou user equipment which provides navigation positioning of an RNSS satellite radio navigation system, positioning of RDSS satellite radio positioning service and short message service, such as a Beidou director, a Beidou all-in-one machine and a Beidou multi-card machine, and provides serial data exchange through a serial data transmission standard interface.
The computer in the self-adaptive Beidou communication node is provided with Beidou self-adaptive interface software, and the software provides a uniform interface for external calling, wherein the interface comprises a user registration interface, a state query interface, a sending interface and a receiving interface; the state query interface provides information for currently activating the Beidou user equipment, and the information comprises hardware configuration information, equipment types, protocol types, current states, a Beidou card number list used by the equipment and the like; the user registration interface is used for registering and appointing a state change interface and a data receiving interface of one or more Beidou user equipment; the sending interface controls the Beidou user equipment to send information one by one according to one or more Beidou user equipment appointed in the user registration interface according to the sending interval sequence; the receiving interface is used for calling back the state change interface to inform a user if one or more pieces of equipment state information in one or more pieces of appointed Beidou user equipment are changed according to the registered state change interface and the registered data receiving interface, and calling back the data receiving interface to inform the user if one or more pieces of equipment in one or more pieces of appointed Beidou user equipment receive Beidou module information.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A communication method based on an adaptive Beidou communication node comprises the following steps:
s1, establishing a connection channel with Beidou user equipment by using a computer, and connecting a Beidou self-adaptive module in the computer with the Beidou user equipment;
s2, connecting a user with Beidou self-adaptive module software through Beidou self-adaptive interface software in a computer, and sending an information sending instruction; a unified interface for external calling is provided by Beidou self-adaptive interface software; the external calling interface comprises a user registration interface, a state query interface, a sending interface and a receiving interface;
s3, carrying out monitoring, polling and sending operations on the Beidou equipment by the Beidou self-adaptive module software according to the received information instruction;
3-1, inquiring serial port information by an automatic monitoring management submodule in the Beidou self-adaptive module software: the automatic monitoring management sub-module inquires idle available serial ports on a computer according to set time, the serial ports are opened one by adopting serial port configuration in a serial port configuration list for the available serial ports, after the serial ports are opened successfully, each analysis configuration is sent to Beidou user equipment connected with the serial ports according to the analysis configuration of each registered equipment type in a registered equipment type table, an analysis result is received, the Beidou user equipment type and the current serial port configuration which are analyzed successfully are recorded in an activation equipment table, and the serial port number is recorded as an activation state;
3-2, judging and polling the configuration and state information of the active Beidou user equipment through a polling monitoring management submodule in the Beidou self-adaptive module software:
if the interval time exceeds the inactive duration, the configuration of the current active Beidou user equipment is adopted, the specified detection command in the active equipment information is sent, and whether the response is normal or not is judged: deleting the information of the Beidou user equipment which is activated from the activated equipment table when the time is not returned or the time is not corrected, and informing the upper application; when the reply is correct, the configuration of the current Beidou user equipment is adopted, the detection command appointed in the information of the activation equipment is sent, and whether the reply is carried out or not is continuously judged;
if the interval time does not exceed the inactivity time, continuing to poll the next Beidou activated user equipment;
3-3, performing data conversion and data transmission through a unified transmission management submodule in the Beidou self-adaptive module software; the unified transmission management submodule converts the unified protocol data into protocol data of the target activated Beidou user equipment for transmission and returns a transmission result;
s4, the Beidou equipment judges the source of the received data and transmits the data back to the Beidou self-adaptive module software; the unified receiving management submodule in the Beidou self-adaptive module software identifies the received data and returns a result: the unified receiving management submodule identifies and receives data of the Beidou user equipment, maps the data into a standard unified command and returns the standard unified command to a user;
and S5, the Beidou self-adaptive module software continuously records the information to an activated Beidou device list.
2. The communication method based on the adaptive Beidou communication node according to claim 1, wherein the Beidou user equipment in the step S1 comprises a Beidou commander, a Beidou all-in-one machine and a Beidou multi-card machine; and the Beidou user equipment provides serial data exchange through a serial data transmission standard interface.
3. The communication method based on the self-adaptive Beidou communication node according to claim 1, wherein the automatic monitoring management submodule 3-1 in the step S3 mainly detects serial port configuration connected with Beidou user equipment and adapts to corresponding protocol analysis of the Beidou user equipment, and places the configuration corresponding to the correctly detected Beidou user equipment into an activation equipment table; after all serial ports are polled, carrying out next round of polling of all serial ports at a sleep fixed interval time, and comprising the following steps:
a1, inquiring the free available serial ports on the computer, namely unused serial ports, and identifying effective serial ports by the system, and executing the step A2;
a2, judging whether an idle available serial port exists: if so, jump to A3; if no effective port exists, configuring polling interval time for the dormant serial port, and then executing A1;
a3, opening the serial ports one by adopting the serial port configuration according to the serial port configuration list sequence, and executing A4;
a4, judging whether the serial port is opened successfully: if no serial port configuration can be conducted to open the serial port, configuring a polling interval time for the dormant serial port, and then executing A1; if the serial port configuration exists, the serial port can be opened, A5 is executed;
a5, according to the analysis configuration of each registered device type in the registered device type table, sending each analysis configuration to the Beidou user equipment connected with the serial port through the serial port, receiving the analysis result, and executing A6;
a6, judging whether the analysis result is successfully received or not, if not, sending the next analysis configuration to the Beidou user equipment, and if not, indicating that the type of the equipment is not matched with the type of the equipment trying to register, and executing A3; if the resolution is successful, the description is matched with the device type of the attempted registration, A7 is executed;
a7, recording the matched registered device type and the current serial port configuration in an activated device table, recording the serial port number as an activated state, and continuing to execute A1.
4. The communication method based on the self-adaptive Beidou communication node according to claim 1, wherein the polling monitoring management submodule 3-2 in the step S3 inquires the state information of the activated equipment one by one at regular intervals to confirm whether the serial port connection and the equipment operation are normal or not; the inactivity duration represents the inactivity duration between the polling time and the last data receiving time; the polling interval time represents the interval duration of two times of polling initiation; the method comprises the following steps:
b1, judging whether active Beidou user equipment does not poll, and if the active Beidou user equipment does not poll, executing B2; if all the active Beidou user equipment has been polled this time, the polling interval is dormant, and then B1 is executed;
b2, the configuration and state information of each Beidou user equipment is taken out one by one from the activated equipment information table, and B3 is executed;
b3, judging the difference between the last data receiving time recorded by the Beidou user equipment and the current time, and executing B4 if the time for receiving the data last time exceeds the inactive time; if the time for receiving data last time does not exceed the inactive time, which indicates that the device is still in a normal working state, executing B1;
b4, adopting the configuration of the current active Beidou user equipment, sending a detection command specified in the active equipment information, and executing B5;
b5, judging whether the reply is normal or not, and if the reply is not back or not, executing B6; if the reply is correct, B7 is executed;
b6, deleting the information of the Beidou user equipment from the activated equipment table, calling an external state change interface associated with the activated equipment information to notify an upper layer application, and continuing to execute B1;
b7, recording the receiving time of the activated device, and continuing to execute B1.
5. The communication method based on the self-adaptive Beidou communication node according to claim 1, wherein the unified transmission management submodule 3-3 in the step S3 converts the unified transmission protocol data into the protocol data of the target activation device according to the connection device for transmission, and returns the transmission result; if the user registers a plurality of Beidou user equipment, the unified transmission management submodule uniformly manages the transmission of the Beidou user equipment; the method comprises the following steps:
c1, firstly, judging whether the request is a Beidou short message request, and if the request is the Beidou short message request, executing C2; if it is other RDSS and RNSS commands, C3 is executed;
c2, the time sequence requirements of the Beidou equipment of different types for sending the Beidou short messages are different, the Beidou short messages are sent according to the connected Beidou equipment time sequence requirements, the execution result is obtained, and then C4 is executed;
c3, inquiring an activation device list, acquiring a transmitting and receiving command mapping table which is required by a user and activates Beidou user equipment, acquiring a corresponding transmitting command of the equipment, transmitting the corresponding command through the serial port, acquiring execution result information, and then executing C4;
c4, returning the execution result.
6. The communication method based on the adaptive Beidou communication node according to claim 5, wherein the Beidou user equipment required by the user to be activated specifies or activates the equipment with the best performance in the Beidou user equipment for the user.
7. The communication method based on the self-adaptive Beidou communication node according to claim 1, wherein the unified transmission management submodule 3-3 in the step S3 is used for transmitting Beidou short messages to Beidou devices of different types according to a set time sequence; the unified Beidou short message sending submodule comprises two parts, wherein one part is used for sending control, and the other part is used for sending tasks; the sending control is responsible for receiving a sending request of the Beidou short message and returning sending result information; the sending task is responsible for continuously polling the Beidou short message list waiting for sending, and sending the Beidou short messages according to close time sequence control.
8. The communication method based on the adaptive Beidou communication node according to claim 7, wherein the method for controlling the sending of the Beidou short message comprises the following steps:
d1, inquiring the number of the activated devices, and if the number of the activated devices is less than or equal to 0, indicating that no Beidou device is available at present, returning a sending failure result;
d2, if the number of the activated devices is more than 0, indicating that there is currently available Beidou equipment, namely that the requested Beidou short message can be sent, storing the currently requested Beidou short message into a queue to be sent, calculating the predicted waiting time of the Beidou short message according to the length of the queue to be sent and a time sequence list of the activated devices waiting for sending, and taking the time as a sending execution result.
9. The communication method based on the self-adaptive Beidou communication node according to claim 7, wherein the sending task of the Beidou short message is an individual circular execution task, and the method comprises the following steps:
e1, inquiring the number of the active devices which can be sent;
e2, judging whether the number of the transmittable activated devices is greater than 0: if the number of the active devices which can be sent is more than 0, executing E3; if the transmittable active device is less than or equal to 0, E1 is performed again after the sleep polling minimum interval time;
e3, judging whether the Beidou short message to be sent needs to wait: if the activation equipment needs to wait for sending the next Beidou short message to be sent, inquiring the resending waiting time of all the activation equipment, and executing E4 after the minimum waiting time is taken to sleep; if the activation equipment can send the Beidou short message without waiting, E4 is executed;
e4, obtaining a transmittable Beidou short message, transmitting the transmittable Beidou short message by using a transmission command mapped by the equipment, and recording the waiting time of the activated equipment for retransmission; execution continues with E1.
10. The communication method according to claim 1, wherein the status query interface of the external invocation interface in the step S2 provides information that the beidou user equipment is currently activated; the information for activating the Beidou user equipment comprises hardware configuration information, equipment type, protocol type, current state and Beidou card number list information used by the equipment; the user registration interface is used for registering a state change interface and a data receiving interface of one or more designated Beidou user equipment; the transmitting interface controls the Beidou user equipment to transmit information one by one according to one or more Beidou user equipment appointed in the user registration interface and a transmitting interval sequence; the receiving interface carries out callback according to the registered state change interface and the data receiving interface, if one or more pieces of equipment state information in one or more appointed Beidou user equipment are changed, the callback state change interface informs a user, and if one or more pieces of equipment in one or more appointed Beidou user equipment receive Beidou module information, the callback data receiving interface informs the user.
CN202110385538.9A 2021-04-10 2021-04-10 Communication method based on self-adaptive Beidou communication node Active CN113099551B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110385538.9A CN113099551B (en) 2021-04-10 2021-04-10 Communication method based on self-adaptive Beidou communication node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110385538.9A CN113099551B (en) 2021-04-10 2021-04-10 Communication method based on self-adaptive Beidou communication node

Publications (2)

Publication Number Publication Date
CN113099551A true CN113099551A (en) 2021-07-09
CN113099551B CN113099551B (en) 2022-06-10

Family

ID=76676112

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110385538.9A Active CN113099551B (en) 2021-04-10 2021-04-10 Communication method based on self-adaptive Beidou communication node

Country Status (1)

Country Link
CN (1) CN113099551B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106059848A (en) * 2016-05-06 2016-10-26 南京大学 BeiDou short message communication-based electric power data acquisition transmission processing system and method
CN110730429A (en) * 2019-11-18 2020-01-24 北京春笛网络信息技术服务有限公司 Equipment for information transmission between Beidou terminal and Internet of things terminal
CN110784255A (en) * 2019-10-24 2020-02-11 北京卫星导航中心 Beidou user terminal communication resource sharing system
CN210807663U (en) * 2019-11-13 2020-06-19 北京春笛网络信息技术服务有限公司 Equipment for interaction of Beidou short message and mobile phone short message information
CN111356095A (en) * 2020-02-04 2020-06-30 北京天海达科技有限公司 Beidou short message sharing terminal and Beidou short message receiving and sending method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106059848A (en) * 2016-05-06 2016-10-26 南京大学 BeiDou short message communication-based electric power data acquisition transmission processing system and method
CN110784255A (en) * 2019-10-24 2020-02-11 北京卫星导航中心 Beidou user terminal communication resource sharing system
CN210807663U (en) * 2019-11-13 2020-06-19 北京春笛网络信息技术服务有限公司 Equipment for interaction of Beidou short message and mobile phone short message information
CN110730429A (en) * 2019-11-18 2020-01-24 北京春笛网络信息技术服务有限公司 Equipment for information transmission between Beidou terminal and Internet of things terminal
CN111356095A (en) * 2020-02-04 2020-06-30 北京天海达科技有限公司 Beidou short message sharing terminal and Beidou short message receiving and sending method

Also Published As

Publication number Publication date
CN113099551B (en) 2022-06-10

Similar Documents

Publication Publication Date Title
US5483647A (en) System for switching between two different operating systems by invoking the server to determine physical conditions to initiate a physical connection transparent to the user
WO2008020721A1 (en) Element management system in wireless communication network
US9425982B2 (en) Server and method for providing device management service and device receiving the device management service
JP2016535895A (en) Software update method, system and device
US20080239965A1 (en) Method And System For Reporting Terminal Information, And Method And System For Maintaining Terminal Device, As Well As Device Management System
US20060230128A1 (en) Method and apparatus interfacing for controlling a device between an application and a library of a master on home network
JP2012053882A (en) Method and system for processing a scheduling task in device management
WO2019029253A1 (en) Fota-based remote upgrade control method and system
CN111901440B (en) Multi-channel message pushing method and device
KR101416280B1 (en) Event handling system and method
CN108848098B (en) Communication channel management method and system of embedded terminal equipment
EP2890181A1 (en) Error code information obtaining method, device and system
CN109661843A (en) Method and system for device location management
CN113099551B (en) Communication method based on self-adaptive Beidou communication node
US6718377B1 (en) Telecommunications network management system interface
CN112804301B (en) Method and device for determining equipment state, gateway and storage medium
CN109561487B (en) Method and device for reducing energy consumption of mobile terminal and mobile terminal
US20120047204A1 (en) Apparatus and method for providing a device management package and a method for receiving the device management package
CN110445700A (en) Slave communication system, method and terminal device
CN113630368B (en) Communication method, system, terminal and medium of automatic cloud meter
CN116974655A (en) Capability scheduling method and capability scheduling functional entity
EP3429261A1 (en) Non-blocking request processing method and device
JPH0574259B2 (en)
CN102693434A (en) Communication apparatus and method for interface layer of radio frequency identification device
CN102025726A (en) Home data network system centering on digital television

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant