CN110740427B - Method and device for generating short message information and electronic equipment - Google Patents
Method and device for generating short message information and electronic equipment Download PDFInfo
- Publication number
- CN110740427B CN110740427B CN201911018783.5A CN201911018783A CN110740427B CN 110740427 B CN110740427 B CN 110740427B CN 201911018783 A CN201911018783 A CN 201911018783A CN 110740427 B CN110740427 B CN 110740427B
- Authority
- CN
- China
- Prior art keywords
- information
- communication
- protocol
- decoded
- short message
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/03—Protocol definition or specification
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the disclosure discloses a method and a device for generating short message information and electronic equipment. One embodiment of the method comprises: detecting communication application information sent by a user on target equipment, and acquiring communication information and protocol information sent by the user; decoding the communication information and the protocol information to obtain decoded communication information and decoded protocol information; generating a coding instruction according to the decoded communication information and the decoded protocol information; and generating short message information according to the coding instruction. The embodiment realizes the method for generating the short message information and improves the efficiency of information transmission.
Description
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a method and a device for generating short message information and electronic equipment.
Background
The short message communication is a unique function of a Beidou satellite system independently developed in China, realizes the communication function of a navigation satellite, and is suitable for bidirectional information transmission containing position information under the condition of mobile phone signal interruption. Segment message communication is used as an effective supplement of conventional communication, and has been widely applied to the fields of atmosphere, ocean, public safety and the like, such as weather early warning, air defense forecast issuing, earthquake emergency communication and the like. The traditional fixed position design in the forest fire prevention emergency command communication has many and random transmission contents, and great difficulty is brought to information transmission.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure provide a method, an apparatus, and an electronic device for generating short message information, so as to solve the technical problems mentioned in the above background.
In a first aspect, some embodiments of the present disclosure provide a method for generating short message information, where the method includes: detecting communication application information sent by a user on target equipment, and acquiring communication information and protocol information sent by the user; decoding the communication information and the protocol information to obtain decoded communication information and decoded protocol information; generating a coding instruction according to the decoded communication information and the decoded protocol information; and generating short message information according to the coding instruction.
In some embodiments, the communication application information includes: user address, communication type, transmission mode and communication text content.
In some embodiments, the communication information includes: information type, user address, message form, sending time and communication message content.
In some embodiments, the protocol information includes: a protocol header and a protocol type.
In some embodiments, the decoding the communication information and the protocol information to obtain decoded communication information and decoded protocol information includes: and decoding the communication information and the protocol information based on a predefined decoding rule.
In some embodiments, the generating the short message information includes: generating a feedback information sequence according to the decoded communication information and the decoded protocol information; wherein, the feedback information sequence comprises the feedback information and the protocol information of the feedback information; selecting codes corresponding to information in the feedback information sequence in the code comparison relation table based on a predefined code comparison relation table; and summarizing the codes according to the sequence of the information corresponding to the codes in the feedback information sequence to obtain at least one coding instruction.
In some embodiments, the above method further comprises: and sending the short message information to target equipment with a display function, and controlling the target equipment to display the short message information.
In a second aspect, some embodiments of the present disclosure provide an apparatus for generating short message information, the apparatus including: the acquisition unit is configured to detect communication application information sent by a user on a target device, and acquire communication information and protocol information sent by the user; a decoding unit configured to decode the communication information and the protocol information to obtain decoded communication information and decoded protocol information; a first generating unit configured to generate an encoding instruction according to the decoded communication information and the decoded protocol information; and the second generating unit is configured to generate the short message information according to the coding instruction.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon which, when executed by one or more processors, cause the one or more processors to implement a method as in any one of the first and second aspects.
In a fourth aspect, some embodiments of the disclosure provide a computer readable medium having a computer program stored thereon, where the program when executed by a processor implements a method as in any of the first and second aspects.
One of the above-described various embodiments of the present disclosure has the following advantageous effects: the communication information and the protocol information sent by the user can be acquired by detecting the communication application information sent by the user on the target equipment; then decoding the communication information and the protocol information to obtain decoded communication information and decoded protocol information; generating a coding instruction according to the decoded communication information and the decoded protocol information; and finally, generating short message information according to the coding instruction. Therefore, the time for sending the information is effectively reduced, and the information transmission efficiency is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is an architectural diagram of an exemplary system in which some embodiments of the present disclosure may be applied;
fig. 2 is a flow diagram of some embodiments of a method of generating short message information according to the present disclosure;
Fig. 2A is a diagram for illustrating a content encoding format of communication application information;
FIG. 2B is a diagram illustrating an information content encoding format;
FIG. 2C is a diagram illustrating a message block coding structure and overall coding format;
FIG. 2D is a diagram illustrating an overall encoding format;
FIG. 2E is used to illustrate a plaintext encoding format;
FIG. 2F is a diagram illustrating overall encoding of a plaintext encoding format;
FIG. 2G is used to illustrate overall encoding;
FIG. 2H is used to illustrate an encoding format;
FIG. 2I is used to illustrate an SOS instruction;
FIG. 2J is used to illustrate overall encoding;
FIG. 2K is used to illustrate overall encoding;
FIG. 2L is used to illustrate an encode instruction;
FIG. 2M is a diagram illustrating an encoding format of an encoding instruction;
FIG. 2N is a diagram illustrating the overall encoding of an encoded instruction;
fig. 3 is a schematic diagram of an application scenario of a method of generating short message information according to some embodiments of the present disclosure;
fig. 4 is a schematic structural diagram of some embodiments of an apparatus for generating short message information according to the present disclosure;
FIG. 5 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 to which the method for generating short message information of the embodiments of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to send communication application information, communication information and protocol information.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices having a display screen and supporting information display, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 105 may be a server that provides various services, such as a background server that acquires communication information and protocol information from the terminal devices 101, 102, 103. The background server may perform processing such as decoding on the communication information and the protocol information, and feed back a processing result (e.g., the decoded communication information and the decoded protocol information) to the terminal device.
It should be noted that the method for generating short message information provided by the embodiments of the present disclosure may be executed by the terminal devices 101, 102, and 103, or may be executed by the server 105. Accordingly, the means for generating the short message information may be provided in the terminal devices 101, 102, 103, or may be provided in the server 105. And is not particularly limited herein.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules, for example, to provide distributed services, or as a single piece of software or software module. And is not particularly limited herein.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to fig. 2, a flow 200 of some embodiments of a method of generating short message information in accordance with the present disclosure is shown. The method for generating the short message information comprises the following steps:
In some embodiments, an executing entity (e.g., the server shown in fig. 1) that generates the short message information may detect, through satellite communication, the communication application information sent by the user on the target device. And then acquiring the communication information and the protocol information sent by the user. Here, the communication application information may be application information that a user uses to request connection transfer information. The communication information may be communication information obtained after the target device applies for communication. The protocol information may be a rule for the target device to perform information transmission with the terminal device. The communication information and the protocol information may be encoded in a Binary-Coded Decimal (BCD) encoding scheme. Specifically, the protocol information may include: protocol header, protocol type, time, location, and information.
In some optional implementations of some embodiments, the communication application information includes: user address, communication type, transmission mode and communication text content.
In some optional implementations of some embodiments, the writing format of the communication application information may be: and $ -TXA, xxxxxxx, x, x, c-c hh < CR > < LF >. Here, $ TXA denotes communication application information, xxxxxxx denotes a user address, the first x denotes a communication category, the second x denotes a transmission method, and c-c × hh < CR > < LF > denotes communication text content. The value ranges can be referred to in Table 2-1.
TABLE 2-1 parameter description Table
In some optional implementations of some embodiments, the writing format of the communication information may be: $ -TXR, x, xxxxxxx, x, hhmm, c-c × hh < CR > < LF >. Here, $ TXR denotes communication information. The first x represents the information category. xxxxxxx represents the user address. The second x represents the textual form. hhmm represents the time of signaling. c-c h < CR > < LF > represents the content of the communication text. The value ranges can be referred to in tables 2-2.
Table 2-2 communication information field definitions
In some optional implementations of some embodiments, the communication information includes: information type, user address, message form, sending time and communication message content. Here, the first byte of the communication text content represents a forestry protocol flag bit. Here, the forestry protocol flag bit may be F0H, for example.
In some optional implementations of some embodiments, the protocol information includes: a protocol header and a protocol type. The protocol header code tables may refer to tables 2-3. The code table of the protocol type may refer to tables 2-4.
Table 2-3 protocol header code table
Trade mark bit | Code | Remarks for note |
Forest fire prevention and rescue command for forestry | F0H | |
Forest fire prediction forecast | F1H | Reservation extension |
Post-disaster assessment of forest fire prevention | F2H | Reservation extension |
…… | …… | |
FHH |
Table 2-4 protocol type code table
Type of protocol | Code |
Reporting instructions | 0AH |
Request support instruction | 1AH |
SOS instruction | 2AH |
Response instruction | 3AH |
Inquiry command | 4AH |
Rescue instruction | 5AH |
In some optional implementations of some embodiments, the content encoding format of the communication application information may refer to fig. 2A. Here, the information content part is a detailed forestry instruction. Here, the date and time precision may be seconds. The time of day may be year, month, day, hour, minute, second. Here, the date and time may be a time when the terminal device receives the information, and the time is displayed on the terminal device. Here, the longitude and latitude may be accurate to 0.0001 minute (i.e., 6 milliseconds), and the uploaded value is multiplied by 10000. The height can be 1 meter in precision. The speed may be accurate to 1 kilometer. The heading may be accurate to 0.1 degrees and the upload value multiplied by 10. The information content encoding format can refer to fig. 2B.
In some alternative implementations of some embodiments, the information encoding format may consist of several message blocks and corresponding plaintext. The code is coded according to a linear length of y-4 x + b. Here, x denotes the number of encoded subclasses, each of which is 4 bytes in length. Specifically, the value range of x is [1, 14], which indicates that at least one message block up to 14 can be sent, and the occupied byte number range is [4, 56 ]. Where b denotes the sum of the length of the terminator and the plaintext, and the number of bytes occupied is [3, 55 ]. Wherein each message block comprises: message subclass coding, quantity. The whole encoding includes: protocol header, protocol type, time, longitude, latitude, altitude, speed, heading, subclass code, number, and code terminator. The message block coding structure and overall coding format may refer to fig. 2C. The overall encoding format may refer to fig. 2D.
In some embodiments, the execution body may decode the communication information and the protocol information. The communication information may be an instruction sent by the target device to the terminal device. Here, the translation of the communication information and the protocol information according to the instruction encoding table is called decoding. Specifically, the instructions include, but are not limited to, at least one of: a report order, a request support order, and an SOS distress order. The protocol encoding tables may refer to tables 3-1, 3-22, the plain text encoding format may refer to fig. 2E, and the instruction encoding tables and examples may refer to tables 4-1 through 4-3.
TABLE 3-1 location report
Encoding start bit | Location of fireman | Encoding | Unit of | Remarks for note |
A0H | Current position | A1H | Plaintext | |
Destination point | A2H | Plaintext | ||
Location of fire | A3H | Plaintext | ||
Range of fire scene | A4H | Plaintext | ||
Live line location | A5H | Plaintext | ||
Location of fire head | A6H | Plaintext | ||
... | ... | |||
Location query | AEH | Plaintext |
TABLE 3-2 code table for fighting team
Encoding start bit | Fighting team | Encoding | Remarks for note |
B0H | Team name | B1H | Plaintext |
... | ... | ||
Rescue team inquiry | BEH |
(Note: the classification methods of the names of the rescue teams in different places are inconsistent and need to be expressed in plain text.)
TABLE 3-3 CODE METER FOR FIRE EXTINGUISHER
TABLE 3-4 vehicle code sheet
Encoding start bit | Vehicle with a steering wheel | Encoding | Unit of |
03H | Command vehicle | 30H | Vehicle with a motor |
Troop carrying vehicle | 31H | Vehicle with a motor | |
Tool vehicle | 32H | Vehicle with a motor | |
Armored vehicle | 33H | Vehicle with a motor | |
Communication vehicle | 34H | Vehicle with a motor | |
Fire engine | 35H | Vehicle with a motor | |
Others | 36H | Vehicle with a motor | |
... | ... | ||
Vehicle interrogation | 3EH |
TABLE 3-5 FIRE FIELD FIRE CODE TABLE
Tables 3 to 5
TABLE 3-6 Meteorological Condition code sheet
TABLE 3-7 logistical situation code sheet
Encoding start bit | Logistics situation | Encoding | Remarks for note |
06H | Food delivery | 60H | |
Traffic discongesting | 61H | ||
Emergency communication | 62H | ||
Professional rescue | 63H | ||
Medical staff | 64H | ||
... | ... | ||
Logistical inquiries | 6EH |
TABLE 3-8 code table for fire extinguishing results
Encoding start bit | Fire extinguishing result | Encoding | Remarks for note |
07H | Has not yet controlled | 70H | |
Has been controlled | 71H | ||
No open fire is present | 72H | ||
Has been put out | 73H | ||
... | ... |
Tables 3-9 instruction status code tables
Encoding start bit | Instruction state | Encoding | Remarks for note |
08H | Go out immediately | 80H | |
On the way | 81H | ||
Reach the fire scene | 82H | ||
After the assembly is finished, standing by | 83H | ||
Priority first-aid | 84H |
Tables 3 to 9
Encoding start bit | Instruction state | Encoding | Remarks for note |
Is putting out a fire | 86H | ||
Evacuation immediately | 87H | ||
Evacuation in order | 88H | ||
Cleaning fire scene | 89H | ||
Guard fire scene | 8AH | ||
Need to support | 8BH | ||
TABLE 3-10 code tables for vegetation (land type) in fire scene
Tables 3-11 terrain description code tables
TABLE 3-12 traffic road condition code sheet
Encoding start bit | Traffic road conditions | Encoding | Remarks for note |
0BH | Highway with a light-emitting diode | B0H | |
General road | B1H | ||
Temporary road in forest area | B2H | ||
Pedestrian fire fighting access | B3H | ||
Temporary pedestrian passage | B4H | ||
No way | B5H | ||
Railway track | B6H | ||
... | ... |
Tables 3-13 residential or important facilities
Encoding start bit | Residential or important installations | Encoding | Remarks for note |
0CH | Residential area | C0H | |
Oil and gas station | C1H | ||
Oil and gas pipeline | C2H |
Tables 3 to 13
Encoding start bit | Residential or important installations | Encoding | Remarks for note |
Hazardous article facility | C3H | ||
Military installation | C4H | ||
Electric power installation | C5H | ||
High-voltage line corridor | C6H | ||
Nuclear facility | C7H | ||
... | ... |
TABLE 3-14 combustible State code tables
TABLE 3-15 dangerous case code table
Encoding start bit | Casualty | Encoding | Unit of |
0EH | Number of industrial injuries | E0H | Name (name) |
The number of people suffering from burn | E1H | Name (name) | |
Number of deaths | E2H | Name (name) | |
Number of lost people | E3H | Name (name) | |
Sudden change of wind direction | E4H | Name (name) | |
Sudden change of fire | E5H | Name (name) | |
... | ... | ||
TABLE 3-16 FIRE EXTINGUISHING METHOD CODES
Encoding start bit | Fire extinguishing method | Encoding | Remarks for note |
51H | Fire extinguishing method by beating | 10H | |
Wind fire-extinguishing method | 11H | ||
Fire extinguishing with water | 12H | ||
Fire extinguishing method by fire | 13H | ||
Fire extinguishing method by soil | 14H | ||
Aviation fire extinguishing method | 15H | ||
Chemical fire extinguishing method | 16H | ||
Explosion fire extinguishing method | 17H | ||
Fire-extinguishing method by separation | 18H | ||
Artificial precipitation fire extinguishing method | 19H | ||
TABLE 3-17 FIRE EXTINGUISHING CALORITIES CODE TABLE
Tables 3 to 17
TABLE 3-18 secure instruction code Table
Encoding start bit | Security instructions | Encoding | Remarks for note |
57H | Safety of travel | 70H | |
Attention-paid saving safety | 71H | ||
Safety zone | 72H | ||
Attention to safety | 73H | ||
Tables 3-19 support code tables
Encoding start bit | (Support) | Encoding | Remarks for note |
55H | Is that | 50H | |
Whether or not | 51H |
Table 3-20 elements of the fire scene situation map
Encoding start bit | Whether or not to support | Encoding | Remarks for note |
56H | Direction of assault | 60H | |
Direction of attack | 61H | ||
Clamp shock | 62H | ||
Dovetail curve arrow head | 63H | ||
Guard line (real) | 64H | ||
Guard line | 65H | ||
Expansion line (true) | 66H | ||
Unfolding line | 67H | ||
Helicopter carrying field | 68H | ||
Here, the subclass has no unit, and the code is 00H without remark, and indicates a null code or plaintext. For example, the number of group positions encodes-00H.
Tables 3-21 examples of unit detail type digit decoding
0AH | Topographic description | Encoding | Unit of | Remarks for note |
Altitude (H) level | A1H | Rice and its production process |
TABLE 3-22 exemplary table for decoding unitless fine class digit
TABLE 4-1 report instruction subclass content and coding
For example: as shown in fig. 2F, the reporting terminal device (0371898) reported that the current position of the group of 27 minutes 41 seconds longitude 116 degrees 34 minutes latitude 39 degrees 47 minutes 12 seconds 40 milliseconds altitude 64 meters speed 0 heading 237 degrees was in the hatschen at 11 o' clock 10 h 08/2019.
TABLE 4-2 request support order subclass content and encoding
Rescue instruction | Encoding | Thin class coding |
Fighting team | 10H | TABLE 3-2 |
Fire extinguisher | 11H | Tables 3 to 3 |
Vehicle with a steering wheel | 12H | Tables 3 to 4 |
Logistics | 13H | Tables 3 to 7 |
For example: as shown in fig. 2G, request for a speed of 0 at 11 o 'clock 27 min 41 sec longitude 116 o 34 min latitude 39 o 47 min 12 sec 40 ms altitude 64 m 0 course 237 o increase the fire fighting tool 2 gun 1 handle on 10 o' clock 08 m 2019.
TABLE 4-3 SOS information encoding Format Table
Wherein: by default, there is no plaintext, either. The encoding format may refer to FIG. 2H, and FIG. 2I may be referred to as an example SOS instruction.
In some embodiments, the execution body may generate the encoding instruction by giving a method of dealing with the decoded communication information and the decoded protocol information. The encoding instruction here may be an instruction sent by the terminal device to the target device. The encoding instructions include, but are not limited to, at least one of: inquiry command, rescue command and response command. The encoding instructions may refer to tables 4-4 through 4-6 and FIG. 2L. Here, the encoding format may refer to fig. 2M, and fig. 2N as an example.
TABLE 4-4 query instruction subclass content and encoding
For example: as shown in fig. 2J, this time (7/10/2019) is 11 o ' clock, 27 min, 41 sec, 116 o ' clock, 34 min, 39 o ' clock, 47 min, 12 sec, 40 ms, 64 m altitude, 0 speed, 237 degree course fire weather ensemble.
TABLE 4-5 center rescue instruction subclass
Command center first-aid instruction | Subclass coding | Thin class coding |
Fire suppression command status | 50H | Tables 3 to 9 |
Method of fire suppression instruction | 51H | Tables 3 to 16 |
Fire fighting tactical instruction | 52H | Tables 3 to 17 |
Fire fighting implement command | 53H | Tables 3 to 3 |
Fire suppression vehicle command | 54H | Tables 3 to 4 |
Security instructions | 55H | Tables 3 to 18 |
Situation of fire | 56H | Tables 3 to 20 |
For example, as shown in fig. 2K, at this point (7/10/2019), 11 o' clock 27 min 41 sec longitude 116 degree 34 min latitude 39 degree 47 min 12 sec 40 ms altitude 64 m speed 0 heading 237 degree safety.
Specifically, the following description is provided: the rescue instruction has situation map content, the message block coding format is Y ═ ax + b, x ═ 1 (only one message block), a ═ 5+8m, and m value range [1,6], that is, at least 1 point position can be transmitted, and at most 6 point positions can be transmitted.
4-6 response instruction information content table
In some optional implementation manners of some embodiments, decoding the communication information and the protocol information to obtain decoded communication information and decoded protocol information includes: and decoding the communication information and the protocol information based on a predefined decoding rule. Here, the predefined decoding rule may be a mode for decoding or a comparison table of decoding. In particular, reference may be made to the above table.
In some optional implementations of some embodiments, the generating the encoding instruction includes: generating a feedback information sequence according to the decoded communication information and the decoded protocol information; wherein, the feedback information sequence comprises the feedback information and the protocol information of the feedback information; selecting codes corresponding to information in the feedback information sequence in the code comparison relation table based on a predefined code comparison relation table; and summarizing the codes according to the sequence of the information corresponding to the codes in the feedback information sequence to obtain at least one coding instruction. Here, the predefined code mapping table may be a predefined relationship table for characterizing a correspondence between information and codes. For example, the above tables 3-1 and 3-0. For another example, the correspondence relationship may be that in table 3-1, the code corresponding to the current position is A1H. In the above tables 3 to 3, the wind fire extinguishing agent may correspond to the code 20H.
Here, the feedback information may be text information for representing feedback made to the decoded communication information. The predefined code mapping relation table may be a predefined relation table for characterizing a correspondence between information and codes, wherein the information includes, but is not limited to, at least one of the following: feedback information, protocol information. Specifically, the execution body may first select a code corresponding to the feedback information in the feedback information sequence from the code correlation table. Meanwhile, the code corresponding to the protocol information in the feedback information sequence can be selected from the code comparison relation table. And secondly, summarizing the selected codes to obtain a code set. And then, sequencing the codes in the code set to obtain a code sequence. Here, the sorting may be performed in an order of information corresponding to the coding in the feedback information sequence. Finally, the encoding sequence is determined as an encoding instruction.
As an example, the decoded communication information is "position a, fire scene position XX, fire head position XX", and the decoded protocol information is "forest fire prevention and rescue command; reporting instructions ". Feedback information can be generated according to the decoded communication information, and the system starts immediately; the safety of the rescue is noticed; protocol information of feedback information is generated by a water fire extinguishing method; an answer instruction ". Selecting a code 'starting immediately-80H' corresponding to the feedback information in the feedback information sequence from the code comparison relation table; extinguishing with water-12H; attention was paid to the-71H "rescue safety. Selecting encoded "protocol information of feedback information-F0H corresponding to the protocol information in the feedback information sequence from the encoding correlation table; answer instruction-3 AH ". Then, summarizing the selected codes to obtain a code set 80H; 12H; 71H; F0H; 3AH ". Then, the codes in the code set are sequenced to obtain a code sequence 80H; 71H; 12H; F0H; 3AH ". Finally, an encoding instruction "80H; 71H; 12H; F0H; 3AH ".
And step 204, generating short message information according to the coding instruction.
In some embodiments, the execution main body may summarize the coding instructions according to the coding instructions, and generate short message information. Here, the short message information may be an information set for describing the instruction information.
One of the above-described various embodiments of the present disclosure has the following advantageous effects: firstly, communication application information sent by a user on target equipment is detected, and communication information and protocol information sent by the user can be acquired; then, decoding the communication information and the protocol information to obtain decoded communication information and decoded protocol information; further, an encoding command can be generated based on the decoded communication information and the decoded protocol information; and finally, generating short message information according to the coding instruction.
One of the above-described various embodiments of the present disclosure has the following advantageous effects: by encoding and decoding the information, the transmitted bytes are reduced, the transmission time is shortened, and the information confidentiality is relatively improved. Meanwhile, the method is an elastic coding mode with adjustable byte length, and the byte length can be adjusted according to the transmitted content. Therefore, the efficiency of sending information is improved, and the sending process and the content are more standardized and rationalized. The method is a short message coding method with dynamic and random transmission content and linear and elastic transmission length. For example, the code may be used for emergency command of forest fire prevention.
Fig. 3 shows a schematic diagram of an application scenario to which the method for generating short message information of some embodiments of the present disclosure may be applied.
In the application scenario of fig. 3, first, the electronic device 301 (shown as a server in the figure) may detect the communication application information sent by the user on the target device, so that the communication information and the protocol information sent by the user may be acquired. Next, the electronic device 301 may decode the communication information and the protocol information to obtain decoded communication information and decoded protocol information. Again, the electronic device 301 may generate the encoding instruction according to the decoded communication information and the decoded protocol information. And finally, generating short message information according to the coding instruction. And sending the generated short message information to the target device 302.
As an example, the user transmits communication application information (e.g., "$ -TXA,123123,1,0, xxx < CR > < LF >") on the target device described above. The terminal device may obtain the communication information and the protocol information to be transmitted by the user after detecting the communication application information transmitted by the user. Then, the terminal device may decode the communication information and the protocol information to obtain decoded information (for example, "communication application information — user address is '123123', communication type is 'normal communication', transmission mode is 'chinese character', and communication text content is 'xxx'). And the terminal equipment can determine a plurality of instructions written according to the coding rule, and summarize the instructions to generate the short message information. And finally, sending the generated short message information to the target equipment.
The electronic device 301 may be hardware or software. When the electronic device is hardware, the electronic device may be implemented as a distributed cluster formed by a plurality of servers or terminal devices, or may be implemented as a single server or a single terminal device. When the electronic device is embodied as software, it may be implemented as a plurality of software or software modules, for example, for providing distributed services, or as a single software or software module. And is not particularly limited herein.
With further reference to fig. 4, as an implementation of the methods shown in the above-mentioned figures, the present disclosure provides some embodiments of an apparatus for generating short message information, which correspond to those of the method embodiments shown in fig. 2, and which may be applied in various electronic devices in particular.
As shown in fig. 4, the apparatus 400 for generating short message information according to some embodiments includes: an acquisition unit 401, a decoding unit 402, a first generation unit 403, and a second generation unit 404. The obtaining unit 401 is configured to detect communication application information sent by a user on a target device, and obtain communication information and protocol information sent by the user. A decoding unit 402, configured to decode the communication information and the protocol information to obtain decoded communication information and decoded protocol information. A first generating unit 403 configured to generate an encoding command according to the decoded communication information and the decoded protocol information. The second generating unit 404 is configured to generate short message information according to the encoding instruction.
In some embodiments, the first generating unit 403 of the apparatus 400 for generating short message information may include: a generating subunit configured to generate a feedback information sequence according to the decoded communication information and the decoded protocol information; wherein, the feedback information sequence comprises the feedback information and the protocol information of the feedback information; a selection subunit, configured to select, based on a predefined code comparison table, a code corresponding to information in the feedback information sequence in the code comparison table; and the summarizing subunit is configured to summarize the codes according to the order of the information corresponding to the codes in the feedback information sequence to obtain at least one coding instruction.
In some embodiments, the apparatus 400 for generating short message information further includes: and the display unit is configured to send the short message information to a target device with a display function and control the target device to display the short message information.
Referring now to fig. 5, a schematic diagram of an electronic device (e.g., the server of fig. 1) 500 suitable for use in implementing some embodiments of the present disclosure is shown. The server shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 5 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program, when executed by the processing device 501, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described above in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the apparatus; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: detecting communication application information sent by a user on target equipment, and acquiring communication information and protocol information sent by the user; decoding the communication information and the protocol information to obtain decoded communication information and decoded protocol information; generating a coding instruction according to the decoded communication information and the decoded protocol information; and generating short message information according to the coding instruction.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes an acquisition unit, a decoding unit, a first generation unit, and a second generation unit. The names of these units do not in some cases constitute a limitation to the unit itself, and for example, the acquiring unit may also be described as a unit that "detects communication application information transmitted by a user on a target device, acquires communication information and protocol information transmitted by the user".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.
Claims (9)
1. A method for generating short message information, comprising:
detecting communication application information sent by a user on target equipment, and acquiring communication information and protocol information sent by the user;
decoding the communication information and the protocol information to obtain decoded communication information and decoded protocol information;
generating a feedback information sequence according to the decoded communication information and the decoded protocol information; wherein the feedback information sequence comprises the feedback information and protocol information of the feedback information;
selecting a code corresponding to information in the feedback information sequence in a code comparison relation table based on a predefined code comparison relation table;
summarizing the codes according to the sequence of the information corresponding to the codes in the feedback information sequence to obtain at least one coding instruction;
and generating short message information according to the coding instruction.
2. The method of claim 1, wherein the communication application information comprises: user address, communication type, transmission mode and communication text content.
3. The method of claim 2, wherein the communicating information comprises: information type, user address, message form, sending time and communication message content.
4. The method of claim 1, wherein the protocol information comprises: a protocol header and a protocol type.
5. The method of claim 1, wherein said decoding the communication information and the protocol information to obtain decoded communication information and decoded protocol information comprises:
decoding the communication information and the protocol information based on predefined decoding rules.
6. The method of claim 1, further comprising:
and sending the short message information to target equipment with a display function, and controlling the target equipment to display the short message information.
7. An apparatus for generating short message information, comprising:
the acquisition unit is configured to detect communication application information sent by a user on a target device, and acquire communication information and protocol information sent by the user;
a decoding unit configured to decode the communication information and the protocol information to obtain decoded communication information and decoded protocol information;
a first generating unit configured to generate a feedback information sequence according to the decoded communication information and the decoded protocol information; wherein the feedback information sequence comprises the feedback information and protocol information of the feedback information;
A selection unit configured to select, based on a predefined code correlation table, a code corresponding to information in the feedback information sequence in the code correlation table;
the summarizing unit is configured to summarize the codes according to the sequence of the information corresponding to the codes in the feedback information sequence to obtain at least one coding instruction;
and the second generating unit is configured to generate the short message information according to the coding instruction.
8. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
9. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911018783.5A CN110740427B (en) | 2019-10-24 | 2019-10-24 | Method and device for generating short message information and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911018783.5A CN110740427B (en) | 2019-10-24 | 2019-10-24 | Method and device for generating short message information and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110740427A CN110740427A (en) | 2020-01-31 |
CN110740427B true CN110740427B (en) | 2022-02-11 |
Family
ID=69271263
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911018783.5A Active CN110740427B (en) | 2019-10-24 | 2019-10-24 | Method and device for generating short message information and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110740427B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111681424B (en) * | 2020-06-06 | 2022-03-04 | 浙江长元科技有限公司 | Method for processing illegal parking occupation event of fire fighting truck channel |
CN114884927A (en) * | 2021-10-22 | 2022-08-09 | 中国电力科学研究院有限公司 | Method and device for improving transmission efficiency of DL/T698.45 protocol |
CN115955524B (en) * | 2023-03-13 | 2023-05-30 | 杭州炬华科技股份有限公司 | Message setting method, system, equipment and medium for electric energy meter communication based on SMS |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103279462A (en) * | 2013-05-28 | 2013-09-04 | 浙江大学 | Data coding/ decoding method suitable for Bei Dou short message civil agreement |
CN109474590A (en) * | 2018-11-05 | 2019-03-15 | 四川神坤电液控制技术有限公司 | Big Dipper short message and day lead to the conversion method and device of short message |
CN110225472A (en) * | 2019-06-12 | 2019-09-10 | 北京航天宏图信息技术股份有限公司 | The condition of a disaster information transferring method, device and electronic equipment |
-
2019
- 2019-10-24 CN CN201911018783.5A patent/CN110740427B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103279462A (en) * | 2013-05-28 | 2013-09-04 | 浙江大学 | Data coding/ decoding method suitable for Bei Dou short message civil agreement |
CN109474590A (en) * | 2018-11-05 | 2019-03-15 | 四川神坤电液控制技术有限公司 | Big Dipper short message and day lead to the conversion method and device of short message |
CN110225472A (en) * | 2019-06-12 | 2019-09-10 | 北京航天宏图信息技术股份有限公司 | The condition of a disaster information transferring method, device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN110740427A (en) | 2020-01-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110740427B (en) | Method and device for generating short message information and electronic equipment | |
US8519860B2 (en) | Multimedia alerting | |
Dafallah | Design and implementation of an accurate real time GPS tracking system | |
CN108804398A (en) | The similarity calculating method and device of address text | |
CN104236558B (en) | Danger zone caution system and its method | |
JP7101296B2 (en) | Aircraft and information processing system | |
CN103020787A (en) | Flat graphic command system and method for firefighting | |
CN117474330A (en) | Multi-disaster differentiation early warning information generation method and equipment considering user portraits | |
Řezník et al. | Advanced methods of cell phone localization for crisis and emergency management applications | |
JP5160391B2 (en) | Earthquake distribution system | |
Hasan et al. | Smart city technology for disaster management: Demonstrating the use of Bluetooth Low Energy (BLE) beacons for emergency alert dissemination | |
Alves et al. | Lightning prediction using satellite atmospheric sounding data and feed-forward artificial neural network | |
CN104254050B (en) | A kind of contact information acquisition methods and terminal | |
Holle et al. | Human impacts, damages, and benefits from lightning in Arizona | |
Zhang et al. | Big Data Cognition for City Emergency Rescue | |
KR20200015310A (en) | Method and apparatus for investigating and managing victims of disasters | |
Diaz et al. | Local disaster risk reduction management system utilizing unmanned aerial vehicles | |
Coleman et al. | The proposed 1883 Holden tornado warning system: Its genius and its applications today | |
Yamamoto | Utilization of social media at the times of natural disasters in Japan | |
US20240087463A1 (en) | Identifying an object in an area of interest | |
Chang et al. | Models and application of firefighting vulnerability | |
KR20180040265A (en) | System and method of providing tourism information using Beacon | |
Phyo et al. | Optimal route finding to support fire emergency service | |
Albataineh et al. | Intelligent and Automated Emergency Evacuation of populated areas in an event of volcanic activity | |
Banzal | Disaster Early Warning Communication Systems |
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 |