CN111181628B - Method, terminal and storage medium for transmitting voice data through Beidou short message - Google Patents

Method, terminal and storage medium for transmitting voice data through Beidou short message Download PDF

Info

Publication number
CN111181628B
CN111181628B CN202010022207.4A CN202010022207A CN111181628B CN 111181628 B CN111181628 B CN 111181628B CN 202010022207 A CN202010022207 A CN 202010022207A CN 111181628 B CN111181628 B CN 111181628B
Authority
CN
China
Prior art keywords
data
short message
beidou
voice
checksum
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
CN202010022207.4A
Other languages
Chinese (zh)
Other versions
CN111181628A (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.)
CHENGDU GUOXING COMMUNICATION CO LTD
Original Assignee
CHENGDU GUOXING COMMUNICATION 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 CHENGDU GUOXING COMMUNICATION CO LTD filed Critical CHENGDU GUOXING COMMUNICATION CO LTD
Priority to CN202010022207.4A priority Critical patent/CN111181628B/en
Publication of CN111181628A publication Critical patent/CN111181628A/en
Application granted granted Critical
Publication of CN111181628B publication Critical patent/CN111181628B/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/1853Satellite systems for providing telephony service to a mobile station, i.e. mobile satellite service
    • H04B7/18532Arrangements for managing transmission, i.e. for transporting data or a signalling message

Landscapes

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

Abstract

The invention discloses a method, a terminal and a storage medium for transmitting voice data through Beidou short messages. The method comprises the following steps: a sender acquires original data to be sent and calculates a checksum according to a frame format 1; checking whether the data is the Beidou voice short message or not, and generating Beidou short message data; sending short message data through a Beidou communication link; a receiving party receives short message data; and judging the type of the received data according to the operation of the checksum to obtain the data. The problem of compatibility of Beidou voice short messages and Beidou conventional short message communication protocols between new equipment and old equipment, which is brought by adding communication protocols in order to support Beidou voice communication, is solved.

Description

