Method and system for near-end connection and communication between mobile terminal and inverter
By establishing a WiFi connection between the mobile terminal and the gateway, and communicating with the inverter using the TCP protocol, the problems of low data interaction efficiency and high cost of the inverter are solved, enabling flexible and convenient near-end data acquisition and adapting to both new and old inverter models.
Patent Information
- Application Number
- CN202511747427.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-25
- Publication Date
- 2026-01-13
AI Technical Summary
In existing technologies, data interaction between inverters and mobile terminals suffers from low transmission efficiency, high cost, poor flexibility, and compatibility issues. In particular, in remote areas with weak signals or no coverage, it is impossible to effectively obtain fault waveform data of the inverter.
By establishing a WiFi connection between the mobile terminal and the gateway, and communicating with the inverter using the TCP protocol, near-end data transmission is achieved, avoiding reliance on wired connections and carrier networks, and directly adapting to both new and old inverter models.
It enables flexible and convenient acquisition of inverter recorded data, reduces hardware and maintenance costs, solves the problem of multi-device adaptation, and the adaptation process does not require modification of WiFi module firmware.
Smart Images

Figure CN121334890A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of inverter near-end communication technology, and in particular to a method and system for near-end connection and communication between a mobile terminal and an inverter. Background Technology
[0002] In power systems, generators are connected to the grid via inverters. Data such as inverter fault recordings and event logs are crucial for analyzing inverter faults and pinpointing the root cause of problems. Currently, data interaction with inverters primarily adopts the traditional "inverter-wired network-back-end monitoring system" model, which has several limitations in practical applications.
[0003] (1) Using serial port near-end interaction: Maintenance personnel need to carry a laptop to connect to the inverter on-site via serial port to manually acquire data. The transmission efficiency is low and the time consumption is long. When the equipment is scattered or the environment is difficult to access (such as closed cabinets or high-altitude terminals), the manual operation cost is extremely high, the flexibility and convenience are poor, and the key event records may be lost due to untimely operation.
[0004] (2) Using 4G / 5G remote network interaction: Relying on 4G / 5G modules to transmit data to the cloud platform, but is limited by operator network, such as weak signal or no coverage in remote areas; the module hardware cost is high, and additional traffic fees are required, resulting in high long-term maintenance costs.
[0005] Acquiring fault waveform data from near-end devices wirelessly via an application has become an urgent industry need. Currently, data interaction between the application and the device mostly uses the HTTP protocol, but this solution has significant drawbacks: a dedicated HTTP interface needs to be developed for the device's WiFi module, and for existing older WiFi modules, firmware upgrades are necessary for compatibility. This not only significantly increases the hardware and labor costs of mass retrofitting but also results in long upgrade cycles, severely impacting normal device operation and maintenance. Summary of the Invention
[0006] This invention provides a method and system for near-end connection and communication between a mobile terminal and an inverter, enabling WiFi communication between the mobile terminal and the inverter, and flexibly and conveniently obtaining data recorded by the inverter.
[0007] According to a first aspect of the present invention, a method for near-end connection and communication between a mobile terminal and an inverter is provided, applicable to a mobile terminal, an inverter and a gateway TCP connection, the method comprising:
[0008] Receive and respond to user instructions, and establish a near-end wireless network communication (Wireless Fidelity, WiFi) connection with the gateway;
[0009] Initiate a Transmission Control Protocol (TCP) connection request to the gateway, and establish a TCP connection with the gateway;
[0010] Based on the instruction input by the user, communicate with the inverter through the gateway, and read the target data required by the user from the inverter.
[0011] In a possible implementation, based on the instruction input by the user, communicate with the inverter through the gateway, and read the target data required by the user from the inverter, comprising:
[0012] Display at least one data type, based on the selection instruction of the target data type input by the user, generate an entry number request frame for the target data type, and send the entry number request frame to the gateway;
[0013] Receive and parse the entry number response frame transmitted by the gateway, obtain the entry number corresponding to the target data type, and based on the entry number, generate an index table request frame; send the index table request frame to the gateway to request to read each index table of the target type; wherein the entry number represents the number of index tables corresponding to the target type stored by the inverter;
[0014] Receive and parse the index table response frame transmitted by the gateway; receive the reading instruction of the target data input by the user, determine the target index table corresponding to the target data, and according to the characteristic data of the target index table, generate a target data request frame; send the target data request frame to the target gateway; wherein the index table response frame includes the characteristic data of each index table, and the target data request frame includes the characteristic data of the target index table corresponding to the target data;
[0015] Receive and parse the target data response frame transmitted by the target gateway, and obtain the target data.
[0016] In a possible implementation, when the target type is fault recording, the target data is the latest recording data or all recording data;
[0017] When the target type is data recording, the target data is fault recording, alarm recording or event recording.
[0018] In a possible implementation, the mobile terminal uses an SCI communication protocol to communicate with the inverter, the entry number request frame, the entry number response frame, the index table request frame, the index table response frame, the target data request frame and the target data response frame are all encapsulated in the SCI communication protocol format, and all include the following fields:
[0019] Frame header, reserved bit, module address, device chip identification, command type, parameter group identification, parameter address (Identity document, ID), parameter value and check value.
[0020] In a possible implementation, the method further includes:
[0021] sending a heartbeat frame to the gateway to trigger re-establishment of the communication connection with the gateway when the connection is interrupted.
[0022] In a possible implementation, the method further includes:
[0023] presenting the target data to the user;
[0024] and / or, storing the target data locally;
[0025] and / or, uploading the target data to a remote server.
[0026] In a possible implementation, the mobile terminal uses the SCI communication protocol to communicate with the inverter.
[0027] According to a second aspect of the embodiments of the present application, a method for near-end connection and communication of a mobile terminal and an inverter is provided, which is applied to an inverter, the inverter is in TCP connection with a gateway, and the method includes:
[0028] communicating with the mobile terminal through the gateway and sending target data to the mobile terminal;
[0029] wherein the target data is data corresponding to a reading request input by a user to the mobile terminal, the gateway is in near-end WiFi connection with the mobile terminal and is in TCP connection with the mobile terminal.
[0030] In a possible implementation, the communicating with the mobile terminal through the gateway and sending target data to the mobile terminal includes:
[0031] receiving and analyzing an entry number request frame transmitted by the gateway to obtain a target type; generating an entry number response frame based on an entry number corresponding to the target data type; and sending the entry number response frame to the gateway; wherein the entry number response frame includes an entry number, and the entry number represents a number of index tables corresponding to the target type stored by the inverter;
[0032] receiving and analyzing an index table request frame transmitted by the gateway; querying characteristic data of each index table of the target type; generating an index table response frame based on the characteristic data; wherein the index table request frame is used to request reading of each index table of the target type, and the index table response frame includes the characteristic data of each index table; and sending the index table response frame to the gateway;
[0033] The gateway transmits the target data response frame to the mobile terminal.
[0034] According to a third aspect of the embodiments of the present application, a system for near-end connection and communication between a mobile terminal and an inverter is provided, the system comprising a mobile terminal, an inverter and a gateway, the inverter being in TCP connection with the gateway.
[0035] The mobile terminal is configured to receive and respond to an instruction from a user to request near-end WiFi connection with the gateway.
[0036] The gateway is configured to respond to the mobile terminal to establish near-end WiFi connection with the mobile terminal.
[0037] The mobile terminal is further configured to initiate a TCP connection request to the gateway.
[0038] The gateway is further configured to respond to the mobile terminal to establish TCP connection with the mobile terminal.
[0039] The mobile terminal is further configured to communicate with the inverter through the gateway based on an instruction input by the user to read target data required by the user from the inverter.
[0040] The gateway is further configured to transmit data sent by the mobile terminal to the inverter and transmit data sent by the inverter to the mobile terminal.
[0041] The inverter is configured to communicate with the mobile terminal through the gateway and send target data to the mobile terminal.
[0042] In a possible implementation, the mobile terminal is specifically configured to display at least one type of data, generate an entry number request frame for the target data type based on a selection instruction input by the user for the target data type, and send the entry number request frame to the gateway.
[0043] The gateway is specifically configured to receive the entry number request frame sent by the mobile terminal and transmit the entry number request frame to the inverter.
[0044] The inverter is specifically configured to receive and analyze the entry number request frame transmitted by the gateway to obtain the target type, generate an entry number response frame based on the entry number corresponding to the target data type, and the entry number response frame comprises the entry number, which represents the number of index tables corresponding to the target type stored in the inverter.
[0045] The gateway is further specifically configured to receive the entry number response frame sent by the inverter and transmit the entry number response frame to the mobile terminal.
[0046] The mobile terminal is also specifically used for: receiving and parsing the item number response frame transmitted by the gateway in a transparent manner to obtain the item number corresponding to the target data type; generating an index table request frame based on the item number; and sending the index table request frame to the gateway to request reading each index table of the target type; wherein the item number represents the number of index tables corresponding to the target type stored by the inverter.
[0047] The gateway is also specifically used for: receiving the index table request frame sent by the mobile terminal and transmitting the index table request frame to the inverter in a transparent manner.
[0048] The inverter is also specifically used for: receiving and parsing the index table request frame transmitted by the gateway in a transparent manner; querying the characteristic data of each index table of the target type; generating an index table response frame based on the characteristic data; and sending the index table response frame to the gateway; wherein the index table response frame includes the characteristic data of each index table.
[0049] The gateway is also specifically used for: receiving the index table response frame sent by the inverter and transmitting the index table response frame to the mobile terminal in a transparent manner.
[0050] The mobile terminal is also specifically used for: receiving and parsing the index table response frame transmitted by the gateway in a transparent manner; receiving a reading instruction of the target data from a user, determining a target index table corresponding to the target data, generating a target data request frame based on the characteristic data of the target index table, and sending the target data request frame to the target gateway; wherein the target data request frame includes the characteristic data of the target index table corresponding to the target data.
[0051] The gateway is also specifically used for: receiving the target data request frame sent by the mobile terminal and transmitting the target data request frame to the inverter in a transparent manner.
[0052] The inverter is also specifically used for: receiving and parsing the target data request frame transmitted by the gateway in a transparent manner to obtain the characteristic data of the target index table corresponding to the target data; querying the target index table based on the characteristic data of the target index table to obtain the target data; generating a target data response frame based on the target data; and sending the target data response frame to the gateway; wherein the target data response frame includes the target data.
[0053] The gateway is also specifically used for: receiving the target data response frame sent by the inverter and transmitting the target data response frame to the mobile terminal in a transparent manner.
[0054] The mobile terminal is also specifically used for: receiving and parsing the target data response frame transmitted by the target gateway in a transparent manner to obtain the target data.
[0055] The application provides a method and system for near-end connection and communication of a mobile terminal and an inverter, the mobile terminal is connected with a gateway via WiFi and connected with the gateway via TCP, the inverter is connected with the gateway, the gateway can transmit data sent by the mobile terminal to the inverter and transmit data sent by the inverter to the mobile terminal. An operator carries the mobile terminal near the inverter, controls the mobile terminal to establish WiFi connection with the gateway, the mobile terminal automatically establishes TCP connection with the gateway, and based on the instruction input by the user, the mobile terminal communicates with the inverter via the gateway, reads the target data required by the user from the inverter, and flexibly and conveniently obtains the data recorded by the inverter, without relying on wired connection and without relying on operator network and traffic cost, and the deployment is flexible and there is no additional cost for long-term operation and maintenance; moreover, the WiFi module firmware of the gateway does not need to be modified, and the new and old types of inverter equipment and WiFi module can be directly adapted; and the multi-device adaptation problem is solved. BRIEF DESCRIPTION OF DRAWINGS
[0056] 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 needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description only constitute a part of the embodiments of the present application, and for those skilled in the art, other drawings can be obtained without creative labor based on the provided drawings.
[0057] Figure 1 A method flow diagram for near-end connection and communication of a mobile terminal and an inverter is provided. DETAILED DESCRIPTION
[0058] The technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments only constitute a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0059] In order to facilitate understanding of the technical solutions provided by the embodiments of the present application, the following describes the words designed in the embodiments of the present application:
[0060] Transparent transmission: refers to a device as a transparent transmission channel, without any processing or modification of data, and forwarding the original data between the two ends without any change.
[0061] Heartbeat frame: a mechanism for maintaining the stability of WIFI connection by periodically sending data packets.
[0062] The embodiment of the application provides a system for near-end connection and communication of a mobile terminal and an inverter, the system comprising a mobile terminal, an inverter and a gateway, the inverter being in communication connection with the gateway, wherein the inverter comprises the gateway, or the inverter and the gateway are independent devices.
[0063] The application further provides a method for near-end connection and communication of a mobile terminal and an inverter, which is applied to the system for near-end connection and communication of a mobile terminal and an inverter, and can comprise the following steps:
[0064] S1, the mobile terminal receives and responds to an indication of a user, and requests to establish a near-end WiFi connection with the gateway.
[0065] The user pre-installs target application software on the mobile terminal, and the mobile terminal has the function of near-end connection and communication with the inverter after the target application software is installed. The user carries the mobile terminal to the vicinity of the inverter, controls the mobile terminal to scan the inverter that can be connected through WiFi by using the target application software, the mobile terminal receives and responds to the scanning indication of the user to perform WiFi scanning, displays the identification of at least one inverter scanned, the user operates the mobile terminal to select the identification of one inverter, and the mobile terminal requests to establish a near-end WiFi connection with the gateway in communication connection with the inverter selected by the user.
[0066] The target application software supports three systems of Android, iOS and Harmony, covers mainstream mobile terminals, and solves the problem of multi-device and multi-system adaptation.
[0067] S2, the gateway responds to the mobile terminal, and establishes a near-end WiFi connection with the mobile terminal.
[0068] S3, the mobile terminal initiates a TCP connection request to the gateway.
[0069] S4, the gateway responds to the mobile terminal, and establishes a TCP connection with the mobile terminal.
[0070] The gateway pre-establishes a TCP connection with the inverter.
[0071] S5, the mobile terminal communicates with the inverter through the gateway based on an instruction input by the user, and reads target data required by the user from the inverter.
[0072] The user operates the mobile terminal to select the data required to be acquired, and the mobile terminal sends a request frame to the inverter through the gateway based on an instruction input by the user, and requests to read the target data required by the user from the inverter.
[0073] S6, the gateway transmits the data sent by the mobile terminal to the inverter, and transmits the data sent by the inverter to the mobile terminal.
[0074] The gateway transmits the request frame sent by the mobile terminal to the inverter, and transmits the response frame returned by the inverter to the mobile terminal
[0075] S7, the inverter communicates with the mobile terminal through the gateway, and sends target data to the mobile terminal.
[0076] The inverter accepts the request frame through the gateway, and sends a response frame containing target data to the mobile terminal.
[0077] The mobile terminal and the inverter near-end connection and communication method and system provided by the embodiment of the application, the mobile terminal and the gateway near-end WiFi connection, and with the gateway TCP connection, the inverter and the gateway communication connection, the gateway can transmit the data sent by the mobile terminal to the inverter, and transmit the data sent by the inverter to the mobile terminal. The operator carries the mobile terminal near the inverter, controls the mobile terminal to establish WiFi connection with the gateway, the mobile terminal automatically establishes TCP connection with the gateway, and based on the instruction input by the user, communicates with the inverter through the gateway, reads the target data required by the user from the inverter, flexibly and conveniently obtains the data recorded by the inverter, does not need to rely on wired connection, and does not need to rely on operator network and traffic cost, deployment is flexible and long-term operation and maintenance has no additional expenditure; Moreover, without modifying the WiFi module firmware of the gateway, directly adapting new and old type inverter equipment and WiFi module; Solve the problem of multi-device adaptation.
[0078] In one embodiment, the mobile terminal and the inverter near-end connection and communication method provided by the embodiment of the application, after the mobile terminal and the gateway establish TCP connection, as shown in Figure 1 The specific steps include the following steps:
[0079] S101, the mobile terminal displays at least one data type, and generates an entry number request frame for the target data type based on the selection instruction of the user for the target data type, and sends the entry number request frame to the gateway.
[0080] The mobile terminal displays at least one data type, the user selects one of the data types, and the mobile terminal generates an entry number request frame for the target data type based on the selection instruction of the user for the target data type.
[0081] When the target type is fault recording, the target data is the latest recording data or all recording data.
[0082] When the target type is data recording, the target data is fault recording, alarm recording or event recording.
[0083] Fault recording, for example: inverter ac-dc AD sampling zero drift is too large, etc.; Alarm record, for example: external fan abnormal or external communication failure, etc.; Event record, for example: set DSP time, etc.
[0084] S102, the gateway receives the item number request frame sent by the mobile terminal, and transmits it to the inverter.
[0085] S103, the inverter receives and analyzes the item number request frame transmitted by the gateway, obtains the target type, generates an item number response frame based on the item number corresponding to the target data type, and sends the item number response frame to the gateway.
[0086] The item number response frame includes the item number, which represents the number of index tables corresponding to the target type stored in the inverter.
[0087] S104, the gateway receives the item number response frame sent by the inverter, and transmits it to the mobile terminal.
[0088] S105, the mobile terminal receives and analyzes the item number response frame transmitted by the gateway, obtains the item number corresponding to the target data type, generates an index table request frame based on the item number, and sends the index table request frame to the gateway to request reading each index table of the target type.
[0089] The item number represents the number of index tables corresponding to the target type stored in the inverter.
[0090] S106, the gateway receives the index table request frame sent by the mobile terminal, and transmits it to the inverter.
[0091] S107, the inverter receives and analyzes the index table request frame transmitted by the gateway, queries the characteristic data of each index table of the target type, frames according to the characteristic data to generate an index table response frame, and sends the index table response frame to the gateway.
[0092] The index table response frame includes the characteristic data of each index table.
[0093] In one example, the characteristic data of the index table can include a serial number and a total frame number.
[0094] S108, the gateway receives the index table response frame sent by the inverter, and transmits it to the mobile terminal.
[0095] S109, the mobile terminal receives and analyzes the index table response frame transmitted by the gateway, receives a user reading instruction of target data, determines a target index table corresponding to the target data, frames according to the characteristic data of the target index table to obtain a target data request frame, and sends the target data request frame to the target gateway.
[0096] The target data request frame includes the characteristic data of the target index table corresponding to the target data.
[0097] In one example, the user reading instruction of the target data can include a data source and a data amount.
[0098] The data source can be a grid-side inverter, a machine-side inverter and / or a platform side, and the data amount can be the latest data, or multiple data, or all data.
[0099] The mobile terminal displays the three data source options of the grid-side inverter, the machine-side inverter and the platform side, and the data amount options of the latest data, data within one day, data within one week and / or all data, for the user to select. The data source and the data amount selected by the user are the target data, and the mobile terminal determines the target index table corresponding to the target data based on the user's selection. The mobile terminal frames the target data request frame according to the serial number and the total frame number of the target index table, and sends the target data request frame to the target gateway.
[0100] S110, the gateway receives the target data request frame sent by the mobile terminal and transmits it to the inverter.
[0101] S111, the inverter receives and analyzes the target data request frame transmitted by the gateway, obtains the feature data of the target index table corresponding to the target data, queries the target index table according to the feature data of the target index table, obtains the target data, frames the target data to generate the target data response frame, and sends the target data response frame to the gateway.
[0102] The target data response frame includes the target data.
[0103] S112, the gateway receives the target data response frame sent by the inverter and transmits it to the mobile terminal.
[0104] S113, the mobile terminal receives and analyzes the target data response frame transmitted by the gateway, and obtains the target data.
[0105] In one embodiment, after the mobile terminal obtains the target data, the method for the mobile terminal to connect and communicate with the near end of the inverter further includes the following steps: displaying the target data to the user; and / or, storing the target data locally; and / or, uploading the target data to a remote server.
[0106] If the target data is of the target type of fault recording, the fault waveform, fault parameters and other data are displayed;
[0107] If the target data is of the target type of data recording, the data recording is displayed in a list form according to the time sequence of the target data.
[0108] The mobile terminal can store the target data locally, and in the case of good network conditions, the mobile terminal can also upload the stored target data to a remote server, so that the researchers who are not on site can obtain the data in time and locate the problem.
[0109] The method for near-end connection and communication of a mobile terminal and an inverter provided by the embodiment of the present application is that the mobile terminal is connected with a gateway in near-end WiFi, and is connected with the gateway in TCP, the inverter is connected with the gateway in communication, the gateway can transmit the data sent by the mobile terminal to the inverter, and transmit the data sent by the inverter to the mobile terminal. The operator carries the mobile terminal near the inverter, controls the mobile terminal to establish WiFi connection with the gateway, the mobile terminal automatically establishes TCP connection with the gateway, and based on the instruction input by the user, the mobile terminal communicates with the inverter through the gateway, reads the target data required by the user from the inverter, and does not need to rely on wired connection or remote network, and realizes flexible and convenient acquisition of the data recorded by the inverter.
[0110] In one embodiment, the mobile terminal communicates with the inverter by using SCI communication protocol, and the entry number request frame, the entry number response frame, the index table request frame, the index table response frame, the target data request frame and the target data response frame are all encapsulated in the format of SCI communication protocol, and all include the following fields:
[0111] frame header, reserved bit, module address, device chip identification, command type, parameter group identification, parameter ID, parameter value and check value.
[0112] The module address represents the number of the data source type, which can be the number of the grid-side inverter, the machine-side inverter and / or the platform side. For example, 0 represents, 4 to 7 represent the grid-side inverter; 8 to 14 represent the machine-side inverter.
[0113] The device chip identification represents the data source identification of the target data, which can be the identification of the grid-side inverter, the machine-side inverter and / or the platform side. For example, 0x01 represents the grid-side inverter; 0x02 represents the machine-side inverter; 0x03 represents the platform side.
[0114] The command type represents the number of the read / write command, for example, 0x01 represents the read command, and 0x02 represents the write command.
[0115] The parameter group identification represents the identification of the group to which the target data belongs, which is pre-set, for example, 0 represents the platform / state group, 1 to 254 represent the application group, and 255 represents the debugging group.
[0116] The parameter value represents the transmitted parameter. The parameter ID represents the ID of the transmitted parameter.
[0117] The check value is the cyclic redundancy check (CRC) value.
[0118] When the mobile terminal communicates with the inverter, the entry number request frame includes: frame header, reserved bit, number of the inverter, identification of the inverter, read command, group identification to which the entry number belongs, entry number ID, parameter value being zero (indicating that the parameter value is empty) and CRC value.
[0119] The entry number response frame comprises: a frame header, a reserved bit, a number of inverters, an identification of the inverter, a read command, a group identification to which the entry number belongs, an entry number ID, an entry number, and a CRC value.
[0120] The index table request frame comprises: a frame header, a reserved bit, a number of inverters, an identification of the inverter, a read command, a group identification to which the index table belongs, an index table ID, a parameter value of zero (indicating that the parameter value is empty), and a CRC value.
[0121] The index table response frame comprises: a frame header, a reserved bit, a number of inverters, an identification of the inverter, a read command, a group identification to which the index table belongs, an index table ID, a characteristic value of the index table, and a CRC value.
[0122] The target data request frame comprises: a frame header, a reserved bit, a number of inverters, an identification of the inverter, a read command, a group identification to which the target index table belongs, a target index table ID, a characteristic value of the target index table, and a CRC value.
[0123] The target data response frame comprises: a frame header, a reserved bit, a number of inverters, an identification of the inverter, a read command, a group identification to which the target index table belongs, a target index table ID, target data, and a CRC value.
[0124] The mobile terminal encapsulates the entry number request frame, the index table request frame, and the target data request frame according to the SCI communication protocol format, and parses the entry number response frame, the index table response frame, and the target data response frame according to the SCI communication protocol format.
[0125] The inverter encapsulates the index table request frame, the index table response frame, and the target data request frame according to the SCI communication protocol format, and parses the entry number request frame, the index table request frame, and the target data response frame according to the SCI communication protocol format.
[0126] In the method provided in the embodiment, the mobile terminal and the inverter communicate by using the SCI communication protocol, and the data integrity is guaranteed by the check value of the frame header and the frame tail.
[0127] In one embodiment, the method for near-end connection and communication of the mobile terminal and the inverter provided in the embodiment further comprises the following steps:
[0128] The mobile terminal sends a heartbeat frame to the gateway, so as to trigger the re-establishment of the communication connection with the gateway when the connection is interrupted.
[0129] After the mobile terminal establishes the WiFi connection and the TCP connection with the gateway, the mobile terminal further sends a heartbeat frame to the gateway, so that the gateway receives the heartbeat frame when the connection between the mobile terminal and the gateway is interrupted, and the mobile terminal re-establishes the communication connection.
[0130] In the method provided by the embodiment of the present application, the mobile terminal sends a heartbeat frame to the gateway after establishing the WiFi connection and the TCP connection with the gateway, so that the communication connection between the mobile terminal and the gateway is stable.
[0131] The embodiment of the present application further provides a mobile terminal which can execute the steps performed by the mobile terminal in the method for near-end connection and communication between the mobile terminal and the inverter provided by any of the above embodiments of the present application, and has the corresponding functional modules and advantages of the method for near-end connection and communication between the mobile terminal and the inverter. The technical details not described in detail in the embodiment can be found in the specific processing content of the method for near-end connection and communication between the mobile terminal and the inverter provided by the above embodiments of the present application, which will not be described here.
[0132] The embodiment of the present application further provides an inverter which can execute the steps performed by the inverter in the method for near-end connection and communication between the mobile terminal and the inverter provided by any of the above embodiments of the present application, and has the corresponding functional modules and advantages of the method for near-end connection and communication between the mobile terminal and the inverter. The technical details not described in detail in the embodiment can be found in the specific processing content of the method for near-end connection and communication between the mobile terminal and the inverter provided by the above embodiments of the present application, which will not be described here.
[0133] The embodiment of the present application further provides another inverter which includes a gateway and can execute the steps performed by the inverter and the gateway in the method for near-end connection and communication between the mobile terminal and the inverter provided by any of the above embodiments of the present application, and has the corresponding functional modules and advantages of the method for near-end connection and communication between the mobile terminal and the inverter. The technical details not described in detail in the embodiment can be found in the specific processing content of the method for near-end connection and communication between the mobile terminal and the inverter provided by the above embodiments of the present application, which will not be described here.
[0134] The embodiment of the present application further provides a gateway which can execute the steps performed by the gateway in the method for near-end connection and communication between the mobile terminal and the inverter provided by any of the above embodiments of the present application, and has the corresponding functional modules and advantages of the method for near-end connection and communication between the mobile terminal and the inverter. The technical details not described in detail in the embodiment can be found in the specific processing content of the method for near-end connection and communication between the mobile terminal and the inverter provided by the above embodiments of the present application, which will not be described here.
[0135] The embodiment of the present application provides a computer program product including computer program instructions, and the instructions in the computer program product are executed by a processor of an electronic device, so that the electronic device executes the steps in the method for near-end connection and communication between the mobile terminal and the inverter provided by various embodiments of the present application described in the specification.
[0136] The computer program product can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device or entirely on the remote computing device or server.
[0137] For each method embodiments described above, for simplicity of description, the method is described as a series of acts but those of skill in the art will appreciate that the acts described can be combined with other acts not specifically described or executed in other sequences than those described.
[0138] It should be noted that each of the above-described embodiments can be implemented in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts among the embodiments can be mutually referred to.
[0139] The steps in the method of each embodiment of the application can be adjusted in sequence, combined and reduced according to actual needs. The technical features recorded in each embodiment can be replaced or combined.
[0140] The modules and sub-modules in the device and terminal of each embodiment of the application can be combined, divided and reduced according to actual needs.
[0141] Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the embodiments disclosed herein can be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality, without reference to a specific sequence of operations for implementing the function, and even though described generally in terms of their functionality, those skilled in the art will appreciate that these functional steps can be implemented in one physical act of device, instrument, computer component, or combination of physical acts. Whether such steps are implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans recognize or have the ability to recognize that separating various functions into different physical components or steps for purposes of reusability of these components, and these components and steps accordingly, are not actually limits of the application.
[0142] The steps of a method or algorithm described in connection with the embodiments disclosed herein can be embodied directly in hardware, in a software executed by a processor, or in a combination of the two. A software unit can reside in RAM (random access memory), flash memory, ROM (read-only memory), EPROM (erasable programmable ROM), EEPROM (electrically erasable programmable ROM), registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0143] Finally, it is also important to note that, while the above description has been made with respect to the embodiments disclosed herein, the language used is intended to convey more than the literal language and to leave much to the discretion of any such skilled person. Thus, the scope of the present application should be determined by the broadest interpretation of the principles disclosed herein and their equivalents, and will not be limited to the specific embodiments disclosed herein, but will be understood to include any variations and modifications that are obvious to one of ordinary skill in the art.
[0144] The above description of disclosed embodiments provides enabling teaching for a person skilled in the art to realize or use the present application. Various modifications to these embodiments will be obvious to those skilled in the art, and general principles defined herein can be applied to other embodiments without departing from the spirit or scope of the application. Therefore, the present application will not be limited to these embodiments shown herein, but will conform to the broadest scope of principles and novel features disclosed herein.
Claims
1. A method of mobile terminal and near-end connection and communication of an inverter, characterized in that, The inverter is connected with the gateway through TCP, and the method comprises: Receiving and responding to the user's indication, establishing a near-end WiFi connection with the gateway; Initiating a TCP connection request to the gateway, and establishing a TCP connection with the gateway; Based on the user input instruction, communicate with the inverter through the gateway, and read the target data required by the user from the inverter.
2. The method of mobile terminal and near-end connection and communication of the inverter according to claim 1, characterized in that, The method further comprises: Displaying at least one data type, generating an entry number request frame for the target data type based on the user's selection instruction, and sending the entry number request frame to the gateway; Receiving and parsing the entry number response frame transmitted by the gateway to obtain the corresponding entry number of the target data type; based on the entry number, generating an index table request frame; sending the index table request frame to the gateway to request reading each index table of the target type; wherein the entry number represents the number of index tables corresponding to the target type stored in the inverter; Receiving and parsing the index table response frame transmitted by the gateway; receiving the user's reading instruction of the target data, determining the target index table corresponding to the target data; according to the characteristic data of the target index table, frame the target data request frame; send the target data request frame to the target gateway; wherein the index table response frame includes the characteristic data of each index table, and the target data request frame includes the characteristic data of the target index table corresponding to the target data; Receiving and parsing the target data response frame transmitted by the target gateway to obtain the target data.
3. The method of mobile terminal and near-end connection and communication of the inverter according to claim 2, characterized in that, When the target type is fault recording, the target data is the latest recording data or all recording data; When the target type is data recording, the target data is fault recording, alarm recording or event recording.
4. The method of mobile terminal and near-end connection and communication of the inverter according to claim 2, characterized in that, The mobile terminal uses SCI communication protocol to communicate with the inverter, and the entry number request frame, the entry number response frame, the index table request frame, the index table response frame, the target data request frame and the target data response frame are all packaged in SCI communication protocol format, and all include the following fields: Frame header, reserved bit, module address, device chip identification, command type, parameter grouping identification, parameter ID, parameter value and check value.
5. The method of mobile terminal and near-end connection and communication of inverter according to claim 1, characterized in that, The method further comprises: Sending a heartbeat frame to the gateway to trigger the re-establishment of communication connection with the gateway when the connection is interrupted.
6. The method of mobile terminal and near-end connection and communication of inverter according to claim 1, characterized in that, The method further comprises: Displaying the target data to the user; And / or, storing the target data locally; And / or, uploading the target data to a remote server.
7. A method of mobile terminal near-end connection and communication with an inverter, characterized by, The inverter is connected with the gateway through TCP, and the method comprises: Communicate with the mobile terminal through the gateway, and send the target data to the mobile terminal; Wherein, the target data is the data corresponding to the reading request input by the user to the mobile terminal, the gateway is connected with the mobile terminal through near-end WiFi, and is connected with the mobile terminal through TCP.
8. The method of mobile terminal and near-end connection and communication of inverter according to claim 7, characterized in that, The gateway communicates with the mobile terminal, and sends target data to the mobile terminal, including: Receiving and analyzing the item number request frame transmitted by the gateway, obtaining the target type; generating an item number response frame based on the corresponding item number of the target data type; sending the item number response frame to the gateway; wherein the item number response frame includes an item number, and the item number represents the number of index tables corresponding to the target type stored in the inverter; Receiving and analyzing the index table request frame transmitted by the gateway; querying the characteristic data of each index table of the target type; generating an index table response frame according to the characteristic data; wherein the index table request frame is used to request to read each index table of the target type, and the index table response frame includes the characteristic data of each index table; sending the index table response frame to the gateway; Receiving and analyzing the target data request frame transmitted by the gateway, obtaining the characteristic data of the target index table corresponding to the target data; querying the target index table according to the characteristic data of the target index table, obtaining the target data; generating a target data response frame according to the target data; sending the target data response frame to the gateway; wherein the target data response frame includes the target data.
9. A system for near-end connection and communication of a mobile terminal with an inverter, characterized by The system includes a mobile terminal, an inverter and a gateway, and the inverter is connected with the gateway through TCP; The mobile terminal is configured to receive and respond to the indication of a user, and request to establish a near-end WiFi connection with the gateway; The gateway is configured to respond to the mobile terminal, and establish a near-end WiFi connection with the mobile terminal; The mobile terminal is further configured to initiate a TCP connection request to the gateway; The gateway is further configured to respond to the mobile terminal, and establish a TCP connection with the mobile terminal; The mobile terminal is further configured to communicate with the inverter through the gateway based on the instruction input by the user, and read the target data required by the user from the inverter; The gateway is further configured to transmit the data sent by the mobile terminal to the inverter, and transmit the data sent by the inverter to the mobile terminal; The inverter is configured to communicate with the mobile terminal through the gateway, and send target data to the mobile terminal.
10. The system for near-end connection and communication of the mobile terminal and the inverter according to claim 9, wherein The mobile terminal is specifically configured to display at least one data type, generate an item number request frame for the target data type based on the selection instruction of the target data type input by the user, and send the item number request frame to the gateway; The gateway is specifically configured to receive the item number request frame sent by the mobile terminal, and transmit it to the inverter; The inverter is specifically configured to receive and analyze the item number request frame transmitted by the gateway, obtain the target type; generate an item number response frame based on the corresponding item number of the target data type; send the item number response frame to the gateway; wherein the item number response frame includes an item number, and the item number represents the number of index tables corresponding to the target type stored in the inverter; The gateway is further configured to receive the entry number response frame sent by the inverter and transparently transmit the entry number response frame to the mobile terminal. The mobile terminal is further configured to receive and parse the entry number response frame transparently transmitted by the gateway to obtain the entry number corresponding to the target data type, generate an index table request frame based on the entry number, and send the index table request frame to the gateway to request reading of each index table of the target type; the entry number represents the number of index tables of the target type stored by the inverter. The gateway is further configured to receive the index table request frame sent by the mobile terminal and transparently transmit the index table request frame to the inverter. The inverter is further configured to receive and parse the index table request frame transparently transmitted by the gateway, query the characteristic data of each index table of the target type, generate an index table response frame based on the characteristic data, and send the index table response frame to the gateway; the index table response frame includes the characteristic data of each index table. The gateway is further configured to receive the index table response frame sent by the inverter and transparently transmit the index table response frame to the mobile terminal. The mobile terminal is further configured to receive and parse the index table response frame transparently transmitted by the gateway, receive a reading instruction of target data from a user, determine a target index table corresponding to the target data, generate a target data request frame based on the characteristic data of the target index table, and send the target data request frame to the target gateway; the target data request frame includes the characteristic data of the target index table corresponding to the target data. The gateway is further configured to receive the target data request frame sent by the mobile terminal and transparently transmit the target data request frame to the inverter. The inverter is further configured to receive and parse the target data request frame transparently transmitted by the gateway to obtain the characteristic data of the target index table corresponding to the target data, query the target index table based on the characteristic data of the target index table, obtain target data, generate a target data response frame based on the target data, and send the target data response frame to the gateway; the target data response frame includes the target data. The gateway is further configured to receive the target data response frame sent by the inverter and transparently transmit the target data response frame to the mobile terminal. The mobile terminal is further configured to receive and parse the target data response frame transparently transmitted by the target gateway to obtain the target data.