CN113364512B - Encapsulation analysis method and device for Beidou short message - Google Patents

Encapsulation analysis method and device for Beidou short message Download PDF

Info

Publication number
CN113364512B
CN113364512B CN202110559015.1A CN202110559015A CN113364512B CN 113364512 B CN113364512 B CN 113364512B CN 202110559015 A CN202110559015 A CN 202110559015A CN 113364512 B CN113364512 B CN 113364512B
Authority
CN
China
Prior art keywords
beidou
short message
instruction
data
module
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.)
Active
Application number
CN202110559015.1A
Other languages
Chinese (zh)
Other versions
CN113364512A (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.)
Guangdong Sea Star Ocean Sci And Tech Co ltd
Original Assignee
Guangdong Sea Star Ocean Sci And Tech 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 Guangdong Sea Star Ocean Sci And Tech Co ltd filed Critical Guangdong Sea Star Ocean Sci And Tech Co ltd
Priority to CN202110559015.1A priority Critical patent/CN113364512B/en
Publication of CN113364512A publication Critical patent/CN113364512A/en
Application granted granted Critical
Publication of CN113364512B publication Critical patent/CN113364512B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems
    • H04B7/185Space-based or airborne stations; Stations for satellite systems
    • H04B7/1851Systems using a satellite or space-based relay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Astronomy & Astrophysics (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention relates to the technical field of satellite communication, and discloses a Beidou short message encapsulation and analysis method, which comprises the following steps: receiving a Beidou message instruction input by a user; analyzing and extracting the Beidou message instruction according to preset Beidou analysis configuration to obtain corresponding Beidou message data; carrying out data packing and verification processing on the Beidou message data based on a Beidou short message protocol to obtain verification short message data; sending the check short message data to a Beidou short message module for data analysis; and receiving a result instruction fed back by the Beidou short message module, and if the result instruction is correct, sending the check short message data to the Beidou satellite through the antenna module in a frequency modulation manner. According to the scheme of the embodiment of the invention, through the packaging simplification mode, the operation process of a user is greatly simplified, the equipment learning cost is reduced, and the use by the user is facilitated.

Description

Encapsulation analysis method and device for Beidou short message
Technical Field
The invention relates to the technical field of Beidou communication, in particular to a Beidou short message encapsulation analysis method and device.
Background
Satellite communications are ultra-long range communications and are not 100% reliable. When the Beidou short message equipment A communicates with the Beidou short message equipment B through the Beidou satellite, the A can only confirm whether the information is sent out or not, but can not know whether the information reaches the satellite or not and even know whether the information is received or not. And the information sent to the satellite by the A and the data received from the satellite by the B are transmitted by the radio frequency antenna, so the verification is needed to confirm the accuracy of the data transmission in the two transmission processes. The existing Beidou satellite communication mode needs to carry out information transmission operation through a Beidou short message protocol, can know through reading a Beidou short message original protocol, different functions need different data frame headers, the data frame headers are not uniform and are irregular and difficult to remember, check codes are difficult to calculate, but the check codes are important data in Beidou communication, and special calculation tools or software are needed for assistance. The above reasons also make the user more inconvenient in the using process and the learning cost is relatively high. Therefore, it is a technical problem to be solved urgently by those skilled in the art to design a beidou communication mode convenient for users to use.
Disclosure of Invention
Aiming at the defects, the embodiment of the invention discloses a Beidou short message encapsulation and analysis method which can simplify the complex Beidou short message protocol encapsulation and is convenient for users to use.
The first aspect of the embodiment of the invention discloses a packaging and analyzing method for Beidou short messages, which comprises the following steps:
receiving a Beidou message instruction input by a user;
analyzing and extracting the Beidou message instruction according to preset Beidou analysis configuration to obtain corresponding Beidou message data;
carrying out data packing and verification processing on the Beidou message data based on a Beidou short message protocol to obtain verification short message data;
sending the check short message data to a Beidou short message module for data analysis;
and receiving a result instruction fed back by the Beidou short message module, and if the result instruction is correct, sending the check short message data to the Beidou satellite through the antenna module in a frequency modulation manner.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after receiving the result instruction fed back by the beidou short message module, the method further includes:
and analyzing the result instruction to obtain display result information, and feeding back the display result information to the user side, wherein the display result information comprises whether instruction execution is successful, whether frequency setting is successful and frequency waiting time.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the sending the check short message data to the beidou satellite through the antenna module by frequency modulation includes:
and sending the verification short message data to a Beidou satellite through antenna module frequency modulation, and sending the verification short message data to corresponding Beidou short message equipment in the Beidou satellite according to address information in the verification short message data.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the package parsing method further includes:
receiving a Beidou message instruction sent by a Beidou satellite, and analyzing and extracting the Beidou message instruction;
and displaying the analyzed and extracted result at the user side.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the format of the Beidou packet instruction is an instruction header and a target operation object, and the format of the Beidou packet instruction is a specific operation instruction of the instruction header and the target operation object.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the performing data packing and verification processing on the Beidou packet data based on the Beidou short message protocol to obtain verification short message data includes:
carrying out data packaging conversion on the Beidou message data based on a Beidou short message protocol to obtain short message data, wherein the short message data comprises frame header keywords, recipient addresses, a communication mode, an encoding mode and text contents;
performing exclusive-or check on the short message data to obtain exclusive-or check bytes, and storing the exclusive-or check bytes into the short message data to obtain check short message data;
and respectively adding corresponding separators at two ends of the instruction for checking the short message data to obtain complete checking short message data.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the text content includes hexadecimal data.
The second aspect of the embodiment of the present invention discloses a Beidou short message encapsulation and analysis device, which includes:
a first receiving module: the Beidou satellite communication system is used for receiving a Beidou message instruction input by a user;
an analysis module: the Beidou information acquisition module is used for acquiring Beidou information of the Beidou information and the Beidou information of the Beidou information;
a packaging checking module: the Beidou satellite communication terminal is used for carrying out data packing and verification processing on the Beidou satellite communication data based on a Beidou short message protocol to obtain verification short message data;
a sending module: the Beidou short message module is used for sending the check short message data to the Beidou short message module for data analysis;
a second receiving module: and the Beidou satellite short message module is used for receiving a result instruction fed back by the Beidou short message module, and if the result instruction is correct, the checking short message data is sent to the Beidou satellite through the antenna module in a frequency modulation manner.
The third aspect of the embodiments of the present invention discloses an electronic device, which includes a memory, a processor, and a computer program that is stored in the memory and can be run on the processor, wherein the processor implements the encapsulation and analysis method for the beidou short message according to any one of the first aspect of the present invention when executing the computer program.
A fourth aspect of the embodiments of the present invention discloses a computer-readable storage medium, on which a computer-readable storage medium is stored, and a computer program is stored, which when executed by a processor, implements the steps of the method according to any one of the objects of the present invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
according to the encapsulation analysis method of the Beidou short message in the embodiment of the invention, the complex receiving instruction and the simple user operation instruction are stored correspondingly in advance, so that a user can directly input the simple instruction in the subsequent use process, and then the data format required by the Beidou short message module is obtained through analysis; through the packaging simplification mode, the user operation process is greatly simplified, the equipment learning cost is reduced, and the use by a user is facilitated.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for encapsulating and analyzing a beidou short message disclosed by the embodiment of the invention;
FIG. 2 is a schematic flow chart of information receiving and displaying according to the embodiment of the present invention;
FIG. 3 is a schematic flow chart of data packing verification disclosed in the embodiments of the present invention;
FIG. 4 is a schematic circuit block diagram of a Beidou short message data transmission terminal disclosed by the embodiment of the invention;
fig. 5 is a schematic structural diagram of an encapsulation and analysis device for a beidou short message according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of 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. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first", "second", "third", "fourth", and the like in the description and the claims of the present invention are used for distinguishing different objects, and are not used for describing a specific order. The terms "comprises," "comprising," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The existing Beidou satellite communication mode needs to carry out information transmission operation through a Beidou short message protocol, can know through reading a Beidou short message original protocol, different functions need different data frame headers, the data frame headers are not uniform and are irregular and difficult to remember, check codes are difficult to calculate, but the check codes are important data in Beidou communication, and special calculation tools or software are needed for assistance.
The sentence format of the existing Beidou short message follows the RDSS protocol, the RDSS protocol is a standard protocol issued by the Beidou central station, and the prior Beidou short message has a first-generation 4.0 protocol and a second-generation 2.1 protocol which have larger difference. The current common version is the second generation 2.1 protocol, which any R D module or chip supports. The most characteristic of the current 2.1 protocol is that the signal strength is represented by 10 wave velocities, and the previous 4.0 protocol is represented by 6 wave velocities. In this protocol, either a receiving statement or a sending statement, the statement starts with the dollar symbol, $, ends with english characters, and a separator, and ends with the carriage return line feed \ r \ n. The scheme of the embodiment of the invention is introduced and analyzed by the general second-generation 2.1 version protocol of the Beidou. The embodiment of the invention only introduces the more important and common protocols, and comprises the steps that a user uses a PC terminal to send data to an RD module (Beidou short message module) and the RD module sends feedback information after receiving the data.
Currently, the use of a reader card number:
the PC terminal is used for sending the statement to the RD module: $ CCICA,0,00 x 7B \ r \ n;
"CCICA" - - -reads the instruction key of the Beidou card number;
"0" - -monitoring local encryption and decryption module information;
"00" - -subordinate user information frame number;
"7B" - - -XOR check byte. Exclusive or operation is carried out on all bytes from $ to (excluding $ and) to obtain a check byte, then the check byte is converted into a 16-system number, and the upper 4 bits and the lower 4 bits of the 16-system number are taken. For example, if the check byte is converted into a 16-ary number and then is 0X07, then a 07 is written here and 0 cannot be omitted. The RD module replies to the PC terminal, such as:
$BDICI,0242286,00242286,0000011,6,60,3,N,0*38\r\n
"BDICI" - -instruction key.
"0242286" - -the Beidou card number, 7 digits.
"00242286" -serial number
"0000011" - - -broadcast address
"6" - -identify user characteristics. 0 denotes a commander, 1 denotes a first-class user device, 2 denotes a second-class user device, 3 denotes a third-class user device, 4 denotes a commander-type user device (for authentication), 5 denotes a first-class user device (for authentication), 6 denotes a second-class user device (for authentication), and 7 denotes a third-class user device (for authentication).
"60" -the service frequency of the beidou card, where 60 means that this beidou card is issued every 60 seconds.
"3" - -communication level
"N" -encryption flag. E denotes encryption and N denotes non-encryption.
"0" - - -the number of subordinate users. Typically 0.
"38" -an exclusive or check byte.
Note that if no beidou card is detected, the statement returned by the RD module is:
$BDICI,0000000,00000000,0000000,0,0,0,N,0*0B
reading signal states
The PC terminal is used for sending the statement to the RD module: $ CCRMO, BSI,2,0 × 26\ r \ n
"CCRMO" - -instruction key.
"BSI" - - -Default parameter
"2" - -open a specified statement
"0" - -the output frequency of the statement. 0 means only 1 output. 1 denotes output 1 time every 1 second.
"26" - -xor check bytes.
The RD module replies to the PC terminal, such as: $ BDBSI,08,01,4,4,0,0,1,0,1,4,0, 0x 53\ r \ n
"BDBSI" - -instruction key.
"08" - - -response wave velocity
"01" - -time difference wave velocity
The next are 10 signal values at wave speed. 0 weakest and 4 strongest. A wave speed of 4 indicates a good signal and can be used for applying for positioning and sending messages.
"53" - - -XOR check bytes.
Application for positioning
The RDSS positioning accuracy is 100 meters, which is inferior to the GPS positioning accuracy of 10 meters, and therefore, is not generally used as a main positioning method.
The PC terminal is used for sending the statement to the RD module:
$CCDWA,0000000,V,1,L,,0,,,0*65\r\n
"CCDWA" - - -instruction key.
"0000000" -by default use of this
"V" -common positioning
"1" -no elevation
"L" -general elevation indication
"0" -antenna height, 0 by default
"0" -application frequency. By default 0 means that only one fix is applied.
"65" - -XOR check bytes.
The RD module replies to the PC terminal whether the command was successfully executed, for example:
$BDFKI,DWA,Y,Y,0,0060*0A\r\n
"BDFKI" - - -instruction key.
"DWA" - - -Key
"Y" - - -Y represents instruction execution success, and N represents instruction execution failure.
"Y" - - -Y represents success of frequency setting, and N represents failure of frequency setting
"0" - -emission suppression prompt
"0060" - -frequency wait time. Indicating how many seconds later it can be retransmitted again.
"0A" - - -XOR check byte.
Within a few seconds, the satellite replies with positioning information to the RD module, which then outputs statements to the PC terminal, such as:
$BDDWR,1,0242286,021549.65,2240.4051,N,11402.5601,E,47,M,-3,M,1,V,V,L*1F\r\n
"BDDWR" -locate reply instruction.
"1" -type of positioning information
"0242286" - - -user Address ID
"021549.65" -positioning time UTC. The first 02 plus 8 is the Beijing time of east 8.
"2240.4051" -latitude
"N" -latitudinal direction.
"11402.5601" -longitude
"E" -longitudinal direction.
"47" -ground height
"M" -the unit of geodetic height, M representing meters.
"-3" -elevation anomaly
"M" -units of elevation anomaly, M representing meters
"1" -1 indicates a positioning accuracy of 100 m, and 0 indicates a positioning accuracy of 20 m.
"V" -V indicates a non-emergency location and A indicates an emergency location.
"V" -V represents a non-multivalued solution, and A represents a multivalued solution.
"L" - "L represents that the elevation type is normal, and H represents that the elevation type is high.
"1F" - -XOR check byte.
When the Beidou short message terminal is adopted to send and receive messages, a hybrid coding mode and a code coding mode are generally used. Taking the hybrid coding mode as an example, the first letter of the text is fixed as "a 4", and each character is converted into 16-system number capitals in sequence. If the 16-ary number is not greater than 16, 0 is complemented in the high order.
English is represented by one byte and chinese by two bytes.
For example, to send the information "hello beidou":
the PC terminal is used for sending the statement to the RD module:
$CCTXA,0242286,1,2,A468656C6C6FB1B1B6B7*7F
"CCTrxA" - - -instruction key.
"0242286" -recipient Address ID
"1" -1 denotes ordinary communication, and 0 denotes express communication
"2" -2 denotes a mixed code, 1 denotes a code, and 0 denotes a Chinese character code
"A4 … …" -textual content. For example, the hexadecimal number of h is 68.
"7F" - -XOR check byte.
Where a4 counts as a byte, which is the hybrid coded identification, which may be followed by 77 bytes of user content. 68656C6C6FB1B1B6B7 calculated 9 bytes, the user content is GBK coding, and the user can also adopt UNICODE coding, as long as UNICODE decoding is adopted at the receiving end.
If code encoding is adopted, A4 is removed, and the sending statement is as follows:
the code coding mode of $ CCTXA,0242286,1, 68656C6C6FB1B1B6B7 is also a mainstream application, and 78 bytes of user content can be transmitted. Since the mixed code needs a4 byte for marking, only 77 bytes of user content can be transmitted.
The RD module replies to the PC terminal whether the command was successfully executed, for example:
$BDFKI,TXA,Y,Y,0,0060*15\r\n;
"BDFKI" - - -instruction key.
"TXA" -keyword of a communication application;
"Y" - - -Y represents instruction execution success, and N represents instruction execution failure.
"Y" - - -Y represents that the frequency setting is successful, and N represents that the frequency setting is failed;
"0" - -emission suppression cue;
"0060" - -frequency wait time. Indicating how many seconds later it can be retransmitted again.
"15" - -xor check bytes.
If the set recipient address ID is self, the satellite will forward the information to the RD module within a few seconds, and then the RD module will output a statement to the PC terminal, such as: $ BDTXR,1,0242286,2, A468656C6C6FB1B1B6B7 x 46\ r \ n;
"BDTXR" -communication reply instruction.
"1" -1 indicates ordinary communication;
"0242286" -sender Address ID;
"2" -2 means that the text form is a mixed transmission, 1 means a code transmission, and 0 means a Chinese character transmission;
"A4 … …" -textual content;
"1F" - -XOR check byte.
If the sending end uses code encoding, the statement output after the receiving end receives is also in a code encoding format: $ BDTXR,1,0242286,1, 68656C6C6FB1B1B6B7 x 10\ r \ n;
when a user sends information by using the Beidou short message, the content can be English digits, Chinese characters or 16-system digits. At most 78 binary numbers/english/number, or 39 chinese characters can be transmitted.
The manner of obtaining the current time is as follows: the PC terminal is used for sending the statement to the RD module:
$CCRMO,ZDA,2,0*21\r\n;
where "CCRMO" - -instruction key.
"ZDA" - - -default parameter
"2" - -open a specified statement
"0" - - -the output frequency of the statement. 0 means only 1 output. 1 denotes output 1 time every 1 second.
"21" - -xor check byte.
The RD module replies to the PC terminal, such as:
$BDZDA,1,005407.00,29,09,2019,-8,00,0,0,Y*04\r\n;
wherein "BDZDA" - -instruction key.
"1" - - -mode indication. 1 is the RDSS timing result, 2 is the RNSS timing result;
"005407.00" - - -UTC time
"29" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -;
"09" - - -month;
"2019" - - -;
"-8" - - -time zone. East longitude is usually indicated by a negative value, except in regions near the international day line.
So-8 denotes the east 8 region
"00" - - -difference in minutes in this time zone
"0" -timing correction value
"0" -precision indication. 0 is not detected, 1 is 0-10 nanoseconds, 2 is 20-20 nanoseconds, 3 is greater than 20 nanoseconds
"Y" -Y is signal locked, and N is signal unlocked.
"04" -XOR check bytes.
As can be seen from the interpretation of the Beidou short message original protocol, different functions require different data frame headers, the data frame headers are not uniform, irregular and hard to remember, check codes are more difficult to calculate and are important data, and special calculation tools or software assistance is required for implementation. If one of the functions of the Beidou short message is required to be used, a corresponding instruction needs to be input into the RD module at the PC terminal, the instruction data is verified, and then the instruction data is sent together to realize the function. The aforesaid is that the current big dipper short message terminal of carrying on carries out the instruction mode of information interaction promptly, then can know by last, and the comparatively complicacy of current short message mode must just can accomplish through the training of specialty to the code mode is complicated relatively, and to equipment operator, the requirement is more, and the degree of difficulty is great. Based on this, the embodiment of the invention discloses a Beidou short message encapsulation and analysis method, a Beidou short message encapsulation and analysis device, electronic equipment and a storage medium, wherein a complex receiving instruction and a simple user operation instruction are stored correspondingly in advance, so that a user can directly input the simple instruction in the subsequent use, and then a data format required by a Beidou short message module is obtained through analysis; through the packaging simplification mode, the operation process of a user is greatly simplified, the learning cost of equipment is reduced, and the packaging simplification method is convenient for the user to use.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart of a method for encapsulating and analyzing a beidou short message according to an embodiment of the present invention. The execution main body of the method described in the embodiment of the present invention is an execution main body composed of software or/and hardware, and the execution main body can receive related information in a wired or/and wireless manner and can send a certain instruction. Of course, it may also have certain processing and storage functions. The execution body may control a plurality of devices, such as a remote physical server or a cloud server and related software, or may be a local host or a server and related software for performing related operations on a device installed somewhere. In some scenarios, multiple storage devices may also be controlled, which may be co-located with the device or located in a different location. As shown in fig. 1, the encapsulation analysis method based on the beidou short message includes the following steps:
s101: receiving a Beidou message instruction input by a user;
the method mainly comprises the steps of receiving a Beidou message instruction input by a user, and when the method is specifically implemented, the user is mainly in communication connection with a corresponding short message data transmission terminal through a computer terminal, so that the user can directly interact with a complex Beidou short message protocol through the operation PC terminal; the method is characterized in that a user operates the PC terminal to communicate with the microcontroller with the built-in simple and easy-to-use instruction, and the microcontroller further interacts with the Beidou short message protocol according to the simple and easy-to-use instruction. When the specific instruction is set, there may be multiple modes, one is to directly use the beidou message instruction as the corresponding target operation object and operation instruction, another mode is to add the instruction header to the operation object, and even another mode is to add the instruction header to the operation object, and a corresponding operation mode, etc.
In an embodiment of the present invention, a format of the beidou message instruction is any one of an instruction header + a target operation object or an instruction header + a target operation object _ specific operation instruction. The setting format can be a clear operation starting head, a specific operation mode and the like.
In the embodiment of the invention, a corresponding instruction format and an analysis mode are built in the Beidou information management system, the Beidou information instruction format is an instruction head and a target operation object, and the Beidou information instruction format is a specific operation instruction of the instruction head and the target operation object; specifically, the built-in instruction in the embodiment of the present invention follows the format: command header + target operand _ concrete operation command.
Example (c): AT + BD _ CARD; wherein AT is an instruction head; BD is a target operation object; CARD is an operation instruction. In the embodiment of the present invention, the ' + ' sign between the instruction header and the target operand, and the ' _ sign between the target operand and the operation instruction are in the ascil code format. When the specific implementation is carried out, the serial software can be used for sending the corresponding character string to the terminal so as to execute the corresponding operation. Through the above manner, the corresponding instruction sending can be realized, and compared with the original instruction: $ CCICA,0,00 x 7B \ r \ n; the method has the obvious characteristics of simplicity and easy memorization; particularly, the method can embody better characteristics when the instruction content is various.
Specifically, corresponding instructions are built in corresponding functions, such as:
AT + TEMP, indicating to view PCB motherboard temperature.
AT + BD _ OPEN shows the switch that OPENs big dipper module on the mainboard, lets big dipper module circular telegram work.
AT + BD _ CLOSE represents the switch that disconnects the Beidou module on the mainboard.
And the AT + GPS _ OPEN represents that the switch of the positioning module on the mainboard is turned on to enable the positioning module to be electrified and operated.
AT + GPS _ CLOSE, which indicates the switch to turn off the positioning module on the motherboard.
AT + BD _ CARD represents the inquiry of the Beidou CARD number in the main board CARD slot.
AT + BD _ SIGNAL, which represents the Beidou SIGNAL for inquiring the current position.
AT + BD _ UTCTIME, which indicates that the current UTCTIME is inquired through the Beidou module.
AT + BD _ POSITION represents the inquiry of the current POSITION information through the Beidou module.
AT+BD_SENDTO=0123456:your send buff;
Example (c): AT + BD _ SENDTO 0123456 Hello, Beidou!
And sending a short message to the card number of 01234567, wherein the short message is buff immediately after the colon, and the ASCLL and Chinese mixing are supported (the maximum length of 77 bytes is supported, and one Chinese character occupies two bytes).
AT+GPS_OPEN_GGA
When the mainboard positioning module is in a power-on state (AT + GPS _ OPEN instruction can be used for opening the mainboard positioning module switch), the GGA output statement of the positioning module can be opened; if the location module is in the unpowered state, an Error! Please input AT + GPS _ OPEN according to the prompt, and then input AT + GPS _ OPEN _ GGA again, i.e. turn on the GGA output statement of the positioning module.
AT + GPS _ OPEN _ GSA, which represents the output GSA statement that turns on the positioning module.
AT + GPS _ OPEN _ GRS, indicating an output GRS statement to turn on the positioning module.
AT + GPS _ OPEN _ GSV, which represents an output GSV statement that turns on the positioning module.
And the AT + GPS _ OPEN _ RMC represents that an output RMC statement of the positioning module is opened, and in general, when a user needs to use the positioning and time service functions, the user only needs to OPEN the RMC statement so as to relieve the pressure of serial port data processing.
AT + GPS _ OPEN _ VTG, which represents an output VTG statement to OPEN the positioning module.
AT + GPS _ OPEN _ ZDA, which represents the output ZDA statement that turns on the positioning module.
AT + GPS OPEN ALL, indicating that ALL output statements of the positioning module are OPEN.
AT + GPS _ CLOSE _ GGA, representing the GGA output statement that turns off the positioning module.
AT + GPS _ CLOSE _ GLL, representing the GLL output statement of the closed positioning module.
AT + GPS _ CLOSE _ GSA, representing a GSA output statement to turn off the positioning module.
AT + GPS _ CLOSE _ GRS, which represents the GRS output statement that turns off the positioning module.
AT + GPS _ CLOSE _ GSV, which represents the GSV output statement that CLOSEs the positioning module.
AT + GPS _ CLOSE _ RMC, which represents the RMC output statement that turns off the positioning module.
AT + GPS _ CLOSE _ VTG, which represents the VTG output statement that turns off the positioning module.
AT + GPS _ CLOSE _ ZDA, representing a ZDA output statement that turns off the positioning module.
AT + GPS _ CLOSE _ ALL, which represents ALL output statements that turn off the positioning module.
And the AT + GPS _ SAVE _ CMD represents that the power is off and the change of the output statement is stored, if the instruction is not operated after the output statement of the positioning module is modified, the modified content is kept effective before the positioning module is powered on again, and the change is lost after the positioning module is powered on again.
AT + TC _ CARD represents the destination CARD number in the inquiry transparent transmission mode.
AT + TC _ OPEN, indicating an OPEN transparent mode.
AT + TC _ CLOSE, indicating that transparent mode is off.
AT + TC _ CARD _ SET: dest CARD number, which indicates the destination CARD number for setting the transparent transmission mode.
The built-in instruction has direct and clear meaning, the corresponding function can be directly realized through the instruction, and compared with the existing communication protocol, the built-in instruction is simpler and easier to use.
S102: analyzing and extracting the Beidou message instruction according to preset Beidou analysis configuration to obtain corresponding Beidou message data;
since the "instruction header + target operation object _ specific operation instruction" is not an instruction that the beidou message terminal can directly recognize, the corresponding instruction needs to be analyzed according to the preset beidou analysis configuration. For brief explanation, taking "AT + BD _ SENDTO ═ 0242286: hello beidou" as an example, a microcontroller in the beidou short message data transmission terminal receives data sent by a user and analyzes and extracts a data frame: AT is an instruction head, BD is an operation object, SENDTO 0242286 is the specific instruction Hello Beidou, wherein 0242286 is a destination card number, and Hello Beidou is content to be sent; the content is a mode that the subsequent Beidou data transmission terminal needs to operate, so that the user needs to perform the requirement conversion according to proper configuration.
S103: carrying out data packing and checking processing on the Beidou message data based on a Beidou short message protocol to obtain checking short message data;
in step S102, only the corresponding instruction content and the operation object are obtained, but the instruction is not content information that the beidou satellite can directly recognize; therefore, the content needs to be subjected to instruction conversion according to the Beidou short message protocol, and the instruction conversion needs to be correspondingly set according to actual sending codes.
More preferably, fig. 3 is a schematic flow chart of data packing and verification disclosed in the embodiment of the present invention, and as shown in fig. 3, the performing data packing and verification processing on the Beidou packet data based on the Beidou short message protocol to obtain verification short message data includes:
s103 a: carrying out data packaging conversion on the Beidou message data based on a Beidou short message protocol to obtain short message data, wherein the short message data comprises frame header keywords, recipient addresses, a communication mode, an encoding mode and text contents;
s103 b: performing exclusive-or check on the short message data to obtain exclusive-or check bytes, and storing the exclusive-or check bytes into the short message data to obtain check short message data;
s103 c: and respectively adding corresponding separators at two ends of the instruction for checking the short message data to obtain complete checking short message data.
In the embodiment of the invention, the microcontroller in the Beidou short message data transmission terminal packages the data and verifies the data to accord with the Beidou short message protocol. The packed data format is $ CCTXA,0242286,1,2, a468656C 6FB1B 6B7 × 7F;
wherein "CCTrxA" - - -instruction key; "0242286" -a recipient address ID; "1" -1 indicates normal communication, 0 indicates express communication; 2-2 represents mixed coding, 1 represents code coding, and 0 represents Chinese character coding; "A468656C 6C6FB1B1B6B 7" -textual content; "7F" - -XOR check byte.
More preferably, the text content comprises hexadecimal data.
Specifically, when the implementation operation is performed, the 'hello beidou' needs to be subjected to format conversion, and needs to be converted into the text content '68656C 6FB1B 6B 7' to be sent. Specifically, the ASCLL code character string "hello Beidou" is firstly converted into hexadecimal data 68656C6C6F B1B1B6B7, wherein each English character occupies one byte, the Chinese character occupies two bytes, the hexadecimal data is forced to be two bits, the high bits of the two bits are filled with zero, for example, the character to be transmitted is converted into hexadecimal data which is 9, and then the data is written as 09. Then, the hexadecimal data 68656C 6F B1B1B6B7 is converted into an ASCLL code character string "68656C 6FB1B 6B 7" (the hexadecimal data is 363836353643364336464231423142364237), so that it can be seen that the original transmission content "hello beidou" (9 bytes in length) is converted into "68656C 6FB1B 6B 7", and the data length is doubled. Then the packed frame header key, the address of the receiver, the communication mode, the coding mode and the text content are subjected to bitwise exclusive-or check (BCC check), namely the content is subjected to
"CCTXA, 0242286,1,2, A468656C6C6FB1B1B6B 7" is bitwise XOR-checked to obtain check bit 7F. And adding a $ separator to two ends of the instruction to obtain a complete instruction $ CCTX, 0242286,1,2, A468656C6C6FB1B1B6B7 and 7F, and sending the complete instruction to the Beidou short message module.
S104: sending the check short message data to a Beidou short message module for data analysis;
the big dipper short message module can analyze, process and execute the data received by the microcontroller and return to execute feedback, such as: BDFKI, TXA, Y, Y,0,0060 x 15 r n;
"BDFKI" - - -instruction key.
"TXA" -keyword of a communication application;
"Y" - - -Y represents instruction execution success, and N represents instruction execution failure.
"Y" - - -Y represents that the frequency setting is successful, and N represents that the frequency setting is failed;
"0" - -emission suppression cue;
"0060" - -frequency wait time. Indicating how many seconds later it can be retransmitted again.
"15" - -xor check bytes.
S105: and receiving a result instruction fed back by the Beidou short message module, and if the result instruction is correct, sending the check short message data to the Beidou satellite through the antenna module in a frequency modulation manner.
More preferably, after the receiving of the result instruction fed back by the beidou short message module, the method further includes:
and analyzing the result instruction to obtain display result information, and feeding back the display result information to the user side, wherein the display result information comprises whether instruction execution is successful, whether frequency setting is successful and frequency waiting time.
The controller receives the instruction returned by the Beidou short message module, the program can analyze the instruction and extract useful information comprising three important information of whether the instruction is successfully executed, whether the frequency setting is successful and the time for waiting the next frequency, and the useful information is directly fed back to the user PC end in a Chinese character form of 'instruction execution success, frequency setting success and frequency waiting time of 60 seconds'. If the instruction is executed correctly, the data is transmitted to the Beidou satellite through onboard antenna frequency modulation. In the above instruction setting mode, because the set recipient address ID is self, within a few seconds, the RD module will receive the information forwarded by the satellite, and then the RD module will output a statement to the microcontroller, where the data frame is:
$BDTXR,1,0242286,2,,A468656C6C6FB1B1B6B7*46\r\n
more preferably, the sending the check short message data to the beidou satellite through the antenna module by frequency modulation includes:
and sending the verification short message data to a Beidou satellite through antenna module frequency modulation, and sending the verification short message data to corresponding Beidou short message equipment in the Beidou satellite according to address information in the verification short message data.
Namely, the Beidou satellite can send the analyzed address information to corresponding Beidou short message equipment for information communication.
More preferably, fig. 2 is a schematic flow chart of information receiving and displaying disclosed in the embodiment of the present invention. As shown in fig. 2, the package parsing method further includes:
s106: receiving a Beidou message instruction sent by a Beidou satellite, and analyzing and extracting the Beidou message instruction;
s107: and displaying the analyzed and extracted result at the user side.
When the Beidou message terminal is in a data receiving state, after the microcontroller receives corresponding data $ BDTXR,1,0242286,2, A468656C6C6FB1B1B6B7 x 46\ r \ n, the program analyzes the data, and key information such as a sending party card number 0242286 and received content '68656C 6FB1B1B6B 7' is extracted. The ASCLL code character string ' 68656C6C6FB1B1B6B7 ' (18-byte length) is converted into a hexadecimal array 68656C6C6F B1B1B6B7 (9-byte length, the ASCLL character string is ' hello Beidou '), and then feedback information is output to the user PC end in a mode of ' hello Beidou [ short message from 0242286 ].
Taking specific data as an example to perform a complete flow description:
in the embodiment of the invention, the self-sending and self-receiving hello Beidou is taken as an example for introduction:
1. assume that the card numbers sent and received are both 0242286. The built-in instruction constructs follow the format: command header + target operand _ concrete operation command; the user uses a built-in simplified instruction to send a data frame AT + BD _ SENDTO 0242286, namely hello Beidou, to the Beidou short message data transmission terminal through the PC terminal;
2. the microcontroller in the big dipper short message data transmission terminal receives the data sent by the user and analyzes and extracts the data frame: AT is an instruction head, BD is an operation object, SENDTO 0242286 is a specific instruction, wherein 0242286 is a destination card number, and hello Beidou is content to be sent.
3. And a microcontroller in the Beidou short message data transmission terminal packs the data and verifies the data so as to accord with a Beidou short message protocol. The packed data format is:
$CCTXA,0242286,1,2,A468656C6C6FB1B1B6B7*7F
wherein "CCTrxA" - - -instruction key; "0242286" -a recipient address ID; "1" -1 indicates normal communication, 0 indicates express communication; 2-2 represents mixed coding, 1 represents code coding, and 0 represents Chinese character coding; "A468656C 6C6FB1B1B6B 7" -textual content; "7F" - -XOR check byte.
The conversion from the "hello beidou" to the text content to be sent "68656C 6FB1B 6B 7" needs to be subjected to format conversion, the ASCLL code character string "hello beidou" is firstly converted into hexadecimal data 68656C 6F B1B1B6B7, wherein each english character occupies one byte, a Chinese character occupies two bytes, the hexadecimal data is forced to be two bits, the upper bits of less than two bits are filled with zero, for example, the characters to be sent are converted into hexadecimal and then written as 09. Then, the hexadecimal data 68656C 6F B1B1B6B7 is converted into an ASCLL code character string "68656C 6FB1B 6B 7" (the hexadecimal data is 363836353643364336464231423142364237), so that it can be seen that the original transmission content "hello beidou" (9 bytes length) is converted into "68656C 6FB1B 6B 7", and the data length is doubled.
4. Performing exclusive-or check (BCC check) on the packed frame header key, the address of the receiver, the communication mode, the coding mode and the text content according to bits, namely, the content is checked
"CCTXA, 0242286,1,2, A468656C6C6FB1B1B6B 7" is bitwise XOR-checked to obtain check bit 7F. The two ends of the above instruction are then added with $ and x separators to obtain the corresponding complete instruction segment: and $ CCTXA,0242286,1,2, A468656C6C6FB1B1B6B7 x 7F, and sending the instruction segment to the Beidou short message module. The big dipper short message module can analyze, process and execute the data received by the microcontroller and return to execute feedback, such as: BDFKI, TXA, Y, Y,0,0060 x 15 r n;
"BDFKI" - - -instruction key;
"TXA" -keyword of a communication application;
"Y" - - -Y represents instruction execution success, N represents instruction execution failure;
"Y" - - -Y represents that the frequency setting is successful, and N represents that the frequency setting is failed;
"0" - -emission suppression cue;
"0060" - -frequency wait time. Indicating how many seconds later a retransmission can be made;
"15" - -xor check bytes.
The microcontroller receives the instruction returned by the Beidou short message module, the program can analyze the instruction and extract useful information, wherein the useful information comprises three important information, namely whether the instruction is successfully executed, whether the frequency setting is successful and the time for waiting the next frequency, and the three important information are directly fed back to the PC end of the user in a Chinese character form, namely that the instruction is successfully executed, the frequency setting is successful and the frequency waiting time is 60 seconds.
5. If the instruction is executed correctly, the data is transmitted to the Beidou satellite through onboard antenna frequency modulation. Because the set address ID of the receiver is self, the RD module can receive the information forwarded by the satellite within a few seconds, then the RD module can output a statement to the microcontroller, and the data frame is as follows:
$BDTXR,1,0242286,2,,A468656C6C6FB1B1B6B7*46\r\n
after the microcontroller receives the data $ BDTXR,1,0242286,2, a468656C 6FB1B 6B7 x 46\ r \ n, the program analyzes the data, and extracts key information such as the sender card number 0242286 and the received content "68656C 6FB1B 6B 7". The ASCLL code character string ' 68656C6C6FB1B1B6B7 ' (18-byte length) is converted into a hexadecimal array 68656C6C6F B1B1B6B7 (9-byte length, the ASCLL character string is ' hello Beidou '), and then feedback information is output to the user PC end in a mode of ' hello Beidou [ short message from 0242286 ].
The scheme of the embodiment of the invention is to simplify the flow, facilitate the use of a user, enable the microcontroller to communicate with the Beidou short message module, and analyze and pack the data of the complex receiving instruction. The process is that a user operates a PC terminal to directly cross with a complex Beidou short message protocol, and the process is changed into that the user operates the PC terminal to cross with a microcontroller with a built-in simple and easy-to-use instruction, and the microcontroller further crosses with the Beidou short message protocol according to the simple and easy-to-use instruction, and further analyzes and extracts important information to a user PC end.
As shown in fig. 4, in the big dipper short message data transmission terminal, all the data receiving and analyzing of the big dipper short message original protocol and the original protocol encapsulation after the analysis are performed on the microcontroller in the embodiment of the present invention.
According to the encapsulation analysis method of the Beidou short message, disclosed by the embodiment of the invention, the complex receiving instruction and the simple user operation instruction are stored correspondingly in advance, so that a user can directly input the simple instruction in the subsequent use process, and then the data format required by the Beidou short message module is obtained through analysis; through the packaging simplification mode, the user operation process is greatly simplified, the equipment learning cost is reduced, and the use by a user is facilitated.
Example two
Please refer to fig. 5, fig. 5 is a schematic structural diagram of a Beidou short message encapsulation and analysis device disclosed in the embodiment of the present invention. As shown in fig. 5, the encapsulation and analysis device for the beidou short message may include:
the first receiving module 21: the Beidou satellite communication system is used for receiving a Beidou message instruction input by a user;
the analysis module 22: the Beidou information acquisition module is used for acquiring Beidou information of the Beidou information and the Beidou information of the Beidou information;
the packing verification module 23: the Beidou satellite communication terminal is used for carrying out data packing and verification processing on the Beidou satellite communication data based on a Beidou short message protocol to obtain verification short message data;
the sending module 24: the Beidou short message module is used for sending the check short message data to the Beidou short message module for data analysis;
the second receiving module 25: and the Beidou satellite short message module is used for receiving a result instruction fed back by the Beidou short message module, and if the result instruction is correct, the checking short message data is sent to the Beidou satellite through the antenna module in a frequency modulation manner.
More preferably, the data packing and verification processing of the Beidou message data based on the Beidou short message protocol to obtain verification short message data includes:
a conversion module: the Beidou information and communication terminal is used for carrying out data packaging conversion on Beidou information data based on a Beidou short message protocol to obtain short message data, wherein the short message data comprises frame header keywords, addressee addresses, a communication mode, an encoding mode and text contents;
a checking module: the device is used for carrying out XOR check on the short message data to obtain XOR check bytes, and storing the XOR check bytes into the short message data to obtain check short message data;
splicing modules: and adding corresponding separators at two ends of the instruction for checking the short message data respectively to obtain complete checking short message data.
More preferably, the package parsing method further includes:
a third receiving module: receiving a Beidou message instruction sent by a Beidou satellite, and analyzing and extracting the Beidou message instruction;
a display module: and displaying the analysis and extraction result at the user side.
More preferably, the format of the Beidou message instruction is any one of an instruction header + a target operation object or an instruction header + a target operation object _ specific operation instruction.
According to the encapsulation analysis method of the Beidou short message in the embodiment of the invention, the complex receiving instruction and the simple user operation instruction are stored correspondingly in advance, so that a user can directly input the simple instruction in the subsequent use process, and then the data format required by the Beidou short message module is obtained through analysis; through the packaging simplification mode, the user operation process is greatly simplified, the equipment learning cost is reduced, and the use by a user is facilitated.
EXAMPLE III
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure. The electronic device may be a computer, a server, or the like, and may also be an intelligent device such as a mobile phone, a tablet computer, a monitoring terminal, or the like, and an image acquisition device having a processing function. As shown in fig. 6, the electronic device may include:
a memory 510 storing executable program code;
a processor 520 coupled to the memory 510;
the processor 520 calls the executable program code stored in the memory 510 to execute part or all of the steps in the encapsulation and analysis method for the beidou short message in the first embodiment.
The embodiment of the invention discloses a computer-readable storage medium which stores a computer program, wherein the computer program enables a computer to execute part or all of the steps in the encapsulation and analysis method of Beidou short messages in the first embodiment.
The embodiment of the invention also discloses a computer program product, wherein when the computer program product runs on a computer, the computer is enabled to execute part or all of the steps in the encapsulation and analysis method of the Beidou short message in the first embodiment.
The embodiment of the invention also discloses an application publishing platform, wherein the application publishing platform is used for publishing the computer program product, and when the computer program product runs on a computer, the computer is enabled to execute part or all of the steps in the encapsulation and analysis method of the Beidou short message in the first embodiment.
In various embodiments of the present invention, it should be understood that the sequence numbers of the processes do not mean the execution sequence necessarily in order, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated units, if implemented as software functional units and sold or used as a stand-alone product, may be stored in a computer accessible memory. Based on such understanding, the technical solution of the present invention, which is a part of or contributes to the prior art in essence, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for causing a computer device (which may be a personal computer, a server, a network device, or the like, and may specifically be a processor in the computer device) to execute part or all of the steps of the method according to the embodiments of the present invention.
In the embodiments provided herein, it should be understood that "B corresponding to a" means that B is associated with a from which B can be determined. It should also be understood, however, that determining B from a does not mean determining B from a alone, but may also be determined from a and/or other information.
Those of ordinary skill in the art will appreciate that some or all of the steps of the methods of the embodiments may be implemented by hardware instructions associated with a program, which may be stored in a computer-readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM), or other Memory, a CD-ROM, or other disk, or a combination thereof, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
The encapsulation analysis method, the encapsulation analysis device, the electronic equipment and the storage medium for the Beidou short message disclosed by the embodiment of the invention are introduced in detail, a specific example is applied to the embodiment of the invention to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A Beidou short message encapsulation and analysis method is characterized by comprising the following steps:
receiving a Beidou message instruction input by a user;
analyzing and extracting the Beidou message instruction according to preset Beidou analysis configuration to obtain corresponding Beidou message data;
carrying out data packing and verification processing on the Beidou message data based on a Beidou short message protocol to obtain verification short message data;
sending the check short message data to a Beidou short message module for data analysis;
and receiving a result instruction fed back by the Beidou short message module, and if the result instruction is correct, sending the check short message data to the Beidou satellite through the antenna module in a frequency modulation manner.
2. The encapsulation analysis method for the beidou short message according to claim 1, wherein after receiving the result instruction fed back by the beidou short message module, the method further comprises:
and analyzing the result instruction to obtain display result information, and feeding back the display result information to the user side, wherein the display result information comprises whether instruction execution is successful, whether frequency setting is successful and frequency waiting time.
3. The encapsulation analysis method for the Beidou short message according to claim 1, wherein the transmitting the check short message data to the Beidou satellite through the antenna module by frequency modulation comprises:
and sending the verification short message data to a Beidou satellite through antenna module frequency modulation, and sending the verification short message data to corresponding Beidou short message equipment in the Beidou satellite according to address information in the verification short message data.
4. The encapsulation analysis method of the beidou short message in claim 1, wherein the encapsulation analysis method further comprises:
receiving a Beidou message instruction sent by a Beidou satellite, and analyzing and extracting the Beidou message instruction;
and displaying the analyzed and extracted result at the user side.
5. The encapsulation analysis method for the Beidou short message according to claim 1, wherein the Beidou message instruction is in a format of an instruction header and a target operation object, and the Beidou message instruction is in a format of a specific operation instruction of the instruction header and the target operation object.
6. The encapsulation analysis method for the beidou short message according to claim 1, wherein the carrying out data packing and verification processing on the beidou message data based on the beidou short message protocol to obtain verification short message data comprises:
carrying out data packaging conversion on the Beidou message data based on a Beidou short message protocol to obtain short message data, wherein the short message data comprises frame header keywords, addressee addresses, a communication mode, a coding mode and text contents;
performing exclusive-or check on the short message data to obtain exclusive-or check bytes, and storing the exclusive-or check bytes into the short message data to obtain check short message data;
and respectively adding corresponding separators at two ends of the instruction for checking the short message data to obtain complete checking short message data.
7. The encapsulation analysis method for the Beidou short message according to claim 6, wherein the text content comprises hexadecimal data.
8. The utility model provides an encapsulation analytical equipment of big dipper short message which characterized in that includes:
a first receiving module: the Beidou satellite communication system is used for receiving a Beidou message instruction input by a user;
an analysis module: the Beidou information acquisition module is used for acquiring Beidou information of the Beidou information and the Beidou information of the Beidou information;
a packaging checking module: the Beidou satellite communication terminal is used for carrying out data packing and verification processing on the Beidou satellite communication data based on a Beidou short message protocol to obtain verification short message data;
a sending module: the Beidou short message module is used for sending the check short message data to the Beidou short message module for data analysis;
a second receiving module: and the Beidou satellite short message module is used for receiving a result instruction fed back by the Beidou short message module, and if the result instruction is correct, the checking short message data is sent to the Beidou satellite through the antenna module in a frequency modulation manner.
9. An electronic device, comprising a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the method for encapsulating and parsing beidou short messages according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium having a computer-readable storage medium stored thereon, having a computer program stored thereon, characterized in that: which program, when being executed by a processor, is adapted to carry out the steps of the method of any one of claims 1 to 7.
CN202110559015.1A 2021-05-21 2021-05-21 Encapsulation analysis method and device for Beidou short message Active CN113364512B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110559015.1A CN113364512B (en) 2021-05-21 2021-05-21 Encapsulation analysis method and device for Beidou short message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110559015.1A CN113364512B (en) 2021-05-21 2021-05-21 Encapsulation analysis method and device for Beidou short message

