CN115955524B - Message setting method, system, equipment and medium for electric energy meter communication based on SMS - Google Patents
Message setting method, system, equipment and medium for electric energy meter communication based on SMS Download PDFInfo
- Publication number
- CN115955524B CN115955524B CN202310232300.1A CN202310232300A CN115955524B CN 115955524 B CN115955524 B CN 115955524B CN 202310232300 A CN202310232300 A CN 202310232300A CN 115955524 B CN115955524 B CN 115955524B
- Authority
- CN
- China
- Prior art keywords
- coding
- information
- message
- sms
- electric energy
- 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
- 238000004891 communication Methods 0.000 title claims abstract description 98
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000012545 processing Methods 0.000 claims abstract description 30
- 238000004806 packaging method and process Methods 0.000 claims abstract description 11
- 230000004044 response Effects 0.000 claims description 14
- 230000005540 biological transmission Effects 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 11
- 238000012163 sequencing technique Methods 0.000 claims description 9
- 238000000605 extraction Methods 0.000 claims description 2
- 230000006870 function Effects 0.000 description 5
- 230000008439 repair process Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Mobile Radio Communication Systems (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
The application provides a message setting method, a message setting system, message setting equipment and message setting media for electric energy meter communication based on SMS. Relates to the technical field of electric energy meter communication. The method comprises the following steps: inquiring according to the application attribute of the electric energy meter to obtain a coding information table, searching corresponding coding information strips in the table according to the short message category information of a plurality of SMS short messages, obtaining corresponding safety coding indicating bits and key coding indicating bits in the coding information strips according to the safety level of the electric energy meter and the authority of a communication key, obtaining message coding indicating bits according to the safety coding indicating bits and the key coding indicating bits, carrying out coding information identification and coding arrangement splicing on the plurality of SMS short messages according to the safety coding indicating bits and the message coding indicating bits, and sub-packaging to obtain a request message so as to carry out communication data processing based on message information; therefore, the bottom communication protocol of the electric energy meter is obtained based on the position indication of the SMS and the coding information, the robustness of the electric energy meter protocol communication is improved, and the communication safety is ensured.
Description
Technical Field
The application relates to the technical field of electric energy meter communication, in particular to a message setting method, a system, equipment and a medium for electric energy meter communication based on SMS.
Background
In the communication service of the electric energy meter at present, the DLMS protocol provides data acquisition and service for an automatic meter reading system and an electric energy meter metering system, the common information communication mode of the electric energy meter is RF, PLC, GPRS, when the electric energy meter is used, the communication information of the electric energy meter is required to be transmitted by a standby communication means when the communication information of the electric energy meter cannot be communicated due to poor signals or arrearage interruption flow or parameter errors, the SMS short message which is generally widely adopted lacks certain safety, the SMS short message is widely applied in daily life and production, and the problem that the communication information of the electric energy meter is required to be hidden according to the communication information of the electric energy meter is required to be provided with different protection requirements due to different application ranges of the electric energy meter of different types or purposes, different privacy levels of functions and communication protocols, and the need to be hidden in the SMS short message according to the privacy and the safety of the electric energy meter is required to be transmitted, so that the communication information of the electric energy meter is required to be provided with safety protection, and the technology of the SMS short message is not provided with different message encoding of the electric energy meter is required to be provided according to the different message transmission information of the electric energy meter.
In view of the above problems, an effective technical solution is currently needed.
Disclosure of Invention
An object of the embodiment of the present application is to provide a message setting method, system, device and medium for electric energy meter communication based on SMS, which are used for alleviating the unstable condition of communication based on DLMS protocol in the prior art, realizing the acquisition of the bottom communication protocol of the electric energy meter based on the position indication of SMS short message and coding information, improving the robustness of electric energy meter protocol communication, and guaranteeing the communication safety.
In a first aspect, the present invention provides a message setting method for electric energy meter communication based on SMS, where the method is applied to an electric energy meter, and the method includes:
acquiring a security protocol package of the electric energy meter, wherein the security protocol package comprises application attributes, security levels and communication key rights;
inquiring and obtaining a corresponding coding information table in an electric energy meter coding information base according to the application attribute, wherein the coding information table comprises a plurality of coding information bars, and the coding information bars cover information fields of short message category information, safety coding indication information and key coding position information;
according to the short message category information of a plurality of SMS short messages transmitted by the electric energy meter, searching corresponding code information strips in the code information table;
inquiring and obtaining a corresponding security coding indicating bit in an information column of the security coding indicating information of the coding information bar according to the security level;
inquiring an information column corresponding to the key coding position information in the coding information bar according to the communication key authority to obtain a corresponding key coding indicating bit;
processing the safety code indication bit and the key code indication bit according to a preset encoder formula to obtain a message code indication bit;
and carrying out code information identification and arrangement splicing on a plurality of SMS messages according to the safety code indicating bit and the message code indicating bit to obtain a request message for electric energy meter communication.
Optionally, in the message setting method for SMS-based electric energy meter communication according to the present invention, the searching the corresponding code information bar in the code information table according to the message type information of the plurality of SMS messages transmitted by the electric energy meter, and searching the information bar of the security code indication information of the code information bar according to the security level to obtain the corresponding security code indication bit includes:
inquiring in a short message category information corresponding information column in the code information table according to the short message category information of the SMS short message to obtain a code information bar corresponding to the short message category information;
inquiring an information column corresponding to the safety coding indication information in the coding information bar according to the safety level of the electric energy meter to obtain a corresponding safety coding indication bit;
the security code indication bits include a first code location and a second code location.
Optionally, in the message setting method for SMS-based electric energy meter communication according to the present invention, the first coding position includes first coding information, the first coding information includes a short message coding mode and a total number, the second coding position includes second coding information, the second coding information includes a current short message sequence number, the message coding indication bit indicates a third coding position, and the third coding position includes message coding information.
Optionally, in the message setting method for SMS-based electric energy meter communication according to the present invention, the method further includes:
respectively reading a first coding position, a second coding position and a third coding position of the received SMS messages according to the character sequence;
respectively acquiring a short message coding mode, a total number, a current short message sequence number and message coding information of each SMS short message according to the first coding position, the second coding position and the third coding position;
when the total number of the received plurality of SMS messages is matched with the total number, the SMS messages are completely received;
sequencing all SMS messages which are completely received according to the corresponding current short message sequence number;
and splicing the message coding information corresponding to each sequenced SMS message to obtain a request message.
Optionally, in the message setting method for SMS-based electric energy meter communication according to the present invention, the security code indication bit and the key code indication bit both use ASCII codes, the key code indication bit indicates a key code position, the key code position includes key code information, and further includes:
and sequencing and splicing the key coding information corresponding to each sequenced SMS message according to the sequence to obtain key information.
Optionally, in the message setting method for SMS-based electric energy meter communication according to the present invention, the method further includes:
after finishing sorting and splicing processing on the coding information of the request messages of the SMS messages, determining DLMS response messages;
packaging the response message into at least one transmitting short message according to the short message coding mode;
and synchronously or asynchronously sending the transmission short message combined with the key information to a server.
In a second aspect, there is provided a message setup system for SMS-based electric energy meter communication, the system being applied to an electric energy meter, the system applying the message setup method for SMS-based electric energy meter communication according to any one of the preceding embodiments, the system comprising:
the receiving module is used for receiving a plurality of SMS messages, reading first coding information of a first coding position and second coding information of a second coding position according to the character sequence of the SMS messages, wherein the first coding information comprises a message coding mode and total number, and the second coding information comprises a current message sequence number;
the checking module is used for performing integrity checking when the total number of the received SMS messages is matched with the total number, and checking whether the received SMS messages are complete or not according to the current SMS sequence numbers corresponding to the SMS messages;
the extraction module is used for extracting the key coding information of the key coding position and the message coding information of the third coding position of each SMS after the received SMS messages pass the integrity check;
and the splicing module is used for sequencing and splicing the key coding information and the message coding information according to the current short message sequence number of each SMS short message to obtain key information and a request message.
Optionally, in the message setting system for SMS-based electric energy meter communication according to the present invention, the message setting system further includes:
the determining module is used for determining DLMS response messages;
the packaging module is used for packaging the response message into at least one transmitting short message according to a short message coding mode;
and the transmission module is used for synchronously or asynchronously sending the obtained transmission short message combined with the key information to the server.
In a third aspect, the present invention provides an electronic device comprising: a processing unit and a storage unit;
the storage unit has stored thereon a computer program which, when executed by the processing unit, performs the message setup method of SMS-based electric energy meter communication as described in any of the previous embodiments.
In a fourth aspect, the present invention provides a computer readable storage medium, on which a computer program is stored, which when executed by a processing unit performs the steps of the message setting method for SMS-based electric energy meter communication according to any one of the foregoing embodiments.
The invention provides a message setting method, a system, equipment and a medium for electric energy meter communication based on SMS. Inquiring according to the application attribute of the electric energy meter to obtain a coding information table, searching corresponding coding information strips in the table according to the short message category information of a plurality of SMS short messages, obtaining corresponding safety coding indicating bits and key coding indicating bits in the coding information strips according to the safety level of the electric energy meter and the authority of a communication key, obtaining message coding indicating bits according to the safety coding indicating bits and the key coding indicating bits, carrying out coding information identification and coding arrangement splicing on the plurality of SMS short messages according to the safety coding indicating bits and the message coding indicating bits, and sub-packaging to obtain a request message so as to carry out communication data processing based on message information; therefore, the bottom communication protocol of the electric energy meter is obtained based on the position indication of the SMS and the coding information, the robustness of the electric energy meter protocol communication is improved, and the communication safety is ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a message setting method for SMS-based electric energy meter communication according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for setting a message for SMS-based electric energy meter communication according to an embodiment of the present application to obtain a security code indicator bit;
fig. 3 is a schematic structural diagram of a message setting system for SMS-based electric energy meter communication according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an example electronic device according to a message setting method for SMS-based electric energy meter communication according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
Some embodiments of the present invention are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
According to an embodiment of a message setup method for SMS-based electric energy meter communication provided in the present invention, it should be noted that, the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and although a logic sequence is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in a different sequence than the sequence illustrated herein.
Referring to fig. 1, fig. 1 is a flowchart of a message setting method for SMS-based electric energy meter communication in some embodiments of the present application. The method is used in terminal equipment, such as computers, mobile phone terminals and the like. The message setting method for the electric energy meter communication based on the SMS comprises the following steps:
s101, acquiring a security protocol packet of an electric energy meter, wherein the security protocol packet comprises application attributes, security levels and communication key rights;
s102, inquiring and obtaining a corresponding coding information table in an electric energy meter coding information base according to the application attribute, wherein the coding information table comprises a plurality of coding information bars, and the coding information bars cover information fields of short message category information, safety coding indication information and key coding position information;
s103, searching corresponding code information strips in the code information table according to the short message category information of a plurality of SMS short messages transmitted by the electric energy meter;
s104, inquiring and obtaining a corresponding security coding indication bit in an information column of the security coding indication information of the coding information bar according to the security level;
s105, inquiring an information column corresponding to the key coding position information in the coding information bar according to the communication key authority to obtain a corresponding key coding indicating bit;
s106, processing the safety coding indicating bit and the secret key coding indicating bit according to a preset encoder formula to obtain a message coding indicating bit;
and S107, carrying out code information identification and arrangement splicing on a plurality of SMS messages according to the safety code indication bit and the message code indication bit to obtain a request message for electric energy meter communication.
It should be noted that, because the electric energy meter has a bad signal or other abnormal conditions to cause the communication when transmitting information (such as meter reading information, metering information, fault repair information, emergency information, etc.) to the server, so that the electric energy meter adopts the hidden coding information of the SMS short message to form a request message, and sends the electric energy meter communication information to the server, the scheme adopts the hidden coding information of the SMS short message to transmit the SMS short message, searches and combines the coding information of a plurality of SMS short messages into the request message information through the coding information meter, transmits the meter reading information or metering information or fault repair information or emergency information of the electric energy meter, etc. to the server, so that the communication information transmitted by the electric energy meter has a hidden protection function, transmits the request message through the form of the SMS short message, after the complete whole group of short message is collected, the request message is formed based on the short message coding information, the complete SMS short message is obtained based on the protocol data of an application layer such as DLMS, the complete SMS short message is identified, sequenced and spliced, the coding information contained in the SMS short message is identified, and coded, and the coding information in the short message is acquired according to a preset coding identification method, and the identification code is identified by indicating the coding position; establishing coding information tables aiming at different types of electric energy meters, and storing the coding information tables in a preset electric energy meter coding information base, wherein the electric energy meter coding information base is a third party platform for storing short message coding information of various electric energy meters, and the coding information tables can be used for carrying out position identification and acquisition on the coding information in the corresponding electric energy meter transmission SMS short messages; the electric energy meter comprises a safety protocol packet for communication, the safety protocol packet can represent the application attribute, the safety level and the communication key authority of the electric energy meter, the electric energy meter has different application attribute, safety level and communication key authority due to different categories, the application attribute represents that the electric energy meter is applied to commercial, civil, special industry or military and other attributes, the safety level is respectively set to I, II, III, IV level according to the specific use, the installation position, the importance level and other contents of the electric energy meter, the communication key authority reflects the encryption level and the encryption authority of the data transmission of the electric energy meter, the communication key authority is divided into one, two, three and four levels, the corresponding coding information table is obtained by inquiring the electric energy meter coding information base according to the application attribute of the electric energy meter, the information column is arranged in the coding information table, the information column content comprises short message category information, safety coding indication information and key coding position information, the code information table comprises a plurality of code information bars, the code information bars are numbered, the content of the code information bars corresponds to information bars (see the code information table of the civil electric energy table in the attached table 1), the comparison and the search are carried out according to the short message category information of a plurality of SMS short messages and the information bars of the short message category information, the short message category information is report number, measurement, fault report repair and emergency, after the code information bar corresponding to the short message category information is found, the information bars of the safety code indication information in the code information bars are searched according to the safety level of the electric energy table, the safety code indication bits corresponding to the safety level are found, the information bars of the key code position information in the code information bars are searched according to the communication key authority of the electric energy table, the key code indication bits corresponding to the communication key authority are found, and processing the safety coding indicating bit and the key coding indicating bit according to a preset encoder formula to obtain a message coding indicating bit, and finally carrying out code information identification and arrangement splicing of the plurality of SMS messages one by one according to the safety coding indicating bit and the message coding indicating bit, thereby finally obtaining the request message.
Coding information table of civil electric energy meter with attached table 1
Referring to fig. 2, fig. 2 is a flowchart of a method for obtaining a security code indicator in a message setting method for SMS-based electric energy meter communication according to some embodiments of the present application. According to the embodiment of the invention, the corresponding code information bar is searched in the code information table according to the short message category information of the plurality of SMS short messages transmitted by the electric energy meter, and the corresponding safety code indication bit is obtained by searching in the information column of the safety code indication information of the code information bar according to the safety level, specifically:
s201, inquiring in a message column corresponding to the short message category information in the code information table according to the short message category information of the SMS short message to obtain a code information bar corresponding to the short message category information;
s202, inquiring information bars corresponding to the safety coding indication information in the coding information bar according to the safety level of the electric energy meter to obtain corresponding safety coding indication bits;
the security code indication bits include a first code location and a second code location.
It should be noted that, referring to fig. 1, after obtaining a code information table corresponding to an application attribute of the electric energy meter, a query is performed in an information field of the short message category information in the code information table according to the short message category information of the SMS short message, a code information bar corresponding to the short message category information is obtained, and a query is performed in the information field corresponding to the security code indication information in the code information bar according to a security level corresponding to the electric energy meter, so as to obtain a corresponding security code indication bit, where the security code indication bit includes a first coding position and a second coding position.
According to the embodiment of the invention, the first coding position comprises first coding information, the first coding information comprises a short message coding mode and a total number, the second coding position comprises second coding information, the second coding information comprises a current short message sequence number, the message coding indicating bit indicates a third coding position, and the third coding position comprises message coding information.
It should be noted that, referring to the attached table 1, the first coding position includes first coding information, the information includes a short message coding mode and a total number, the second coding position includes second coding information, the information includes a current short message sequence number, the message coding indicating bit indicates a third coding position, the third coding position includes message coding information, locating and searching are performed according to the coding position and the corresponding coding position of the indicating bit in the SMS short message, and the corresponding coding information is found and further processed, where the message coding indicating bit is obtained by processing through a preset encoder formula according to a security coding indicating bit and a key coding indicating bit, and the preset encoder formula is: message coding indicating bit= |maximum value of two numbers of first coding position-second coding position + key coding indicating bit|, namely subtracting the second coding position from the maximum value of two numbers of first coding position and adding the key coding indicating bit, and taking absolute value of the result; if a civil electric energy meter a is subjected to fault repair, the security level is level II, the communication key authority is level three, the corresponding code information bar of the electric energy meter a is 3, the first code position in the security code indicating bit is 11, 15, the second code position is 8, and the key code indicating bit is 14, the message code indicating bit= |15-8+14|=21, namely the code information positioning of the message code mode, the total number, the current message sequence number and the message code information in each SMS message of the electric energy meter a is 11, 15, 8, 14 and 21 respectively.
According to an embodiment of the present invention, further comprising:
respectively reading a first coding position, a second coding position and a third coding position of the received SMS messages according to the character sequence;
respectively acquiring a short message coding mode, a total number, a current short message sequence number and message coding information of each SMS short message according to the first coding position, the second coding position and the third coding position;
when the total number of the received plurality of SMS messages is matched with the total number, the SMS messages are completely received;
sequencing all SMS messages which are completely received according to the corresponding current short message sequence number;
splicing the message coding information corresponding to each sequenced SMS short message to obtain a request message;
the security coding indicating bit and the secret key coding indicating bit are both coded by ASCII;
the key code indication bit indicates a key code location, the key code location including key code information;
ordering and splicing the key coding information corresponding to each ordered SMS short message according to the sequence to obtain key information;
after finishing sorting and splicing processing on the coding information of the request messages of the SMS messages, determining DLMS response messages;
packaging the response message into at least one transmitting short message according to the short message coding mode;
and synchronously or asynchronously sending the transmission short message combined with the key information to a server.
It should be noted that, reading each coding position of a short message according to a character sequence of a plurality of received SMS short messages, and respectively obtaining a short message coding mode, a total number, a current short message serial number and message coding information of each SMS short message, analyzing the received SMS short messages, and when the total number of the received SMS short messages is matched with the total number, the SMS short messages are completely received, so that a packet of short messages can be formed, and if the total number of the received SMS short messages is not matched with the total number of the received SMS short messages, the other short messages need to wait until the short messages are collected, and then the coded messages are split, extracted, ordered and spliced to obtain a request message; in addition, both the safety coding indicating bit and the key coding indicating bit adopt ASCII coding, the key coding indicating bit indicates the key coding position and comprises key coding information, the corresponding key coding information of each SMS short message after sequencing is sequenced and spliced according to the sequence to obtain the key information, after the sequencing and splicing processing is completed on the coding information of the request message of a plurality of SMS short messages, a DLMS response message is determined, the response message is packaged into at least one transmitting short message according to a short message coding mode, the transmitting short message is synchronously or asynchronously transmitted to a server by combining the key information, the bottom communication protocol of the electric energy meter is obtained based on the position indication of the SMS short messages and the coding information, the robustness of the protocol communication of the electric energy meter is improved, and the communication safety is ensured.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a message setup system for SMS-based electric energy meter communication according to some embodiments of the present application. According to an embodiment of the present invention, the system is applied to an electric energy meter, the system applies the message setting method for SMS-based electric energy meter communication as described in any one of the above, and the system includes:
the receiving module 301 is configured to receive a plurality of SMS messages, and read, according to an alphabetical order of the SMS messages, first encoded information at a first encoding position, and second encoded information at a second encoding position, where the first encoded information includes a message encoding manner and a total number, and the second encoded information includes a current message sequence number;
the checking module 302 is configured to perform integrity check when the total number of the received SMS messages matches the total number, and check whether the received SMS messages are complete according to the current SMS sequence number corresponding to each SMS;
the extracting module 303 is configured to extract key coding information of a key coding position and message coding information of a third coding position of each SMS message after the received SMS messages pass the integrity check;
and the splicing module 304 is configured to sort and splice the key coding information and the message coding information according to the current short message sequence number of each SMS short message, so as to obtain key information and a request message.
According to an embodiment of the present invention, the system further comprises:
the determining module is used for determining DLMS response messages;
the packaging module is used for packaging the response message into at least one transmitting short message according to a short message coding mode;
and the transmission module is used for synchronously or asynchronously sending the obtained transmission short message combined with the key information to the server.
Referring to fig. 4, fig. 4 is an example electronic device of a message setting method for SMS-based electric energy meter communication in some embodiments of the present application, where the electronic device includes: a processing unit 401 and a storage unit 402;
the storage unit has stored thereon a computer program which, when executed by the processing unit, performs the message setup method of SMS-based electric energy meter communication as described in any of the above.
It should be noted that the devices are interconnected by a bus system and/or other forms of connection mechanisms (not shown). It should be noted that the components and structures of the electronic device shown in fig. 4 are exemplary only and not limiting, as the electronic device may have other components and structures as desired.
The processing unit 401 may be a Central Processing Unit (CPU), a Graphics Processing Unit (GPU) or other form of processing unit with data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
The storage unit 402 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. Volatile memory can include, for example, random Access Memory (RAM) and/or cache memory (cache) and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like. One or more computer program instructions may be stored on a computer readable storage medium and the processing unit 401 may run the program instructions to implement the client functionality and/or other desired functionality handled by the processing unit 402 in embodiments of the present invention. Various applications and various data, such as various data used and/or generated by the applications, may also be stored in the computer readable storage medium.
The embodiment of the application also provides a computer readable storage medium, and a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processing unit, the steps of the message setting method for SMS-based electric energy meter communication are executed.
The invention discloses a message setting method, a system, equipment and a medium for SMS-based electric energy meter communication, which are characterized in that a coding information table is obtained according to electric energy meter application attribute inquiry, corresponding coding information strips are searched in the table according to short message category information of a plurality of SMS short messages, corresponding safety coding indication bits and key coding indication bits are obtained in the coding information strips according to electric energy meter safety level and communication key authority, message coding indication bits are obtained according to the safety coding indication bits and the key coding indication bits, coding information identification and coding arrangement splicing are carried out on the plurality of SMS short messages according to the safety coding indication bits combined with the message coding indication bits, and request messages are obtained in a split mode so as to carry out communication data processing based on message information; therefore, the bottom communication protocol of the electric energy meter is obtained based on the position indication of the SMS and the coding information, the robustness of the electric energy meter protocol communication is improved, and the communication safety is ensured.
The computer program product of the method, the system and the apparatus provided in the embodiments of the present invention includes a computer readable storage medium storing a program code, where the instructions included in the program code may be used to execute the method in the foregoing method embodiment, and specific implementation may refer to the method embodiment and will not be described herein.
The device provided by the embodiment of the present invention has the same implementation principle and technical effects as those of the foregoing method embodiment, and for the sake of brevity, reference may be made to the corresponding content in the foregoing method embodiment where the device embodiment is not mentioned.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processing unit. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method of the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above examples are only specific embodiments of the present invention for illustrating the technical solution of the present invention, but not for limiting the scope of the present invention, and although the present invention has been described in detail with reference to the foregoing examples, it will be understood by those skilled in the art that the present invention is not limited thereto: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.
Claims (10)
1. The message setting method for the electric energy meter communication based on the SMS is characterized by comprising the following steps:
acquiring a security protocol package of the electric energy meter, wherein the security protocol package comprises application attributes, security levels and communication key rights;
inquiring and obtaining a corresponding coding information table in an electric energy meter coding information base according to the application attribute, wherein the coding information table comprises a plurality of coding information bars, and the coding information bars cover information fields of short message category information, safety coding indication information and key coding position information;
according to the short message category information of a plurality of SMS short messages transmitted by the electric energy meter, searching corresponding code information strips in the code information table;
inquiring and obtaining a corresponding security coding indicating bit in an information column of the security coding indicating information of the coding information bar according to the security level;
inquiring an information column corresponding to the key coding position information in the coding information bar according to the communication key authority to obtain a corresponding key coding indicating bit;
processing the safety code indication bit and the key code indication bit according to a preset encoder formula to obtain a message code indication bit;
and carrying out code information identification and arrangement splicing on a plurality of SMS messages according to the safety code indicating bit and the message code indicating bit to obtain a request message for electric energy meter communication.
2. The message setting method for SMS-based electric energy meter communication according to claim 1, wherein the searching the corresponding code information bar in the code information table according to the SMS category information of the plurality of SMS messages transmitted by the electric energy meter, and searching the information bar of the security code indication information of the code information bar according to the security level to obtain the corresponding security code indication bit includes:
inquiring in a short message category information corresponding information column in the code information table according to the short message category information of the SMS short message to obtain a code information bar corresponding to the short message category information;
inquiring an information column corresponding to the safety coding indication information in the coding information bar according to the safety level of the electric energy meter to obtain a corresponding safety coding indication bit;
the security code indication bits include a first code location and a second code location.
3. The message setup method of SMS-based electric energy meter communication of claim 2, wherein the first coding location includes first coding information, the first coding information includes a short message coding manner and a total number, the second coding location includes second coding information, the second coding information includes a current short message sequence number, the message coding indication bit indicates a third coding location, and the third coding location includes message coding information.
4. The message setup method for SMS-based power meter communication of claim 3, further comprising:
respectively reading a first coding position, a second coding position and a third coding position of the received SMS messages according to the character sequence;
respectively acquiring a short message coding mode, a total number, a current short message sequence number and message coding information of each SMS short message according to the first coding position, the second coding position and the third coding position;
when the total number of the received plurality of SMS messages is matched with the total number, the SMS messages are completely received;
sequencing all SMS messages which are completely received according to the corresponding current short message sequence number;
and splicing the message coding information corresponding to each sequenced SMS message to obtain a request message.
5. The message setup method for SMS-based electric energy meter communication of claim 4, wherein the security code indication bit and the key code indication bit are both ASCII coded, the key code indication bit indicates a key code location, the key code location includes key code information, and further comprising:
and sequencing and splicing the key coding information corresponding to each sequenced SMS message according to the sequence to obtain key information.
6. The message setup method for SMS-based power meter communication of claim 5, further comprising:
after finishing sorting and splicing processing on the coding information of the request messages of the SMS messages, determining DLMS response messages;
packaging the response message into at least one transmitting short message according to the short message coding mode;
and synchronously or asynchronously sending the transmission short message combined with the key information to a server.
7. A message setting system for SMS-based electric energy meter communication, wherein the system is applied to an electric energy meter, and the system applies the message setting method for SMS-based electric energy meter communication according to any one of claims 1 to 6, and the system comprises:
the receiving module is used for receiving a plurality of SMS messages, reading first coding information of a first coding position and second coding information of a second coding position according to the character sequence of the SMS messages, wherein the first coding information comprises a message coding mode and total number, and the second coding information comprises a current message sequence number;
the checking module is used for performing integrity checking when the total number of the received SMS messages is matched with the total number, and checking whether the received SMS messages are complete or not according to the current SMS sequence numbers corresponding to the SMS messages;
the extraction module is used for extracting the key coding information of the key coding position and the message coding information of the third coding position of each SMS after the received SMS messages pass the integrity check;
and the splicing module is used for sequencing and splicing the key coding information and the message coding information according to the current short message sequence number of each SMS short message to obtain key information and a request message.
8. The SMS based power meter communication message setup system of claim 7, further comprising:
the determining module is used for determining DLMS response messages;
the packaging module is used for packaging the response message into at least one transmitting short message according to a short message coding mode;
and the transmission module is used for synchronously or asynchronously sending the obtained transmission short message combined with the key information to the server.
9. An electronic device, comprising: a processing unit and a storage unit;
the storage unit has stored thereon a computer program which, when run by the processing unit, performs the message setup method of SMS-based electric energy meter communication according to any one of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processing unit, performs the steps of the message setup method of SMS-based electric energy meter communication according to any one of the preceding claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310232300.1A CN115955524B (en) | 2023-03-13 | 2023-03-13 | Message setting method, system, equipment and medium for electric energy meter communication based on SMS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310232300.1A CN115955524B (en) | 2023-03-13 | 2023-03-13 | Message setting method, system, equipment and medium for electric energy meter communication based on SMS |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115955524A CN115955524A (en) | 2023-04-11 |
CN115955524B true CN115955524B (en) | 2023-05-30 |
Family
ID=85891285
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310232300.1A Active CN115955524B (en) | 2023-03-13 | 2023-03-13 | Message setting method, system, equipment and medium for electric energy meter communication based on SMS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115955524B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110740427A (en) * | 2019-10-24 | 2020-01-31 | 中国林业科学研究院资源信息研究所 | Method and device for generating short message information and electronic equipment |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6900737B1 (en) * | 1997-02-12 | 2005-05-31 | Elster Electricity, Llc | Remote access to electronic meters using the short message service |
DE19962954A1 (en) * | 1999-12-24 | 2001-06-28 | Hn Phone Gmbh | Method to transmit data between gas, water or electricity meter and central data-processing unit; involves transmitting data as short message service (SMS) information in communication network |
US8213971B2 (en) * | 2009-04-27 | 2012-07-03 | Qualcomm Incorporated | Apparatus and method for activating computer applications with SMS messaging |
US8682364B2 (en) * | 2011-11-02 | 2014-03-25 | General Motors Llc | Vehicle telematics communication using text encoding of binary data |
CN104571033B (en) * | 2014-12-26 | 2017-12-12 | 广东美的制冷设备有限公司 | The method and apparatus that short message controls household electrical appliances |
CN105848116A (en) * | 2015-01-15 | 2016-08-10 | 中兴通讯股份有限公司 | Short message transmission method, device and equipment |
CN110504748A (en) * | 2018-05-17 | 2019-11-26 | 冉茂江 | Real-time remote monitoring method in electric system |
-
2023
- 2023-03-13 CN CN202310232300.1A patent/CN115955524B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110740427A (en) * | 2019-10-24 | 2020-01-31 | 中国林业科学研究院资源信息研究所 | Method and device for generating short message information and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN115955524A (en) | 2023-04-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3562257B1 (en) | Wireless fidelity (wi-fi) connection method and related product | |
CN110851748A (en) | Short link generation method, server, storage medium and computer equipment | |
CN104252613B (en) | A kind of virtual objects acquisition methods, device and terminal | |
CN112764997B (en) | Log storage method and device, computer equipment and storage medium | |
CN105511727A (en) | Message processing method and device | |
CN104091184A (en) | Electronic tag detection method and system | |
CN105989457A (en) | Information query method and apparatus thereof | |
CN113872163A (en) | Relay protection setting value calibration method and terminal equipment | |
CN112988678B (en) | Wisdom cloud data safety protection system based on block chain | |
CN114527721A (en) | Method and system for monitoring online production of poly-PVC (polyvinyl chloride) modified cable granules and cloud platform | |
CN115481104A (en) | Data query method and device, electronic equipment and storage medium | |
CN115955524B (en) | Message setting method, system, equipment and medium for electric energy meter communication based on SMS | |
CN104700220A (en) | High-safety intelligent management system for emergency counting, positioning and searching | |
US12348624B2 (en) | WAPI trusted wireless local area network device | |
CN112380550A (en) | Energy consumption data acquisition method, device and equipment and readable storage medium | |
CN119089466A (en) | Identification generation method, device, computer equipment, storage medium, and program product | |
CN118363053A (en) | Satellite data processing method, device, computer equipment and storage medium | |
CN111835712A (en) | Data transmission method, device, system, equipment and storage medium | |
CN117768449A (en) | High-speed data stream segmentation and reconstruction method and system for cross-domain communication | |
CN117313159A (en) | Data processing method, device, equipment and storage medium | |
CN111246458B (en) | Secure pairing method and device of wearable device, electronic book device and storage medium | |
CN115225329A (en) | File verification data generation method and device, electronic equipment and readable storage medium | |
CN114461867A (en) | Financial big data analysis processing method and system | |
CN110119337B (en) | Data analysis method and device and server | |
CN113630122A (en) | Encoding and decoding methods, apparatuses, computer device and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |