CN110740427A - 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
- CN110740427A CN110740427A CN201911018783.5A CN201911018783A CN110740427A CN 110740427 A CN110740427 A CN 110740427A CN 201911018783 A CN201911018783 A CN 201911018783A CN 110740427 A CN110740427 A CN 110740427A
- 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.)
- Granted
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 specific implementation mode of of the method comprises the steps of detecting communication application information sent by a user on target equipment, obtaining 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.
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
Short message communication is a unique function of a Beidou satellite system independently developed in China, realizes the communication function of a navigation satellite, is suitable for bidirectional information transmission containing position information under the condition of mobile phone signal interruption, and segment message communication is used as effective supplement of conventional communication and has been widely applied to the fields of atmosphere, ocean, public safety and the like, such as meteorological early warning, air defense forecast issuing, earthquake emergency communication and the like.
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.
embodiments of the present disclosure propose a method, an apparatus, and an electronic device for generating short message information to solve the technical problems mentioned in the above background section.
, embodiments of the present disclosure provide methods for generating short message information, the method includes detecting a communication application message sent by a user on a target device, obtaining 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 an encoding command according to the decoded communication information and decoded protocol information, and generating short message information according to the encoding command.
In , the communication application information includes user address, communication type, transmission mode and communication text content.
the communication information includes information type, user address, text form, sending time and communication text content.
In , the protocol information includes a protocol header and a protocol type.
In , decoding the communication information and the protocol information to obtain decoded communication information and decoded protocol information includes decoding the communication information and the protocol information based on a predefined decoding rule.
In , 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 includes the feedback information and the protocol information of the feedback information, selecting a code corresponding to the information in the feedback information sequence in a code comparison table based on a predefined code comparison table, and summarizing the codes according to the order of the information corresponding to the code in the feedback information sequence to obtain at least coding instructions.
In , the method further includes sending the short message information to a target device with a display function, and controlling the target device to display the short message information.
In a second aspect, embodiments of the present disclosure provide apparatuses for generating short message information, where the apparatuses include an obtaining unit 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 configured to decode the communication information and the protocol information to obtain decoded communication information and decoded protocol information, a generation unit configured to generate an encoding instruction according to the decoded communication information and decoded protocol information, and a second generation unit configured to generate short message information according to the encoding instruction.
In a third aspect, embodiments of the disclosure provide electronic devices including or more processors, and a storage device having or more programs stored thereon, which when or more programs are executed by or more processors cause or more processors to implement a method as in , of the second aspect.
In a fourth aspect, embodiments of the disclosure provide computer readable media having a computer program stored thereon, wherein the program when executed by a processor implements a method as in any of and of the second aspect.
of the above embodiments of the present disclosure have the following advantages that the communication information and the protocol information sent by the user can be obtained by detecting the communication application information sent by the user on the target device, then the communication information and the protocol information are decoded to obtain the decoded communication information and the decoded protocol information, further, a coding instruction is generated according to the decoded communication information and the decoded protocol information, and finally, short message information is generated according to the coding instruction, so that the time for sending information is effectively reduced, and the efficiency of information transmission 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 in which like or similar reference numbers identify like or similar elements throughout the figures, it being understood that the figures are schematic and that elements and elements are not are drawn to scale.
FIG. 1 is an architecture diagram of an exemplary system in which embodiments of the present disclosure may be applied;
fig. 2 is a flow diagram of 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 application scenarios of methods of generating short message information according to embodiments of the present disclosure;
fig. 4 is a schematic structural diagram of embodiments of an apparatus for generating short message information according to the present disclosure;
fig. 5 is a schematic block diagram of an electronic device suitable for use in implementing 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 "", "second", etc. mentioned in this disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence of the functions performed by these devices, modules or units.
It is noted that references to "", "plurality" in this disclosure are intended to be illustrative rather than limiting, and those skilled in the art will appreciate that references to " or more" are intended to be exemplary unless the context clearly indicates 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 embodiments of a method of generating short message information according to the present disclosure is shown.
In , the execution body (e.g. the server shown in fig. 1) generating the short message information can detect the communication application information sent by the user on the target device by satellite communication, then obtain the communication information and protocol information sent by the user, where the communication application information can be the application information used by the user to request the connection transmission information, the communication information can be the communication information obtained after the communication application by the target device, the protocol information can be the rule of information transmission between the target device and the terminal device.
In alternative implementations of embodiments, the communication application information includes user address, communication type, transmission mode and communication text content.
In alternative implementations of , the above-mentioned communication application information may be written in the format $ -TXA, xxxxxxx, x, x, c-c hh < CR > < LF >. here, $ -TXA represents the communication application information, xxxxxxx represents the user address, th x represents the communication category, the second x represents the transmission mode, c-c hh < CR > < LF > represents the content of the communication message, and the value range may refer to table 2-1.
TABLE 2-1 parameter description Table
In alternative implementations of , the above communication can be written in $ -TXR, x, xxxxxxx, x, hhmm, c-c hh < CR > < LF >. here, $ -TXR represents communication information, th x represents information category, xxxxxxx represents user address, second x represents text format, hhmm represents signaling time, c-c hh < CR > < LF > represents communication text content, and the range of values can be referred to tables 2-2.
Table 2-2 communication information field definitions
In alternative implementations of embodiments, the communication information includes information type, user address, text format, transmission time and communication text content, wherein th byte of the communication text content represents forestry protocol flag bit, for example, wherein the forestry protocol flag bit may be F0H.
In alternative implementations of embodiments, the protocol information includes a protocol header and a protocol type, the protocol header code table can refer to tables 2-3, and the protocol type code table can 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 alternative implementations of embodiments, the content encoding format of the communication application information may be referred to in FIG. 2A, where the information content portion is detailed forestry instructions, where the time-of-day precision may be seconds, where the time-of-day may be years, months, days, hours, minutes, seconds, where the time-of-day may be the time when the information was received by the terminal device, and where the time is displayed at the terminal device.
In alternative implementations of embodiments, the information encoding format may include a number of message blocks and corresponding plaintext, where the encoding is encoded according to a linear length y-4 x + b, where x represents the number of encoded subclasses, and each subclass has a length of 4 bytes, and specifically, x has a value in a range of [1, 14], where at least and at most 14 message blocks can be transmitted, and occupies a byte range of [4, 56 ]. where b represents the length sum of the terminator and the plaintext, and occupies a byte range of [3, 55 ]. where each message block includes a message subclass encoding, a subclass encoding, and a number.
In , the executive body can decode the communication information and the protocol information, the communication information can be an instruction sent by a target device to a terminal device, the translation code of the communication information and the protocol information is called decoding according to an instruction coding table, and specifically, the instruction comprises at least items including but not limited to a report instruction, a request support instruction and an SOS help-seeking instruction, the protocol coding table can refer to tables 3-1, 3-22, the plain text coding format can refer to FIG. 2E, and the instruction coding table and examples can refer to tables 4-1 to 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 of the names of the rescue teams in different places is not -fold and needs 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 | |
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 of | 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 , the execution body can generate encoding instructions according to the decoded communication information and the decoded protocol information, wherein the encoding instructions can be instructions sent by the terminal device to the target device, the encoding instructions include at least items including but not limited to inquiry instructions, rescue instructions and response instructions, the encoding instructions can refer to tables 4-4 to 4-6 and fig. 2l, the encoding format can 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 rescue instruction has situation map content, the message block coding format is Y ═ ax + b, x ═ 1 (only message blocks), a ═ 5+8m, and m takes a value range [1,6], that is, at least 1 point position and at most 6 point positions can be transmitted.
4-6 response instruction information content table
In alternative implementations of embodiments, decoding the communication information and the protocol information to obtain decoded communication information and decoded protocol information includes decoding the communication information and the protocol information based on predefined decoding rules.
In alternative implementations of , the generating the coded command includes generating a feedback information sequence according to the decoded communication information and the decoded protocol information, wherein the feedback information sequence includes the feedback information and the protocol information of the feedback information, selecting a code corresponding to information in the feedback information sequence in the code comparison table based on a predefined code comparison table, and summarizing the codes in the order of the information corresponding to the codes in the feedback information sequence to obtain at least coded commands, where the predefined code comparison table may be a predefined relationship table for characterizing a relationship between information and codes, for example, tables 3-1 and 3-0, and for example, the relationship may be table 3-1, and the code corresponding to the current position may be an ah1h or tables 3-3, and the wind fire extinguishing agent corresponds to code 20H.
The execution body may first select a code corresponding to the feedback information in the feedback information sequence from the code correlation table, and may also select a code corresponding to the protocol information in the feedback information sequence from the code correlation table.
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 , the execution body may summarize the encoding instructions according to the encoding instructions to generate short message information, where the short message information may be an information set used to describe the instruction information.
of the above embodiments of the present disclosure have the following advantages that firstly, communication information and protocol information sent by a user can be obtained by detecting communication application information sent by the user on a target device, then, the communication information and the protocol information are decoded to obtain decoded communication information and decoded protocol information, furthermore, a coding instruction can be generated according to the decoded communication information and decoded protocol information, and finally, short message information is generated according to the coding instruction.
The embodiments in the above embodiments of the present disclosure have the following advantages that by encoding and decoding information, the transmitted bytes are reduced, the transmission time is shortened, and the information confidentiality is relatively improved.
Fig. 3 shows schematic diagrams of application scenarios to which the methods for generating short message information of 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.
referring to fig. 4, as an implementation of the methods shown in the above figures, the present disclosure provides embodiments of apparatus for generating short message information, which correspond to the method embodiments shown in fig. 2, and which can be applied to various electronic devices.
As shown in fig. 4, the apparatus 400 for generating short message information according to embodiments includes an obtaining unit 401, a decoding unit 402, a generation unit 403, and a second generation unit 404, where 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, the decoding unit 402 is configured to decode the communication information and the protocol information to obtain decoded communication information and decoded protocol information, the generation unit 403 is configured to generate an encoding instruction according to the decoded communication information and the decoded protocol information, and the second generation unit 404 is configured to generate short message information according to the encoding instruction.
In , the generation unit 403 of the apparatus 400 for generating short message information may include a generation subunit configured to generate a feedback information sequence according to the decoded communication information and the decoded protocol information, where the feedback information sequence includes 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 a summarization subunit configured to summarize the codes according to an order of the information corresponding to the code in the feedback information sequence, so as to obtain at least coded commands.
In , the apparatus 400 for generating short message information further includes a display unit 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, shown is a schematic diagram of an electronic device (e.g., the server of FIG. 1) 500 suitable for use in implementing embodiments of the present disclosure the server shown in FIG. 5 is merely a example and should not be taken to limit the scope of use or functionality of 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 RAM 503, 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 RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, 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), speaker, vibrator, etc., storage devices 508 including, for example, magnetic tape, hard disk, etc., and communication devices 509. the communication devices 509 may allow the electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data although FIG. 5 illustrates the electronic device 500 having various devices, it is understood that not required that all of the illustrated devices be implemented or provided, that more or less devices may be implemented instead or provided, that each block illustrated in FIG. 5 may represent devices, or as desired multiple devices.
For example, embodiments of the present disclosure include computer program products comprising computer programs embodied on computer readable media, the computer programs containing program code for performing the methods shown in the flowcharts, in such embodiments the computer programs may be downloaded and installed from a network through the communication means 509, or installed from the storage means 508, or installed from the ROM 502.
In embodiments of the present disclosure, the 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, which may be embodied as or used in connection with a computer readable signal, such as, but is not limited to, a computer readable signal medium, or a computer readable storage medium, or any combination thereof, including but not limited to, an optical storage medium, or a computer readable signal, or a computer readable storage medium, or a computer readable signal, or a computer readable storage medium, or a computer readable signal, or any suitable combination thereof, which can be used, or a computer readable signal, or a computer readable medium, or a computer readable signal, or a computer readable storage medium, or a computer readable signal, or a computer readable medium, used in which.
In embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). examples of communications networks include local area networks ("LANs"), domain networks ("WANs"), 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 networks.
The computer readable medium carries or more programs, and when the or more programs are executed by the electronic device, the electronic device detects communication application information sent by a user on a target device, acquires communication information and protocol information sent by the user, decodes the communication information and the protocol information to obtain decoded communication information and decoded protocol information, generates a coding instruction according to the decoded communication information and the decoded protocol information, and generates 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 or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or a combination thereof, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages.
It should also be noted that in some alternative implementations, the functions noted in the blocks 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 being noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, may 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 described units can also be arranged in a processor, for example, kinds of processors comprise an acquisition unit, a decoding unit, a generation unit and a second generation unit, wherein the names of the units do not form a limitation to the units in a certain case, for example, the acquisition unit can also be described as a unit for detecting the communication application information sent by the user on the target device and acquiring the communication information and the protocol information sent by the user.
For example, without limitation, exemplary types of hardware logic components that may be used include field programmable arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and so forth.
It will be understood 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 does not depart from the spirit of the present disclosure.
Claims (10)
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 coding instruction according to the decoded communication information and the decoded protocol information;
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 any of claims 1-5, wherein the generating the coded instructions 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 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;
and summarizing the codes according to the sequence of the information corresponding to the codes in the feedback information sequence to obtain at least coding instructions.
7. The method of claim 6, 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.
8, 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;
an generation unit configured to generate an encoding instruction based on 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.
An electronic device of the type , comprising:
or more processors;
a storage device having or more programs stored thereon;
when the or more programs are executed by the or more processors, cause the or more processors to implement the method of any of claims 1-7.
A computer-readable medium having a computer program stored thereon, wherein the program when executed by a processor implements the method of any of claims 1-7 as recited in .
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 true CN110740427A (en) | 2020-01-31 |
CN110740427B 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) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111681424A (en) * | 2020-06-06 | 2020-09-18 | 浙江长元科技有限公司 | 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 |
CN115955524A (en) * | 2023-03-13 | 2023-04-11 | 杭州炬华科技股份有限公司 | 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 |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111681424A (en) * | 2020-06-06 | 2020-09-18 | 浙江长元科技有限公司 | 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 |
CN115955524A (en) * | 2023-03-13 | 2023-04-11 | 杭州炬华科技股份有限公司 | Message setting method, system, equipment and medium for electric energy meter communication based on SMS |
CN115955524B (en) * | 2023-03-13 | 2023-05-30 | 杭州炬华科技股份有限公司 | Message setting method, system, equipment and medium for electric energy meter communication based on SMS |
Also Published As
Publication number | Publication date |
---|---|
CN110740427B (en) | 2022-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110740427B (en) | Method and device for generating short message information and electronic equipment | |
Pescaroli et al. | A definition of cascading disasters and cascading effects: Going beyond the “toppling dominos” metaphor | |
Costa et al. | A survey of emergencies management systems in smart cities | |
Weidmann et al. | Pedestrian and evacuation dynamics 2012 | |
CN103020787A (en) | Flat graphic command system and method for firefighting | |
Řezník et al. | Advanced methods of cell phone localization for crisis and emergency management applications | |
Oliveira et al. | Early Warning Systems: Feasibility and End-Users' Point of View | |
KR20030084859A (en) | Personal disaster warning system using short message service | |
Bahir et al. | Real‐Time M ajor E vents M onitoring and A lert S ystem through Social Networks | |
CN104898142A (en) | Monitoring device and method thereof for operation state of aircraft or site vehicle | |
Mauludi et al. | Forest fire alert system | |
JP2021193545A (en) | Information linking server, information linking system, information linking method and program | |
Elíasson | Katla volcano in Iceland, potential hazards and risk assessment | |
Diaz et al. | Local disaster risk reduction management system utilizing unmanned aerial vehicles | |
Myrmel et al. | Cyber security for cities and rural areas in the Arctic region | |
Cocroft | The archaeology of military communications | |
US20240087463A1 (en) | Identifying an object in an area of interest | |
Guo et al. | Research on emergency communication system | |
Wu | Development of a Low Cost Earthquake Early Warning System in Taiwan | |
Albataineh et al. | Intelligent and Automated Emergency Evacuation of populated areas in an event of volcanic activity | |
Trumikaborworn et al. | Tsunami Evacuation Simulation using Multi-Agent Simulation: A Case Study of Khao Lak, Thailand | |
Osaragi et al. | Influence of word-of-mouth communication on large-scale evacuation after a severe earthquake | |
Kader et al. | A GIS-BASED ANALYSIS ON “EMERGENCY DISASTER RESPONSE”-A CASE STUDY ON CHITTAGONG CITY CORPORATION | |
Bowden | The Bombing of Darwin | |
Ohlendorf et al. | Landslide-generated Tsunami Warning in the United States: a Pilot |
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 |