Method, terminal and storage medium for transmitting voice data through Beidou short message
Technical Field
The invention relates to the field of communication, in particular to a method, a terminal and a storage medium for transmitting voice data through Beidou short messages.
Background
The Beidou satellite navigation system supports the Beidou short message communication function and is conventionally used for transmitting text information. Because the satellite communication has the advantages of wide coverage and long transmission distance, the Beidou short message function is also developed by people for transmitting voice data, is used as value-added service, is provided for users and is used in occasions with low real-time requirements.
The original Beidou short message communication frame format is as follows:
frame format 1: command, command parameters, telegraph text x checksum < CR > < LF >;
except the telegraph text field, other fields are required by the Beidou system and must be filled according to corresponding requirements.
The original Beidou short message is used for transmitting voice, the message field needs to be re-planned in the conventional method, and field elements such as the type of the message (the Beidou voice short message or the Beidou conventional short message), the total number of voice packets, the serial number of the voice packets and the like are marked out for managing multi-packet transmission of the voice. One possible communication frame format of the big dipper voice short message is as follows:
frame format 2: command, command parameter, message type voice total packet number voice packet sequence number voice data sum < CR > < LF >;
one possible communication format of the big dipper conventional short message is:
frame format 3: command, command parameters, message type telegraph text and checksum < CR > < LF >.
The frame format 2 and the frame format 3 are mainly added with a 'message type' field on the basis of the frame format 1 and used for distinguishing the Beidou voice short message from the Beidou conventional short message.
In practical use, the Beidou voice faces the following application scenarios:
1. both communication A, B parties adopt the communication protocols of frame format 2, 3 to communicate, and both communication protocols are consistent, so A, B can correctly receive and transmit Beidou voice short message data or Beidou conventional short message data.
2. When the communication A party adopts a frame format 1 communication protocol and the communication B party adopts frame formats 2 and 3 communication protocols, the following situations exist:
1) the communication party A cannot correctly process Beidou voice short message data sent by the communication party B according to the frame format 2 or Beidou conventional short message data sent according to the frame format 3 because the communication protocol of the frame format 1 is adopted;
2) the communication B party adopts the communication protocols of the frame formats 2 and 3, and the original Beidou short message in the frame format 1 sent from the communication A party cannot correctly analyze the 'message type' field, so that the received data cannot be correctly processed.
Because both communication parties A, B adopt different communication frame formats, they cannot correctly process the beidou short message data of the other party.
3. The device a that communicates using the frame format 1 has been deployed in a large number of applications, and it is impossible to upgrade its software. If the communication B party (the device supporting the Beidou voice) has prior information of the communication A party, if the communication A party does not support the Beidou voice short message, the original Beidou short message can be sent to the communication A party by selecting the frame format 1, so that the communication A party can correctly process the original Beidou short message data. Similarly, the communication party B knows that the communication party A can only send the communication protocol of the frame format 1, and processes the received original Beidou short message from the communication party A according to the communication frame format 1, so that Beidou short message data from the communication party A can be correctly processed. Because the communication A party does not support the communication frame formats 2 and 3, the communication B party does not need to send Beidou voice short message data to the communication A party.
The method has the disadvantages that the communication B party needs to maintain an address table of the communication A party, so that the flexibility and the convenience of use are greatly reduced, and the practicability is lacked in reality.
Disclosure of Invention
The invention aims to provide a method, a terminal and a storage medium for transmitting voice data through Beidou short messages, aiming at the problems.
In order to achieve the purpose, the invention provides the following technical scheme:
the method for transmitting voice data through the Beidou short message comprises the following steps:
a sender acquires original data to be sent and calculates a checksum according to a frame format 1; checking whether the data is the Beidou voice short message or not, and generating Beidou short message data; sending short message data through a Beidou communication link; a receiving party receives short message data; and judging the type of the received data according to the operation of the checksum to obtain the data.
Further, in step S1, the frame format 1 is:
command, command parameters, telegram text x checksum < CR > < LF >.
Further, in the step S2, it is checked whether the data is a big dipper voice short message, and if not, the data is a normal short message, and the short message data is generated by using the frame format 1; if the Beidou voice short message is the Beidou voice short message, modifying the checksum value according to a modified checksum algorithm, and generating short message data by using a frame format 4, wherein the frame format 4 is as follows:
command, command parameters, telegram, corrected checksum < CR > < LF >.
Further, the checksum value obtained by the modified checksum algorithm is different from the checksum value obtained by calculating the frame format 1.
Further, in step S5, it is checked whether the checksum matches the checksum obtained by calculating the checksum according to the frame format 1, and if yes, the data is a normal short message; if the data are not consistent with the Beidou voice short message data, the data are discarded if the data are not consistent with the Beidou voice short message data.
Further, the recovery checksum algorithm is an inverse operation of the correction checksum algorithm.
Through big dipper short message transmission voice data terminal: the Beidou satellite short message data receiving and transmitting system comprises a data transmitting module, a data receiving module and a data processing module, wherein the data transmitting module is used for transmitting and receiving Beidou short message data, and the data processing module is used for calculating data and converting formats.
Further, the device also comprises a judging module used for judging the data type.
A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, performs the steps of a method of transmitting voice data via beidou short messages.
The invention has the beneficial effects that: according to the Beidou short message data processing method, different Beidou short message data are distinguished by combining the 'checksum' field with the correction checksum and the recovery checksum algorithm, so that the Beidou voice short message and the Beidou conventional short message can be correctly transmitted and processed between equipment which supports Beidou voice communication and equipment which does not support Beidou voice communication. And the upgrading treatment of the old equipment software is not required. The occupation of the message type field to the message field is reduced, and the utilization rate of the message field is improved. The problem of compatibility of Beidou voice short messages and Beidou conventional short message communication protocols between new equipment and old equipment, which is brought by adding communication protocols in order to support Beidou voice communication, is solved.
Drawings
Fig. 1 is a flowchart of a method for transmitting voice data through a beidou short message.
Fig. 2 is a structural diagram of a terminal that transmits voice data through a beidou short message.
Detailed Description
In order to more clearly understand the technical features, objects, and effects of the present invention, embodiments of the present invention will now be described with reference to the accompanying drawings.
In this embodiment, as shown in fig. 1, the method for transmitting voice data through a beidou short message includes: a sender acquires original data to be sent and calculates a checksum according to a frame format 1; checking whether the data is the Beidou voice short message or not, and generating Beidou short message data; sending short message data through a Beidou communication link; a receiving party receives short message data; and judging the type of the received data according to the operation of the checksum to obtain the data.
Further, in step S1, the frame format 1 is:
command, command parameters, telegram text x checksum < CR > < LF >.
Further, in the step S2, it is checked whether the data is a big dipper voice short message, and if not, the data is a normal short message, and the short message data is generated by using the frame format 1; if the Beidou voice short message is the Beidou voice short message, modifying the checksum value according to a modified checksum algorithm, and generating short message data by using a frame format 4, wherein the frame format 4 is as follows:
command, command parameters, telegram, corrected checksum < CR > < LF >.
Further, the checksum value obtained by the modified checksum algorithm is different from the checksum value obtained by calculating the frame format 1.
Further, in step S5, it is checked whether the checksum matches the checksum obtained by calculating the checksum according to the frame format 1, and if yes, the data is a normal short message; if the data are not consistent with the Beidou voice short message data, the data are discarded if the data are not consistent with the Beidou voice short message data.
Further, the recovery checksum algorithm is an inverse operation of the correction checksum algorithm.
Through big dipper short message transmission voice data terminal: the Beidou satellite short message data receiving and transmitting system comprises a data transmitting module, a data receiving module and a data processing module, wherein the data transmitting module is used for transmitting and receiving Beidou short message data, and the data processing module is used for calculating data and converting formats.
Further, the device also comprises a judging module used for judging the data type.
A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, performs the steps of a method of transmitting voice data via beidou short messages.
When the invention is used, a sender firstly obtains the original data to be sent, and calculates a checksum value according to the method of calculating the checksum in the frame format 1. And if the data is the Beidou voice short message data, further modifying the checksum value according to a modified checksum algorithm. The objective is to differentiate the "checksum after correction calculation" from the "checksum calculated in frame format 1" value. And when the equipment B needs to send the Beidou conventional short message, the checksum is not modified. The algorithm for correcting the checksum can be various, and a user can flexibly select the algorithm according to one principle: the checksum value calculated by the correction must be different from the checksum value calculated by the original communication protocol. The simplest method is to add or subtract a fixed value to the checksum calculated by the original communication protocol. And finally, the generated frame of Beidou short message data is sent out through a Beidou communication link. The receiver obtains a frame of short message data, and calculates a checksum value according to the method of calculating the checksum in the frame format 1. If the checksums are consistent, the data is the Beidou conventional short message data; if the data are not consistent with the Beidou voice short message data, recalculating the checksum value according to a recovery checksum algorithm, and if the data are consistent with the checksum value, indicating that the data are the Beidou voice short message data; if the data are not matched, the data are discarded if the data are wrong. According to the Beidou short message data processing method, different Beidou short message data are distinguished by combining the 'checksum' field with the correction checksum and the recovery checksum algorithm, so that the Beidou voice short message and the Beidou conventional short message can be correctly transmitted and processed between equipment which supports Beidou voice communication and equipment which does not support Beidou voice communication. And the upgrading treatment of the old equipment software is not required. The occupation of the message type field to the message field is reduced, and the utilization rate of the message field is improved. The problem of compatibility of Beidou voice short messages and Beidou conventional short message communication protocols between new equipment and old equipment, which is brought by adding communication protocols in order to support Beidou voice communication, is solved.
The foregoing shows and describes the general principles and features of the present invention, together with the advantages thereof. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which should fall within the scope of the claimed invention. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (5)