Publications (2)

Publication Number Publication Date
CN113364512A CN113364512A (en) 2021-09-07
CN113364512B true CN113364512B (en) 2022-07-08

Family

ID=77527168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110559015.1A Active CN113364512B (en) 2021-05-21 2021-05-21 Encapsulation analysis method and device for Beidou short message

Country Status (1)

Country Link
CN (1) CN113364512B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114884927A (en) * 2021-10-22 2022-08-09 中国电力科学研究院有限公司 Method and device for improving transmission efficiency of DL/T698.45 protocol
CN114125717A (en) * 2022-01-27 2022-03-01 联通智网科技股份有限公司 Rescue information sending method and device
CN114499765B (en) * 2022-04-14 2022-08-16 航天宏图信息技术股份有限公司 Data transmission method and system based on Beidou short message
CN115242884A (en) * 2022-07-15 2022-10-25 国网陕西省电力有限公司榆林供电公司 Pole tower settlement monitoring data Beidou short message encapsulation protocol
CN115524721A (en) * 2022-09-06 2022-12-27 山重建机有限公司 Excavator data transmission device based on Beidou RDSS short message communication
CN117098120B (en) * 2023-10-19 2024-01-02 国网山西省电力公司晋城供电公司 Beidou short message data encryption and decryption method, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554059A (en) * 2015-11-25 2016-05-04 北京华油信通科技有限公司 Logistics transportation intelligent perception and position service system based on Beidou navigation technology
CN109257737A (en) * 2018-11-07 2019-01-22 北京天海达科技有限公司 A kind of Beidou long message sending device and method
CN109462433A (en) * 2018-11-07 2019-03-12 北京天海达科技有限公司 A kind of Big Dipper short message sending device and method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105098975B (en) * 2014-05-14 2017-09-01 国家电网公司 Power network Intelligent remote monitoring system and monitoring method based on Big Dipper short message communication
CN104092571B (en) * 2014-07-08 2017-12-05 成都振芯科技股份有限公司 A kind of satellite network remote auto configuration system and method based on the Big Dipper
CN105978923A (en) * 2015-10-21 2016-09-28 乐卡汽车智能科技(北京)有限公司 Remote wakeup method and system
CN105259558B (en) * 2015-10-29 2017-12-12 交通信息通信技术研究发展中心 A kind of half-duplex pseudo satellite, pseudolite device and its method of work based on Big Dipper RD functions
NL2016671B1 (en) * 2016-04-25 2017-11-07 Fugro N V GNSS Message Authentication.
CN110493243A (en) * 2019-08-27 2019-11-22 权浩 Information query method and device based on Big Dipper short message

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554059A (en) * 2015-11-25 2016-05-04 北京华油信通科技有限公司 Logistics transportation intelligent perception and position service system based on Beidou navigation technology
CN109257737A (en) * 2018-11-07 2019-01-22 北京天海达科技有限公司 A kind of Beidou long message sending device and method
CN109462433A (en) * 2018-11-07 2019-03-12 北京天海达科技有限公司 A kind of Big Dipper short message sending device and method

