Conversion device and electricity selling system
By designing a conversion device including a first communication module, a data processing module and a second communication module, the problem of low power purchase efficiency of existing power sales devices is solved, remote power purchase is realized, efficiency is improved, and consumption of manpower and time resources is reduced.
Patent Information
- Application Number
- CN202510229814.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-06-17
AI Technical Summary
The power purchase method of existing power sales devices is inefficient, and staff need to swipe their cards in person, which consumes a lot of manpower and time resources.
A conversion device is designed, including a first communication module, a data processing module and a second communication module, which can communicate with the power sales main station and the power sales device. Through the data processing module, power purchase data is obtained according to the instructions of the power sales main station and instructions suitable for the power sales device are generated to realize remote power purchase.
Through the conversion device, remote data interaction between the main power sales station and the power sales device is realized, power purchase efficiency is improved, and human and time resources are consumed.
Smart Images

Figure CN120164281A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power technologies, and particularly to a conversion device and a power selling system. Background Art
[0002] Currently, existing power selling devices are still limited to the traditional local card swiping mode. Whether it is for new user account opening or existing user recharge, staff need to personally carry the power purchase card to the site for card swiping operations.
[0003] In related technologies, the power purchase method is not only inefficient but also consumes a large amount of human and time resources. Summary of the Invention
[0004] Based on this, it is necessary to provide a conversion device and a power selling system that can improve the power purchase efficiency for the above technical problems.
[0005] In a first aspect, this application provides a conversion device, which includes:
[0006] A first communication module, configured to connect to a main power selling station and receive a first power selling instruction sent by the main power selling station;
[0007] A data processing module, connected to the first communication module, configured to obtain power purchase data according to the first power selling instruction and generate a second power selling instruction according to the power purchase data; the second power selling instruction follows a different protocol from the first power selling instruction;
[0008] A second communication module, respectively connected to the data processing module and a power selling device, configured to send the second power selling instruction to the power selling device to instruct the power selling device to sell electricity that conforms to the power purchase data.
[0009] In one embodiment, the data processing module is further configured to determine a target instruction association relationship from a pre-stored association library according to a first communication protocol followed by the first power selling instruction, and convert the power purchase data into the second power selling instruction that follows a second communication protocol according to the target instruction association relationship; wherein,
[0010] The association library includes multiple groups of pre-established instruction association relationships, and the instruction association relationships are used to represent the association relationships between power selling instructions following multiple communication protocols and the second power selling instruction; the target instruction association relationship is used to represent the association relationship between the first power selling instruction and the second power selling instruction.
[0011] In one embodiment, the data processing module is further configured to generate a check code according to the first power selling instruction and determine an authentication result of the main power selling station according to the check code;
[0012] The data processing module is further configured to obtain the power purchase data according to the first power sale instruction when the authentication result is authentication passed; or, when the authentication result is authentication failed, delete the first power sale instruction or send a resend request to the power sale master station to instruct the power sale master station to resend the first power sale instruction according to the resend request.
[0013] In one embodiment, the second communication module is further configured to receive a first power sale result sent by the power sale device; the first power sale result is used to indicate whether the power sale device successfully sells the power amount that meets the power purchase data.
[0014] The data processing module is further configured to generate a second power sale result according to the first power sale result; the first power sale result follows the same protocol as the second power sale instruction, and the second power sale result follows the same instruction as the first power sale instruction.
[0015] The first communication module is further configured to send the second power sale result to the power sale master station.
[0016] In one embodiment, the data processing module is further configured to determine a result association relationship from a pre-stored association library according to a second communication protocol followed by the first power sale result, and convert the first power sale result into the second power sale result that follows the first communication protocol according to the result association relationship; wherein, the result association relationship is used to represent the association relationship between the first power sale result and the second power sale result.
[0017] In one embodiment, the data processing module is further configured to generate a fault prompt message when a preset fault condition is met.
[0018] The first communication module is further configured to send the fault prompt message to the power sale master station; the fault prompt message is used to prompt the power sale master station that the power purchase operation corresponding to the first power sale instruction fails.
[0019] Wherein, the preset fault condition includes at least one of that the second communication module does not receive the first power sale result within a preset time period and that the continuous failure times of the second communication module sending the second power sale instruction to the power sale device reach a preset threshold.
[0020] In one embodiment, the conversion device further includes an encryption and decryption module, which is respectively connected to the first communication module and the second communication module, and is configured to perform decryption processing on the first power sale instruction and encryption processing on the second power sale instruction; wherein,
[0021] The data processing module is further configured to obtain the power purchase data according to the decrypted first power selling instruction, and generate a second power selling instruction according to the power purchase data;
[0022] The second communication module is further configured to send the encrypted second power selling instruction to the power selling device.
[0023] In one embodiment, the data processing module is further configured to send an activation instruction to the first communication module when powered on;
[0024] The first communication module is further configured to send a dial-up connection request to the power selling master station according to the activation instruction to establish a communication link between the conversion device and the power selling master station.
[0025] In one embodiment, the conversion device further includes:
[0026] A third communication module, connected to the data processing module, for connecting to a communication device and for receiving an update instruction sent by the communication device, and the data processing module is further configured to perform update management according to the update instruction.
[0027] In a second aspect, the present application further provides a power selling system, which includes a power selling master station, a power selling device, and the conversion device described in any one of the above embodiments.
[0028] The above conversion device, data processing method, and power selling system include a first communication module, a data processing module, and a second communication module. The first communication module can communicate with the power selling master station, and the second communication module can communicate with the power selling device. The communication protocol followed by the first communication module when communicating with the power selling master station is different from the communication protocol followed by the second communication module when communicating with the power selling device. Therefore, after the first communication module receives the first power selling instruction sent by the power selling master station, it can obtain the power purchase data according to the first power selling instruction, and generate a second power selling instruction that the power selling device can recognize according to the power purchase data. Then, the second communication module sends the second power selling instruction to the power selling device, and the power selling device can sell the electricity that meets the power purchase data according to the second power selling instruction. In this way, the remote interaction of data between the power selling master station and the power selling device is realized through the conversion device, thereby realizing remote power purchase without the need for staff to swipe cards to purchase electricity in person, improving the power purchase efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0030] Figure 1 is a schematic structural diagram of a conversion device in one embodiment;
[0031] Figure 2 is a schematic structural diagram of a conversion device in another embodiment;
[0032] Figure 3 is a schematic structural diagram of a conversion device in still another embodiment;
[0033] Figure 4 is a circuit structure diagram of an Ethernet circuit in one embodiment;
[0034] Figure 5 is a circuit structure diagram of an Ethernet interface circuit in one embodiment;
[0035] Figure 6 is a circuit schematic diagram of a Bluetooth communication unit in one embodiment;
[0036] Figure 7 is a circuit structure diagram of a first RS485 communication unit in one embodiment;
[0037] Figure 8 is a circuit structure diagram of a second RS485 communication unit in one embodiment;
[0038] Figure 9 is a circuit structure diagram of a storage module in one embodiment;
[0039] Figure 10 is a working flowchart of a conversion device in one embodiment;
[0040] Figure 11 is a schematic flowchart of a data processing method in one embodiment. Detailed implementation manners
[0041] To facilitate the understanding of the present application, the present application will be described more comprehensively below with reference to the relevant drawings. Embodiments of the present application are given in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, these embodiments are provided to make the disclosure of the present application more thorough and comprehensive.
[0042] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used in the description of this application herein are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0043] It will be understood that the terms "first", "second", etc. used in the present application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another.
[0044] Spatial relationship terms such as "under", "below", "lower", "beneath", "above", "upper", etc. may be used herein to describe the relationship of one element or feature shown in the figure with other elements or features. It should be understood that, in addition to the orientation shown in the figure, spatial relationship terms also include different orientations of the device in use and operation. For example, if the device in the figure is flipped, an element or feature described as "under other elements" or "beneath them" or "under it" will be oriented "above" the other elements or features. Thus, the exemplary terms "under" and "beneath" can include both upward and downward orientations. In addition, the device may also include additional orientations (such as rotating 90 degrees or other orientations), and the spatial descriptors used herein are accordingly interpreted.
[0045] It should be noted that when an element is considered to be "connected" to another element, it may be directly connected to the other element or connected to the other element through an intermediate element. In addition, in the following embodiments, "connection", if there is a transfer of electrical signals or data between the connected objects, should be understood as "electrical connection", "communication connection", etc.
[0046] As used herein, the singular forms "a", "an" and "the" may also include the plural forms unless the context clearly dictates otherwise. It should also be understood that the terms "comprise / include" or "have" etc. specify the presence of the stated features, wholes, steps, operations, components, parts or combinations thereof, but do not preclude the presence or addition of one or more other features, wholes, steps, operations, components, parts or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the related listed items.
[0047] In an exemplary embodiment, refer to Figure 1 , the present application provides a conversion device, which includes: a first communication module 1, a data processing module 2, and a second communication module 3.
[0048] The first communication module 1 is used to connect with the main power selling station and receive the first power selling instruction sent by the main power selling station. The data processing module 2 is connected to the first communication module 1 and is used to obtain power purchase data according to the first power selling instruction and generate a second power selling instruction according to the power purchase data; the second power selling instruction follows a different protocol from the first power selling instruction. The second communication module 3 is respectively connected to the data processing module 2 and the power selling device and is used to send the second power selling instruction to the power selling device to instruct the power selling device to sell the power quantity that conforms to the power purchase data.
[0049] In this embodiment, the first communication module 1 can establish a stable communication channel with the main power selling station through 4G communication technology to ensure the real-time performance and reliability of data transmission. The second communication module 3 can be connected to the card swiping port of the power selling device through the RS485 interface to achieve effective data exchange. In addition, to ensure the security of remote account opening and power purchase operations, the first power selling instruction sent by the main power selling station to the first communication module 1 through 4G communication technology is encrypted. The data processing module 2 will decrypt the first power selling instruction, read the power purchase data therein, and then convert the power purchase data into a second power selling instruction that the power selling device can understand and conforms to the communication protocol between the second communication module and the power selling device. After that, the second communication module sends the second power selling instruction to the power selling device. After successfully receiving the second power selling instruction, the power selling device can make a corresponding response and sell the power quantity that conforms to the power purchase data.
[0050] The above conversion device, data processing method, and power selling system include a first communication module, a data processing module, and a second communication module. The first communication module can communicate with the main power selling station, and the second communication module can communicate with the power selling device. The communication protocol followed when the first communication module communicates with the main power selling station is different from the communication protocol followed when the second communication module communicates with the power selling device. Therefore, after receiving the first power selling instruction sent by the main power selling station, the first communication module can obtain power purchase data according to the first power selling instruction and generate a second power selling instruction that the power selling device can recognize according to the power purchase data. Then, the second power selling instruction is sent to the power selling device through the second communication module, and the power selling device can sell the power quantity that conforms to the power purchase data according to the second power selling instruction, thus realizing remote power purchase without the need for staff to swipe the card to purchase power personally, improving the power purchase efficiency.
[0051] In an exemplary embodiment, the data processing module is further configured to determine a target instruction association relationship from a pre-stored association library according to a first communication protocol followed by the first power selling instruction, and convert the power purchase data into a second power selling instruction that follows a second communication protocol according to the target instruction association relationship. The association library includes multiple pre-established instruction association relationships, and the instruction association relationship is used to represent the association relationship between power selling instructions following multiple communication protocols and the second power selling instruction; the target instruction association relationship is used to represent the association relationship between the first power selling instruction and the second power selling instruction.
[0052] It can be understood that the first communication protocol is the communication protocol followed by the power selling master station. The first communication module 1 needs to follow the first communication protocol when performing data interaction with the power selling master station. The second communication protocol is the communication protocol followed by the power selling device. The second communication module 3 needs to follow the second communication protocol when performing data interaction with the power selling device. The first communication protocol is different from the second communication protocol. Naturally, under different communication protocols, the data formats of the data transmitted between the power selling master station and the conversion device are different from the data formats of the data transmitted between the power selling device and the conversion device. In order to enable the power selling device to understand the first power selling instruction sent by the power selling master station, an association library can be pre-stored in the data processing module of the present application. After the power selling master station sends the first power selling instruction to the conversion device, the data processing module can search the association library according to the first power selling instruction to determine the second power selling instruction that can be recognized by the power selling device and corresponds to the first power selling instruction. Thus, the power selling device can accurately understand the command of the power selling master station and make a corresponding response according to the first power selling instruction.
[0053] In an exemplary embodiment, the data processing module is further configured to generate a verification code according to the first power selling instruction, and determine the authentication result of the power selling master station according to the verification code; the data processing module is further configured to obtain the power purchase data according to the first power selling instruction when the authentication result is verified; or, when the authentication result is not verified, delete the first power selling instruction or send a resend request to the power selling master station to instruct the power selling master station to resend the first power selling instruction according to the resend request.
[0054] In the application, in order to ensure the security of remote account opening and power purchase operations, the first power sales instruction sent by the power sales master station may carry a check code. After receiving the first power sales instruction, the data processing module 2 first obtains the check code in the first power sales instruction and authenticates the identity of the power sales master station according to the check code. In one example, the data processing module 2 may use the CRC cyclic redundancy check algorithm to authenticate the identity of the power sales master station. If the authentication is passed, the data processing module 2 may further analyze and process the first power sales instruction to obtain the power purchase data from the first power sales instruction. If the authentication fails, the data processing module 2 may discard the first power sales instruction, or the data processing module 2 may generate a retransmission request and send the retransmission request to the power sales master station through the first communication module 1 to instruct the power sales master station to send the first power sales instruction according to the retransmission request. By authenticating the identity of the power sales master station, the conversion device of the present application can ensure the security of remote power purchase operations and avoid incorrect responses of the power sales device to incorrect power sales instructions.
[0055] In an exemplary embodiment, the second communication module is further configured to receive a first power sales result sent by the power sales device; the first power sales result is used to indicate whether the power sales device has successfully sold the power amount that meets the power purchase data; the data processing module is further configured to generate a second power sales result according to the first power sales result; the first power sales result follows the same protocol as the second power sales instruction, and the second power sales result follows the same instruction as the first power sales instruction; the first communication module is further configured to send the second power sales result to the power sales master station.
[0056] In this embodiment, after the power sales device completes the power sales operation according to the second power sales instruction, the power sales device can feedback the processing result to the power sales master station through the conversion device so that the power sales master station can timely understand the power sales situation. Specifically, the power sales device sends the first power sales result to the second communication module 3. When the second communication module 3 receives the first power sales result, it converts the first power sales result that conforms to the second communication protocol between the second communication module and the power sales device into a second power sales result that conforms to the first communication protocol for communication between the first communication module and the power sales master station, so that the power sales master station can timely understand the power sales situation.
[0057] In an exemplary embodiment, the data processing module is further configured to determine a result association relationship from a pre-stored association library according to the second communication protocol followed by the first power sales result, and convert the first power sales result into a second power sales result that follows the first communication protocol according to the result association relationship; wherein, the result association relationship is used to represent the association relationship between the first power sales result and the second power sales result.
[0058] Similarly, the relationship database pre-stored in the data processing module 2 may also include the association relationships of the electricity sales results under different communication protocols. In order for the electricity sales master station to understand the electricity sales results fed back by the electricity sales device, after the second communication module receives the first electricity sales result, the data processing module can search the relationship database for the second electricity sales result under the first communication protocol corresponding to the first electricity sales result under the second communication protocol, so as to convert the first electricity sales result into a second electricity sales result that follows the first communication protocol and can be understood by the electricity sales master station, so that the electricity sales master station can timely understand the electricity sales situation.
[0059] In an exemplary embodiment, the data processing module is further configured to generate a fault prompt message when a preset fault condition is met; the first communication module is further configured to send the fault prompt message to the electricity sales master station; the fault prompt message is used to prompt the electricity sales master station that the power purchase operation corresponding to the first electricity sales instruction fails; wherein, the preset fault condition includes at least one of that the second communication module does not receive the first electricity sales result within a preset time period, and the number of consecutive failures of the second communication module to send the second electricity sales instruction to the electricity sales device reaches a preset threshold.
[0060] It can be understood that during the remote power purchase process, abnormal situations such as failures of the electricity sales device may occur, that is, the electricity sales device cannot receive the second electricity sales instruction, or the electricity sales device cannot sell the electricity volume that meets the power purchase data according to the second electricity sales instruction after receiving the second electricity sales instruction. Therefore, when the electricity sales device cannot receive the second electricity sales instruction or cannot sell the electricity volume that meets the power purchase data according to the second electricity sales instruction, the electricity sales device naturally cannot feed back the processing result to the electricity sales master station through the conversion device. Therefore, a time threshold can be set. When the second communication module does not receive the first electricity sales result sent by the electricity sales device after exceeding the time threshold, the data processing module can automatically generate a fault prompt message, such as a fault code, and encrypt it, and feedback the encrypted fault prompt message to the electricity sales master station to prompt the electricity sales master station that the electricity sales fails. In the application, it is also possible that the second communication module fails to successfully send the second electricity sales instruction to the electricity sales device. When the second communication module fails to send the second electricity sales instruction to the electricity sales device, the second communication module can try to send the second electricity sales instruction to the electricity sales device again. When the number of consecutive failures reaches the preset threshold, the data processing module can automatically generate a fault prompt message, encrypt it, and feedback the encrypted fault prompt message to the electricity sales master station to prompt the electricity sales master station that the electricity sales fails. Among them, when the second communication module does not receive the first electricity sales result sent by the electricity sales device within the preset time period, the fault prompt message generated by the data processing module may be different from the fault prompt message generated by the data processing module when the number of consecutive failures of the second communication module to send the second electricity sales instruction to the electricity sales device reaches the preset threshold, so that the electricity sales master station can understand the specific fault situation.
[0061] In an exemplary embodiment, please refer toFigure 2 The conversion device further includes an encryption and decryption module 4, which is respectively connected to the data processing module 2, the first communication module 1, and the second communication module 3, and is used for decrypting the first power selling instruction and encrypting the second power selling instruction. Among them, the data processing module 2 is further used for obtaining power purchase data according to the decrypted first power selling instruction and generating a second power selling instruction according to the power purchase data. The second communication module 3 is further used for sending the encrypted second power selling instruction to the power selling device.
[0062] In the application, the first power selling instruction sent by the power selling master station to the first communication module carries a check code. After receiving the first power selling instruction, the data processing module 2 first obtains the check code in the first power selling instruction and authenticates the identity of the power selling master station according to the check code. In one example, when the authentication of the power selling master station passes, the encryption and decryption module 4 can decrypt the first power selling instruction according to a preset decryption algorithm, and then send the decrypted first power selling instruction to the data processing module 2, so that the data processing module 2 can obtain the power purchase data from the decrypted first power selling instruction. Similarly, when the second communication module 3 receives the first power selling result, after the data processing module 2 converts the first power selling result that conforms to the second communication protocol between the second communication module and the power selling device into a second power selling result that conforms to the first communication protocol for communication between the first communication module and the power selling master station, the encryption and decryption module 4 can encrypt the second power selling result according to a preset encryption algorithm, and then feedback the encrypted second power selling result to the power selling master station through the first communication module, so that the power selling master station can timely understand the power selling situation. It can be understood that when the second communication module does not receive the first power selling result sent by the power selling device within a preset time period, or the continuous failure times of the second communication module sending the second power selling instruction to the power selling device reach a preset threshold, after the data processing module 2 generates a fault prompt message, the encryption and decryption module 4 can encrypt the fault prompt message according to a preset encryption algorithm, and then feedback the encrypted fault prompt message to the power selling master station through the first communication module. In this application, by encrypting and decrypting various power selling instructions and power selling results in the interaction process with the power selling master station and the power selling device, it can effectively prevent data leakage and data tampering in the remote power purchase process, and further improve the security of remote power purchase operations.
[0063] In an exemplary embodiment, the data processing module is further used for sending an activation instruction to the first communication module when powered on; the first communication module is further used for sending a dial-up connection request to the power selling master station according to the activation instruction to establish a communication link between the conversion device and the power selling master station.
[0064] It can be understood that when the conversion device switches from the power-off state to the power-on state, the data processing module therein can activate the first communication module and the second communication module respectively. After the first communication module is activated, it sends a communication request to the main power selling station through the first communication module. Exemplarily, the data processing module can control the first communication module to send a dial-up connection request to the main power selling station according to the pre-stored IP address and port of the main power selling station, and in the case of successfully establishing a network connection, send a login request to the main power selling station and wait until it receives the confirmation response from the main power selling station. Once the login is confirmed, it means that the communication link between the conversion device and the main power selling station has been formally established and data interaction can begin.
[0065] In an exemplary embodiment, please refer to Figure 3 , the conversion device further includes: a third communication module 5, connected to the data processing module, for connecting to a communication device and for receiving an update instruction sent by the communication device, and the data processing module is further configured to perform update management according to the update instruction.
[0066] In this embodiment, the third communication module 5 can be at least one of a Bluetooth communication unit and an Ethernet communication unit. When the third communication module 5 includes a Bluetooth communication unit, the data processing module can perform wireless communication with the upper computer through Bluetooth, and then the upper computer can perform parameter configuration and update management on the data processing module through Bluetooth. When the third communication module 5 includes an Ethernet communication unit, the third communication module 5 can include an Ethernet interface, and the third communication module 5 performs wired communication with the communication device through the Ethernet interface, and then the communication device can perform parameter configuration and update management on the data processing module through the Ethernet communication unit.
[0067] In one example, the data processing module 2 and the encryption and decryption module 4 can share a microcontroller, and there can also be some filtering circuits and protection circuits around the microcontroller. The third communication module 5 can include both a Bluetooth communication unit and an Ethernet communication unit at the same time, and the Ethernet communication unit can further include an Ethernet circuit and an Ethernet interface circuit. Figure 4 FIG. is a circuit structure diagram of the Ethernet circuit in one example. Figure 5 FIG. is a circuit structure diagram of the Ethernet interface circuit in one example. Figure 6It is a schematic circuit diagram of a Bluetooth communication unit in an example. The Ethernet circuit may include a PHY (Physical Layer) chip. The TXP pin, TXN pin, RXP pin, and RXN pin of the PHY chip are respectively connected to the Ethernet interface circuit. The TXP pin and TXN pin are used for the differential transmission pair of Ethernet data transmission. The TXP pin and TXN pin work together to convert digital signals into analog signals and send them to the Ethernet network through the Ethernet interface circuit. The RXP pin and RXN pin are used for the differential reception pair of Ethernet data reception. The RXP pin and RXN pin receive analog signals from the network and convert them into digital signals for subsequent circuit processing. The nINT / REFCLKO pin, MDIO pin, MDC pin, TXD0 pin, TXD1 pin, TXDEN pin, RXD0 / MODE0 pin, RXD1 / MODE1 pin, CRS_DV / MODE2 pin, RXER / PHYAD0 pin, and RST# pin of the PHY chip are all connected to the data processing module 2. Among them, the nINT / REFCLKO pin can have an interrupt output function and a reference clock output function. The data processing module manages the data input / output of the PHY chip through the MDIO pin and manages the data clock of the PHY chip through the MDC pin. The TXDEN pin is a transmit enable pin. When the TXDEN pin is activated, the TXD0 pin and TXD1 pin can transmit data to the data processing module. The RXD0 / MODE0 pin and RXD1 / MODE1 pin can be used to receive data sent by the data processing module and to configure the network communication rate and working mode of the PHY chip under the control of the data processing module. Among them, the working mode can include full duplex and half duplex. The CRS_DV / MODE2 pin can be used to represent the carrier detection and data valid signal and to configure the network communication rate and working mode of the PHY chip under the control of the data processing module. A signal indicator light can be respectively connected to the LED1 / REGOFF pin and LED2 / nINTSEL pin of the PHY chip. When LED1 flashes, it indicates that the PHY chip is transmitting data. When LED2 flashes, it indicates that the Ethernet communication unit is in a connected state with the communication device.
[0068] The second communication module may include a first RS485 communication unit and a second RS485 communication unit. Please refer to Figure 7 and Figure 8 , Figure 7 It is a circuit structure diagram of the first RS485 communication unit in an example. Figure 8It is a circuit structure diagram of the second RS485 communication unit in an example. Among them, the working mode of the first RS485 communication unit is the full-duplex working mode. The first RS485 communication unit may include an isolated full-duplex RS-485 transceiver. Among them, the RXD pin and the TXD pin of the first RS485 communication unit are respectively connected to the data processing module. The RXD pin is used to receive the data sent by the data processing module, and the TXD pin is used to transmit data to the data processing module. The working mode of the second RS485 communication unit is the half-duplex working mode. The second RS485 communication unit may include an isolated half-duplex RS-485 transceiver. The RO pin and the DI pin of the second RS485 communication unit are respectively connected to the data processing module. Among them, the RO pin is used to receive the data sent by the data processing module, and the DI pin is used to transmit data to the data processing module.
[0069] In one embodiment, the conversion device may further include a storage module and a power supply module. In one example, please refer to Figure 9 , Figure 9 It is a circuit structure diagram of the storage module in an example. The storage module may be connected to the data processing module and is used to store the data when the conversion device interacts with the power selling master station and the power selling device. The power supply module may include a main power supply unit and an auxiliary power supply unit. The main power supply unit is respectively connected to the power grid, the first communication module, the data processing module, the encryption and decryption module, the second communication module, the third communication module and the storage module. The auxiliary power supply unit is respectively connected to the power grid, the data processing module and the storage module. The main power supply unit is used to convert the 220V AC voltage of the AC power grid into the DC voltage required by the first communication module, the data processing module, the encryption and decryption module, the second communication module, the third communication module and the storage module. The auxiliary power supply unit is used to store the electric energy provided by the power grid when the main power supply unit is working properly, and to supply power to the data processing module and the storage module when the power supply module is disconnected from the power grid, so that the storage module has time to store the data when the conversion device interacts with the power selling master station and the power selling device.
[0070] In a detailed embodiment, please refer to Figure 10 , Figure 10It is a schematic flow diagram when the conversion device works in an example. When the power grid is connected to the power supply module, the main power supply unit supplies power to the first communication module, data processing module, encryption and decryption module, second communication module, third communication module, and storage module. The data processing module can activate the first communication module. After the first communication module is activated, the data processing module can control the first communication module to send a dial-up connection request to the power selling master station according to the pre-stored IP address and port of the power selling master station. And in the case of successfully establishing a network connection, send a login request to the power selling master station and be in a waiting state until receiving the confirmation response from the power selling master station. Once the login is confirmed, it means that the communication link between the conversion device and the power selling master station has been officially established and data interaction can start. After that, the conversion device waits to receive the first power selling instruction from the power selling master station. After the first communication module receives the first power selling instruction, the first communication module sends the first power selling instruction to the data processing module. The data processing module first authenticates the power selling master station according to the verification code in the first power selling instruction. If the authentication fails, the data processing module can discard the first power selling instruction and request the power selling master station to re-send the first power selling instruction through the first communication module. If the authentication passes, the encryption and decryption module can decrypt the first power selling instruction according to the preset decryption algorithm. Then the data processing module obtains the power purchase data from the decrypted first power selling instruction and converts the power purchase data into a second power selling instruction that the power selling device can recognize and complies with the communication protocol followed by the second communication module to communicate with the power selling device according to the pre-stored relational database. Then the second communication module sends the second power selling instruction to the power selling device.
[0071] After receiving the second power selling instruction, the power selling device can make a corresponding response, sell the electricity amount that meets the power purchase data, and feedback the processing result to the power selling master station through the conversion device: The power selling device sends the first power selling result to the second communication module 3. When the second communication module 3 receives the first power selling result, it converts the first power selling result that complies with the communication protocol between the second communication module and the power selling device into a second power selling result that complies with the communication protocol between the first communication module and the power selling master station. The encryption and decryption module encrypts the second power selling result according to the preset encryption algorithm, and then feeds back the encrypted second power selling result to the power selling master station through the first communication module. If the second communication module does not receive the first power selling result sent by the power selling device within the preset time period, or the continuous failure times of the second communication module sending the second power selling instruction to the power selling device reach the preset threshold. In an example, the preset threshold of the continuous failure times can be 3 times. Then the data processing module can automatically generate a fault prompt message, encrypt it through the encryption and decryption module, and feedback the encrypted fault prompt message to the power selling master station through the first communication module to prompt the power selling master station that the power selling fails.
[0072] In an exemplary embodiment, refer to Figure 11 , the present application further provides a data processing method for a conversion device applied to any one of the above embodiments, and the method includes: step S1101 to step S1104.
[0073] S1101: Receive a first power selling instruction sent by a power selling master station.
[0074] S1102: Obtain power purchase data according to the first power selling instruction.
[0075] S1103: Generate a second power selling instruction according to the power purchase data; the second power selling instruction follows a different protocol from the first power selling instruction.
[0076] S1104: Send the second power selling instruction to a power selling device to instruct the power selling device to sell the electricity volume that conforms to the power purchase data.
[0077] In an exemplary embodiment, step S1103, generating a second power selling instruction according to the power purchase data, includes: determining a target instruction association relationship from a pre-stored association library according to a first communication protocol followed by the first power selling instruction; converting the power purchase data into the second power selling instruction that follows a second communication protocol according to the target instruction association relationship; wherein, the association library includes multiple groups of pre-established instruction association relationships, and the instruction association relationships are used to represent the association relationships between power selling instructions following multiple communication protocols and the second power selling instruction; the target instruction association relationship is used to represent the association relationship between the first power selling instruction and the second power selling instruction.
[0078] In an exemplary embodiment, the data processing method further includes: generating a check code according to the first power selling instruction, and determining an authentication result of the power selling master station according to the check code; in the case where the authentication result is passed, obtaining the power purchase data according to the first power selling instruction; in the case where the authentication result fails, deleting the first power selling instruction or sending a retransmission request to the power selling master station to instruct the power selling master station to retransmit the first power selling instruction according to the retransmission request.
[0079] In an exemplary embodiment, the data processing method further includes: receiving a first power selling result sent by the power selling device, wherein the first power selling result is used to indicate whether the power selling device successfully sells the electricity volume that conforms to the power purchase data; generating a second power selling result according to the first power selling result, wherein the first power selling result follows the same protocol as the second power selling instruction, and the second power selling result follows the same instruction as the first power selling instruction; sending the second power selling result to the power selling master station.
[0080] In an exemplary embodiment, generating a second electricity sales result based on the first electricity sales result includes: determining a result association relationship from a pre-stored association library according to a second communication protocol followed by the first electricity sales result; converting the first electricity sales result into the second electricity sales result that follows a first communication protocol according to the result association relationship; wherein the result association relationship is used to represent the association relationship between the first electricity sales result and the second electricity sales result.
[0081] In an exemplary embodiment, the data processing method further includes: generating a fault prompt message when a preset fault condition is met; sending the fault prompt message to the main electricity sales station, where the fault prompt message is used to prompt the main electricity sales station that the power purchase operation corresponding to the first electricity sales instruction fails, and the preset fault condition includes at least one of the second communication module not receiving the first electricity sales result within a preset time period and the continuous failure times of the second communication module sending the second electricity sales instruction to the electricity sales device reaching a preset threshold.
[0082] In an exemplary embodiment, step S1102, obtaining power purchase data according to a first electricity sales instruction includes: decrypting the first electricity sales instruction; obtaining the power purchase data according to the decrypted first electricity sales instruction, and generating a second electricity sales instruction according to the power purchase data. The step of sending the second electricity sales result to the main electricity sales station includes: encrypting the second electricity sales instruction; sending the encrypted second electricity sales instruction to the electricity sales device.
[0083] In an exemplary embodiment, the data processing method further includes: sending a dial-up connection request to the main electricity sales station according to the activation instruction to establish a communication link between the conversion device and the main electricity sales station.
[0084] In an exemplary embodiment, the present application provides an electricity sales system, which includes a main electricity sales station, an electricity sales device, and a conversion device as described in any one of the above embodiments.
[0085] In the description of this specification, the description referring to terms such as "some embodiments", "other embodiments", "ideal embodiments", etc. means that the specific features, structures, materials or features described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic description of the above terms does not necessarily refer to the same embodiment or example.
[0086] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0087] The embodiments described above merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation to the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the appended claims.
Claims
1. A conversion device, characterized in that: The device comprises: A first communication module, used to connect to the power selling master station and receive a first power selling instruction sent by the power selling master station; a data processing module connected to the first communication module, configured to obtain electricity purchase data according to the first electricity sales instruction, and generate a second electricity sales instruction according to the electricity purchase data; the second electricity sales instruction and the first electricity sales instruction follow a different protocol; The second communication module is connected to the data processing module and the power selling device respectively, and is used to send the second power selling instruction to the power selling device to instruct the power selling device to sell the power that meets the power purchase data.
2. The conversion device according to claim 1, characterized in that: The data processing module is further used to determine the target instruction association relationship from a pre-stored association library according to the first communication protocol followed by the first power selling instruction, and convert the power purchase data into the second power selling instruction following the second communication protocol according to the target instruction association relationship; wherein, The association library includes multiple groups of pre-established instruction association relationships, and the instruction association relationships are used to represent the association relationship between the power selling instruction and the second power selling instruction that comply with multiple communication protocols; the target instruction association relationship is used to represent the association relationship between the first power selling instruction and the second power selling instruction.
3. The conversion device according to claim 1, characterized in that: The data processing module is further used to generate a verification code according to the first electricity selling instruction, and determine the identity authentication result of the electricity selling master station according to the verification code; The data processing module is also used to obtain the electricity purchasing data according to the first electricity selling instruction when the identity authentication result is a successful authentication; or, when the identity authentication result is a failed authentication, delete the first electricity selling instruction or send a resending request to the electricity selling master station to instruct the electricity selling master station to resend the first electricity selling instruction according to the resending request.
4. The conversion device according to claim 1, characterized in that: The second communication module is further used to receive a first electricity selling result sent by the electricity selling device; the first electricity selling result is used to indicate whether the electricity selling device has successfully sold the electricity that meets the electricity purchase data; The data processing module is further used to generate a second power selling result according to the first power selling result; the first power selling result and the second power selling instruction follow the same protocol, and the second power selling result and the first power selling instruction follow the same instruction; The first communication module is further used to send the second electricity selling result to the electricity selling master station.
5. The conversion device according to claim 4, characterized in that: The data processing module is also used to determine a result association relationship from a pre-stored association library according to a second communication protocol followed by the first power selling result, and convert the first power selling result into the second power selling result that follows the first communication protocol according to the result association relationship; wherein the result association relationship is used to represent the association relationship between the first power selling result and the second power selling result.
6. The conversion device according to claim 4, characterized in that: The data processing module is also used to generate fault prompt information when a preset fault condition is met; The first communication module is also used to send the fault prompt information to the power sales master station; The fault prompt information is used to prompt the power selling master station that the power purchasing operation corresponding to the first power selling instruction has failed; Among them, the preset fault condition includes at least one of the second communication module not receiving the first power selling result within a preset time period, and the second communication module failing to send the second power selling instruction to the power selling device for a consecutive number of times reaching a preset threshold.
7. The conversion device according to any one of claims 1 to 6, characterized in that: The conversion device further includes an encryption and decryption module, which is respectively connected to the data processing module, the first communication module, and the second communication module, and is used to decrypt the first power selling instruction and encrypt the second power selling instruction; wherein, The data processing module is also used to obtain the electricity purchase data according to the decrypted first electricity sale instruction, and generate a second electricity sale instruction according to the electricity purchase data; The second communication module is further used to send an encrypted second electricity selling instruction to the electricity selling device.
8. The conversion device according to any one of claims 1 to 6, characterized in that: The data processing module is also used to send an activation instruction to the first communication module when powered on; The first communication module is further used to send a dial-up connection request to the power selling main station according to the activation instruction, so as to establish a communication link between the conversion device and the power selling main station.
9. The conversion device according to any one of claims 1 to 6, characterized in that: The conversion device also includes: The third communication module is connected to the data processing module, and is used to connect to the communication device and receive the update instruction sent by the communication device. The data processing module is also used to perform update management according to the update instruction.
10. A power selling system, characterized in that: The electricity selling system comprises an electricity selling main station, an electricity selling device and a conversion device as described in any one of claims 1-9.
Citation Information
Patent Citations
Power purchase management system
JP2019114186A
A Encryption Token Transfer Analysis System for Prepayment Metering System
KR1020140009748A
Conversion device and display system
WO2014173214A1
STS-based prepayment system and information transmission method
WO2018201723A1