1. The method for transmitting voice data through the Beidou short message comprises the following steps:
s1: a sender acquires original data to be sent and calculates a checksum according to a frame format 1; frame format 1 is: command, command parameters, telegraph text x checksum < CR > < LF >;
s2: checking whether the data is the Beidou voice short message or not, and generating Beidou short message data; if the Beidou voice short message is not the Beidou voice short message, the data is a common short message, and the short message data is generated by using a frame format 1; if the message is the Beidou voice short message, modifying the checksum value according to a modified checksum algorithm, and using a frame format 4: command, command parameter, check sum of telegraph text and correction < CR > < LF > generate short message data; the modified checksum algorithm is an algorithm that makes the modified checksum different from the initial checksum calculated using frame format 1;
s3: sending short message data through a Beidou communication link;
s4: a receiving party receives short message data;
s5: judging the type of the received data according to the operation of the checksum; checking whether the check sum is consistent with the check sum obtained by the check sum calculation method according to the frame format 1, if so, the data is a common short message; if the data are not consistent with the Beidou voice short message data, the data are discarded if the data are not consistent with the Beidou voice short message data;
s6: data are obtained.
2. The method of claim 1, wherein the recovery checksum algorithm is an inverse of a modified checksum algorithm.
3. The terminal of the method for transmitting the voice data through the Beidou short message according to any one of claims 1 to 2, comprising a data sending module, a data receiving module and a data processing module, wherein the data sending module is used for receiving and sending the Beidou short message data, and the data processing module is used for calculating data and converting formats.
4. The terminal for transmitting voice data through the beidou short message according to claim 3, further comprising a judging module for judging the data type.
5. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of transmitting voice data via beidou short messages according to any one of claims 1 to 2.
CN202010022207.4A 2020-01-09 2020-01-09 Method, terminal and storage medium for transmitting voice data through Beidou short message Active CN111181628B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010022207.4A CN111181628B (en) 2020-01-09 2020-01-09 Method, terminal and storage medium for transmitting voice data through Beidou short message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010022207.4A CN111181628B (en) 2020-01-09 2020-01-09 Method, terminal and storage medium for transmitting voice data through Beidou short message