Also Published As

Publication number Publication date
CN113364512A (en) 2021-09-07

Similar Documents

Publication Publication Date Title
CN113364512B (en) Encapsulation analysis method and device for Beidou short message
EP2119257B1 (en) Tcp over sms
US10970951B2 (en) Data management method, apparatus, device, system and storage medium for smart lock
US7333479B2 (en) RFID system with packetized data storage in a mobile environment: methods, systems and program products
CN103532668B (en) A kind of method guaranteeing that TCP communication data are complete and correct
US7899642B2 (en) Optimized RFID/NFC BER testing
CN110119643A (en) Two-dimensional code generation method and device, two-dimensional code identification method and device
CN111083161A (en) Data transmission processing method and device and Internet of things equipment
CN105471917A (en) Data transmission method and system
KR20000056162A (en) Data transmission protocol and terminal using short message service
CN107426770B (en) Data communication method, data terminal and system based on data link layer
CN106658597A (en) Data transmitting method, sending device and receiving device
US11212658B2 (en) Method for providing near filed communication device information for user and system therefor
CN101903876A (en) The detection of the UTF-16 coding under the situation that does not have the syllable sequence mark in the convection type XML data and relevant printer, system, method and computer program product
US20080313291A1 (en) Method and apparatus for encoding data
CN110213756A (en) A kind of data transmission method, device and its relevant device
US8799350B2 (en) Method and device for establishing network communication compatibility of terminals
CN108446132A (en) A method of remotely updating electric power acquisition terminal software based on TFTP
US5838750A (en) Binary data electronic communication system
CN112073963A (en) Communication interaction data transmission method and device
CN106330397A (en) Method and device for implementing data interaction on ZigBee and Modbus RTU protocols
CN108039936A (en) A kind of communication protocol data bag and communication system for unmanned operation equipment
CN108134988A (en) A kind of motor vehicle long-range control method and system
CN108632053A (en) The processing method and processing device of business information
CN117061588B (en) Device access method, electronic device, and computer-readable storage medium

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