Publications (2)

Publication Number Publication Date
CN111181628A CN111181628A (en) 2020-05-19
CN111181628B true CN111181628B (en) 2022-02-08

Family

ID=70656257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010022207.4A Active CN111181628B (en) 2020-01-09 2020-01-09 Method, terminal and storage medium for transmitting voice data through Beidou short message

Country Status (1)

Country Link
CN (1) CN111181628B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112636808B (en) * 2020-11-17 2022-08-05 中国科学院紫金山天文台 Telescope remote data transmission and control method based on Beidou short message

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360271B (en) * 2007-08-01 2015-05-27 华为技术有限公司 Wireless bearing method, apparatus and system for circuit domain service data
US8201070B2 (en) * 2008-10-15 2012-06-12 Nokia Corporation System and method for pre-calculating checksums
SE537290C2 (en) * 2012-11-09 2015-03-31 True Heading Ab Method for transmitting state information from a transmitter to a receiver
CN103297196B (en) * 2013-06-20 2016-09-28 成都国星通信有限公司 A kind of cyclic redundancy check method of non-whole byte data
US9106257B1 (en) * 2013-06-26 2015-08-11 Amazon Technologies, Inc. Checksumming encapsulated network packets
CN205071021U (en) * 2015-09-18 2016-03-02 中央民族大学 Full duplex multiple access instant messaging terminal based on big dipper short message
CN105243811A (en) * 2015-10-23 2016-01-13 福州大学 Lithium ion energy storage battery pack management system based on Beidou short message communication
CN106792581A (en) * 2016-12-21 2017-05-31 福建星海通信科技有限公司 A kind of Big Dipper voice communication method and system

Also Published As

Publication number Publication date
CN111181628A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
CN108965484B (en) Internet of things data transmission method, system and terminal
CN101355524B (en) Method, system, server and terminal for processing information
CN108933727B (en) Message receipt processing method and device
CN109451032B (en) Message transmission system
EP2119257B1 (en) Tcp over sms
JP4275122B2 (en) Transmitting apparatus and related method for reducing delay variation
CN101855856B (en) Status report method in a wireless communication system
CN111083161A (en) Data transmission processing method and device and Internet of things equipment
US20110093546A1 (en) Method and system for sorting electronic communications
CN106452688A (en) Beidou data lost message retransmission method and system
CN101814971A (en) Method for transmitting mobile phone file
CN111629368B (en) Communication method of earphone and charging box, earphone and readable storage medium
CN110677200A (en) Data transmission method and device
CN101188618B (en) Method, system, server and terminal for canceling push message
CN111769915B (en) Data transmission method and related equipment
CN111181628B (en) Method, terminal and storage medium for transmitting voice data through Beidou short message
US20060089164A1 (en) Method and system for transmitting MMS notification message
CN106817689B (en) High-reliability data subscription and release method and system
US20050213533A1 (en) System and method for transmitting units of messages in a mobile communication system
CN107147561B (en) Instant messaging method and system based on XMPP protocol
KR101224225B1 (en) Submit report handling in smsip
CN112803950A (en) Data compression method, device and equipment and computer storage medium
CN113794620B (en) Message sending method, device, equipment, system and storage medium
WO2017067224A1 (en) Packet processing method and apparatus
CN114499750A (en) Data packet processing method, communication device and communication system

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