CN113268255A - After-sale program writing method, device and system - Google Patents

After-sale program writing method, device and system Download PDF

Info

Publication number
CN113268255A
CN113268255A CN202110525174.XA CN202110525174A CN113268255A CN 113268255 A CN113268255 A CN 113268255A CN 202110525174 A CN202110525174 A CN 202110525174A CN 113268255 A CN113268255 A CN 113268255A
Authority
CN
China
Prior art keywords
maintenance equipment
target maintenance
receiving
file
user side
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110525174.XA
Other languages
Chinese (zh)
Inventor
袁龙刚
黄斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Hongmei Intelligent Technology Co Ltd
Original Assignee
Sichuan Hongmei Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Hongmei Intelligent Technology Co Ltd filed Critical Sichuan Hongmei Intelligent Technology Co Ltd
Priority to CN202110525174.XA priority Critical patent/CN113268255A/en
Publication of CN113268255A publication Critical patent/CN113268255A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides an after-sale program writing method, a device and a system, wherein the method comprises the following steps: sending a communication request to the target maintenance device; the communication request is used for establishing communication connection of data transmission with the target maintenance equipment; receiving an inquiry instruction aiming at target maintenance equipment sent by a user side; the query instruction is used for acquiring attribute information of the target maintenance equipment; returning the attribute information of the target maintenance equipment to the user side according to the query instruction; receiving a write-in file corresponding to the target maintenance equipment, which is returned by the user side according to the attribute information; and sending the write-in file to the target maintenance equipment so that the target maintenance equipment performs program writing according to the write-in file. The scheme can realize flexible writing of the after-sale program of the household appliance.

Description

After-sale program writing method, device and system
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a method, an apparatus, and a system for writing an after-sale program.
Background
At present, various household appliances become necessities in daily life, and particularly, the appearance of intelligent household appliances brings great convenience to the life of people. However, during the after-sales repair process, since the main control repair spare part used after the sales is usually in a general mode, program writing needs to be performed after the repair spare part is installed so that the repair equipment can normally work. For the intelligent household appliance, the intelligent household appliance has a networking function or can access a cloud server through a network, so program writing can be realized through the network; however, for the non-intelligent home appliances, program writing can only be performed by a manager to write in different home appliance devices, and since the non-intelligent home appliances cannot be networked, a maintenance worker cannot acquire the program during maintenance and cannot complete program writing.
Chinese patent application No. CN202010812804.7 discloses an after-sale maintenance device for an air conditioner, a control method, and an air conditioner, wherein the method only uses each functional component of the air conditioner to perform detection and display, so as to realize data analysis and display of communication between an internal machine and an external machine, and report out abnormal positions of components of the air conditioner and suggest a maintenance scheme. The invention mainly solves the existing problems of overhauling and troubleshooting the air conditioner on the whole, and can not flexibly write the after-sale program of the household appliance.
Disclosure of Invention
The invention provides an after-sale program writing method, device and system, which can realize flexible writing of after-sale programs of household appliances.
In a first aspect, an embodiment of the present invention provides an after-sales program writing method, including:
sending a communication request to the target maintenance device; wherein the communication request is used for establishing a communication connection for data transmission with the target maintenance equipment;
receiving an inquiry instruction aiming at the target maintenance equipment sent by a user side; the query instruction is used for acquiring attribute information of the target maintenance equipment;
returning the attribute information of the target maintenance equipment to the user side according to the query instruction;
receiving a write-in file corresponding to the target maintenance equipment, which is returned by the user side according to the attribute information;
and sending the written file to the target maintenance equipment so that the target maintenance equipment performs program writing according to the written file.
Optionally, before the receiving the query instruction for the target repair device sent by the user side, the method further includes:
connecting to the user terminal through an Access Point (AP) mode;
and sending the communication data to the user side so as to establish data transmission communication connection with the user side according to the communication data.
Optionally, before the sending the write file to the target repair device, after the sending the communication request to the target repair device, further includes:
receiving the query instruction sent by the user side; the query instruction is further used for acquiring state information of the target maintenance equipment, wherein the state information comprises an online state and an offline state;
and when the state information is determined to be in an online state, sending the written file to the target maintenance equipment.
Optionally, after the sending the write file to the target repair device, further comprising:
receiving feedback information returned by the target maintenance equipment; the receiving feedback information is obtained by verifying the written file by the target maintenance equipment, and the receiving feedback information comprises receiving success and receiving failure;
when the receiving feedback information is successful, receiving write-in feedback information returned by the target maintenance equipment; the writing feedback information is used for representing whether the target maintenance equipment completes writing according to the writing file;
and sending the write-in feedback information to the user side.
Optionally, after the sending the write file to the target repair device, further comprising:
receiving the receiving feedback information returned by the target maintenance equipment;
when the receiving feedback information is receiving failure, recording the times of receiving the feedback information as receiving failure;
judging whether the times are larger than a preset times threshold value or not,
if so, determining that the write-in file fails to be sent;
and if not, sending the write-in file to the target maintenance equipment, and executing the receiving feedback information returned by the target maintenance equipment.
Optionally, before the receiving the query instruction for the target repair device sent by the user side, the method further includes:
establishing a communication connection for data transmission with the user side through a TCP connection;
receiving heartbeat response information sent by the user side according to a preset heartbeat frequency, and recording first time corresponding to the current heartbeat response information;
judging whether the time difference between the first time and the second time of the heartbeat response information recorded last time is larger than a preset threshold value or not;
if yes, determining that the current heartbeat response information is overtime, and determining that the communication connection for establishing data transmission with the user side is abnormal.
In a second aspect, an embodiment of the present invention further provides an after-sales program writing apparatus, including:
the first sending module is used for sending a communication request to the target maintenance equipment; wherein the communication request is used for establishing a communication connection for data transmission with the target maintenance equipment;
the first receiving module is used for receiving an inquiry instruction which is sent by a user side and aims at the target maintenance equipment; the query instruction is used for acquiring attribute information of the target maintenance equipment;
the second sending module is used for returning the attribute information of the target maintenance equipment to the user side according to the query instruction received by the first receiving module;
the first receiving module is further configured to receive a write-in file, corresponding to the target maintenance device, returned by the user side according to the attribute information sent by the second sending module;
and the third sending module is used for sending the write-in file received by the first receiving module to the target maintenance equipment so as to enable the target maintenance equipment to write in a program according to the write-in file.
In a third aspect, the present invention further provides an after-sales program writing system, including: an after-sales program writing device provided by the target maintenance device, the user side, and any possible implementation manner of the second aspect or the second aspect;
the after-sale program writing device is used for establishing communication connection with the target maintenance equipment and the user side respectively;
the user side is used for sending a query instruction to the after-sales program writing device, receiving attribute information of the target maintenance equipment according to the query instruction, returning a writing file of the target maintenance equipment according to the attribute information, and sending the writing file to the after-sales program writing device;
and the target maintenance equipment is used for receiving the written file sent by the after-sales program writing device so as to write a program according to the written file.
In a fourth aspect, the present invention further provides an after-sales program writing apparatus, including: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor is configured to invoke the machine-readable program to execute the after-sales program writing method provided by the first aspect or any possible implementation manner of the first aspect.
In a fifth aspect, the present invention further provides a computer-readable medium having stored thereon computer instructions, which, when executed by a processor, cause the processor to execute the after-market program writing method provided in the first aspect or any possible implementation manner of the first aspect.
According to the scheme, the after-sales program writing method, the device and the system provided by the embodiment of the invention establish data transmission communication connection with the target maintenance equipment by sending the communication request to the target maintenance equipment; when receiving an inquiry instruction which is sent by a user side and aims at target maintenance equipment, acquiring attribute information of the target WeChat equipment according to the inquiry instruction based on the target maintenance equipment which establishes communication connection, receiving a write-in file which is returned by the user side according to the attribute information and corresponds to the target maintenance equipment, and sending the write-in file to the target maintenance equipment so as to enable the target maintenance equipment to write in a program. Therefore, the target maintenance equipment and the user side are connected respectively, so that the corresponding written-in file is determined from the user side, the written-in file is successfully forwarded to the target maintenance equipment, and the program writing of the target maintenance equipment is finally realized. Therefore, the flexible writing of the after-sale program of the non-intelligent household appliance can be completed based on the after-sale program writing method only by establishing communication connection with the target maintenance equipment in advance.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a method for writing an after-market program according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an apparatus in which an after-market program writing device according to an embodiment of the present invention is located;
FIG. 3 is a diagram illustrating an after-market program writing apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an after-market program writing system according to an embodiment of the invention;
FIG. 5 is a flowchart of another method for writing an after-market program according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides an after-market program writing method, which may include the following steps:
step 101: sending a communication request to the target maintenance device; the communication request is used for establishing communication connection of data transmission with the target maintenance equipment;
step 102: receiving an inquiry instruction aiming at target maintenance equipment sent by a user side; the query instruction is used for acquiring attribute information of the target maintenance equipment;
step 103: returning the attribute information of the target maintenance equipment to the user side according to the query instruction;
step 104: receiving a write-in file corresponding to the target maintenance equipment, which is returned by the user side according to the attribute information;
step 105: and sending the write-in file to the target maintenance equipment so that the target maintenance equipment performs program writing according to the write-in file.
According to the after-sale program writing method provided by the embodiment of the invention, a communication request is sent to the target maintenance equipment so as to establish data transmission communication connection with the target maintenance equipment; when receiving an inquiry instruction which is sent by a user side and aims at target maintenance equipment, acquiring attribute information of the target WeChat equipment according to the inquiry instruction based on the target maintenance equipment which establishes communication connection, receiving a write-in file which is returned by the user side according to the attribute information and corresponds to the target maintenance equipment, and sending the write-in file to the target maintenance equipment so as to enable the target maintenance equipment to write in a program. Therefore, the target maintenance equipment and the user side are connected respectively, so that the corresponding written-in file is determined from the user side, the written-in file is successfully forwarded to the target maintenance equipment, and the program writing of the target maintenance equipment is finally realized. Therefore, the flexible writing of the after-sale program of the non-intelligent household appliance can be completed based on the after-sale program writing method only by establishing communication connection with the target maintenance equipment in advance.
In this embodiment of the present invention, step 101 sends a communication request to the target maintenance device, specifically, after the power is turned on, the MCU of the target maintenance device is actively sent handshake information (for example, a serial data packet with a message type of 01), and when the MCU of the target maintenance device receives handshake success information returned by the target maintenance device and passes verification, it determines that a communication connection for data transmission has been successfully established.
It should be noted that the target maintenance device may be a non-intelligent appliance or an intelligent appliance. The user side may be a mobile terminal (e.g., a cell phone APP, a tablet APP, etc.). The after-sales program writing method is applied to an after-sales program writing device, which can be a WiFi module.
Optionally, on the basis of the after-sales program writing method shown in fig. 1, before receiving the query instruction for the target repair device sent by the user end in step 102, the method further includes:
connecting to a user terminal through an Access Point (AP) mode;
and sending the communication data to the user side so as to establish a communication connection for data transmission with the user side according to the communication data.
In the embodiment of the present invention, before receiving the query instruction, a communication connection needs to be established with the user side, and after connecting to the user side through the AP mode, the communication data is sent to the user side, so as to establish a communication connection for data transmission with the user side through the communication data.
Specifically, in an AP mode (for example, a WiFi hotspot) of an access point, after a user connects to the hotspot, a piece of UDP broadcast data occurs to a designated port, and a piece of UDP unicast data is returned by a WiFi module in an after-sales program writing device, where the UDP unicast data includes communication data such as an IP address of the WiFi module, a TCP working port, and a device type. The connection between the target maintenance equipment and the user side can be achieved based on the WiFi module, even though the non-intelligent equipment does not have the networking function, the connection can be indirectly established between the external WiFi module and the user side, and support is provided for writing in after-sales programs, so that program writing operation of maintenance personnel is facilitated, the maintenance personnel can write in the programs flexibly during maintenance, and use experience of users is improved.
In this embodiment of the present invention, in step 103, according to the received query instruction, the attribute information of the currently connected target maintenance device may be obtained, and the user side stores the write-in files of the corresponding programs of different maintenance devices, so that in step 104, after receiving the attribute information, the user side may return the write-in file corresponding to the target maintenance device.
Optionally, on the basis of the after-sales program writing method shown in fig. 1, before sending the write file to the target repair apparatus in step 105, after sending a communication request to the target repair apparatus in step 101, the method further includes:
receiving a query instruction sent by a user side; the query instruction is further used for acquiring state information of the target maintenance equipment, wherein the state information comprises an online state and an offline state;
and when the state information is determined to be in an online state, sending the written file to the target maintenance equipment.
In the embodiment of the invention, when an inquiry instruction from a user side is received, if the state information of the target maintenance equipment acquired according to the inquiry instruction is in an online state, the written file is sent to the target maintenance equipment. Therefore, the write-in file is sent to the target maintenance equipment when the target maintenance equipment is ensured to be in an online state, so that the target maintenance equipment can be ensured to accurately receive the write-in file, and the efficiency and the accuracy of the after-sales program write-in method are improved.
Specifically, when it is determined that the status information is in the offline status, it is determined that the target maintenance device is disconnected from the communication connection with the after-sales program writing apparatus, and it is necessary to return to step 101 to reestablish the communication connection with the target maintenance device.
Optionally, on the basis of the after-sales program writing method shown in fig. 1, after sending the write file to the target repair device in step 105, the method further includes:
receiving feedback information returned by the target maintenance equipment; the receiving feedback information is obtained by verifying the written file by the target maintenance equipment, and the receiving feedback information comprises receiving success and receiving failure;
when the feedback information is received successfully, receiving write-in feedback information returned by the target maintenance equipment; the writing feedback information is used for representing whether the target maintenance equipment completes writing according to the written file;
and sending the written feedback information to the user side.
In the embodiment of the invention, the receiving feedback information returned by the target maintenance equipment is received, and when the receiving feedback information is successful, the writing feedback information returned by the target maintenance equipment is received and sent to the user side. Therefore, after the target maintenance equipment is determined to successfully receive the written-in file, the written-in file cannot be continuously sent to the target maintenance equipment, then the target maintenance equipment writes in according to the written-in file, and write-in feedback information after writing in is obtained, so that the user side can conveniently determine the written-in result, and the use experience of the user is improved.
Optionally, on the basis of the after-sales program writing method shown in fig. 1, after sending the write file to the target repair device in step 105, the method further includes:
receiving feedback information returned by the target maintenance equipment;
when the receiving of the feedback information is failure, recording the times of receiving the feedback information as failure; judging whether the times are greater than a preset times threshold value,
if so, determining that the transmission of the write file fails;
and if not, sending the write-in file to the target maintenance equipment, and receiving feedback information returned by the target maintenance equipment.
In the embodiment of the invention, receiving feedback information returned by the target maintenance equipment, recording the times of receiving the feedback information as receiving failure when the receiving of the feedback information is receiving failure, determining that the sending of the written file fails when the times is greater than a preset time threshold, and ending the current process. And when the times are not more than the preset times threshold, continuing to send the written file to the target maintenance equipment until the written file is successfully received before the preset times threshold is reached. Therefore, the written-in file is repeatedly sent by setting the preset time threshold, so that the target maintenance equipment can receive the written-in file, and the efficiency and the accuracy of the after-sale program writing method are improved.
Optionally, on the basis of the after-sales program writing method shown in fig. 1, before receiving the query instruction for the target repair device sent by the user end in step 102, the method further includes:
establishing a communication connection for data transmission with a user side through a TCP connection;
receiving heartbeat response information sent by a user side according to a preset heartbeat frequency, and recording first time corresponding to the current heartbeat response information;
judging whether the time difference between the first time and the second time of the heartbeat response information recorded last time is greater than a preset threshold value or not;
if yes, determining that the current heartbeat response information is overtime, and determining that the communication connection for establishing data transmission with the user terminal is abnormal.
In the embodiment of the invention, after the communication connection of data transmission is established with the user terminal through the TCP connection, the heartbeat response information sent by the user terminal is received according to the preset heartbeat frequency, the first time corresponding to the current heartbeat response information is recorded, when the time difference between the first time and the second time of the last recorded heartbeat response information is greater than the preset threshold value, the current heartbeat response information is determined to be overtime, the communication connection of data transmission with the user terminal is determined to be abnormal, and then the fault is required to be overhauled or the communication connection is required to be reestablished. Therefore, the communication connection with the user side can be confirmed in real time, and the response can be made in time when the communication connection is disconnected, so that the communication is ensured to be normal, and the efficiency of writing the after-sales program is further improved.
As shown in fig. 2 and 3, an embodiment of the present invention provides an after-market program writing apparatus. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. From a hardware level, as shown in fig. 2, a hardware structure diagram of a device in which a WiFi module is provided in the embodiment of the present invention is shown, except for the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 2, the device in which the apparatus is located in the embodiment may also include other hardware, such as a forwarding chip responsible for processing a packet, in general. Taking a software implementation as an example, as shown in fig. 3, as a logical apparatus, the apparatus is formed by reading, by a CPU of a device in which the apparatus is located, corresponding computer program instructions in a non-volatile memory into a memory for execution. As shown in fig. 3, an embodiment of the present invention provides an after-market program writing apparatus, including: a first sending module 301, a first receiving module 302, a second sending module 303 and a third sending module 304;
a first sending module 301, configured to send a communication request to a target maintenance device; the communication request is used for establishing communication connection of data transmission with the target maintenance equipment;
a first receiving module 302, configured to receive an inquiry instruction sent by a user side for a target maintenance device; the query instruction is used for acquiring attribute information of the target maintenance equipment;
the second sending module 303 is configured to return the attribute information of the target maintenance device to the user side according to the query instruction received by the first receiving module 302;
the first receiving module 302 is further configured to receive a write-in file, returned by the user side according to the attribute information sent by the second sending module 303, of the corresponding target maintenance device;
a third sending module 304, configured to send the write file received by the first receiving module 302 to the target maintenance device, so that the target maintenance device performs program writing according to the write file.
Optionally, on the basis of the after-sales program writing apparatus shown in fig. 3, the apparatus further includes: a first communication module to perform the following operations:
connecting to a user terminal through an Access Point (AP) mode;
and sending the communication data to the user side so as to establish a communication connection for data transmission with the user side according to the communication data.
Optionally, on the basis of the after-sales program writing apparatus shown in fig. 3, the first receiving module 302 is further configured to perform the following operations:
receiving a query instruction sent by a user side; the query instruction is further used for acquiring state information of the target maintenance equipment, wherein the state information comprises an online state and an offline state;
and when the state information is determined to be in an online state, sending the written file to the target maintenance equipment.
Alternatively, on the basis of the after-market program writing apparatus shown in fig. 3, the apparatus includes: a second receiving module;
the second receiving module is used for executing the following operations:
receiving feedback information returned by the target maintenance equipment; the receiving feedback information is obtained by verifying the written file by the target maintenance equipment, and the receiving feedback information comprises receiving success and receiving failure;
when the feedback information is received successfully, receiving write-in feedback information returned by the target maintenance equipment; the writing feedback information is used for representing whether the target maintenance equipment completes writing according to the written file;
the second sending module 303 is further configured to send the write feedback information to the user side.
Alternatively, based on the after-market program writing device shown in fig. 3,
the second receiving module is further configured to perform the following operations:
receiving feedback information returned by the target maintenance equipment;
when the receiving of the feedback information is failure, recording the times of receiving the feedback information as failure;
judging whether the times are greater than a preset times threshold value,
if so, determining that the transmission of the write file fails;
if not, the third sending module 304 sends the write-in file to the target maintenance equipment, and returns to receive feedback information returned by the target maintenance equipment.
Optionally, on the basis of the after-sales program writing device shown in fig. 3, the second sending module 303 is further configured to perform the following operations:
establishing a communication connection for data transmission with a user side through a TCP connection;
receiving heartbeat response information sent by a user side according to a preset heartbeat frequency, and recording first time corresponding to the current heartbeat response information;
judging whether the time difference between the first time and the second time of the heartbeat response information recorded last time is greater than a preset threshold value or not;
if yes, determining that the current heartbeat response information is overtime, and determining that the communication connection for establishing data transmission with the user terminal is abnormal.
It is to be understood that the exemplary configuration of the embodiments of the present invention does not constitute a specific limitation on the after-market program writing apparatus. In other embodiments of the invention, an after-market program writer may include more or fewer components than shown, or some components may be combined, or some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, firmware, or a combination of firmware and hardware.
Because the content of information interaction, execution process, and the like among the modules in the device is based on the same concept as the method embodiment of the present invention, specific content can be referred to the description in the method embodiment of the present invention, and is not described herein again.
As shown in fig. 4, an embodiment of the present invention provides an after-market program writing system, including: the target maintenance device 401, the client 402, and the after-sales program writing device 403 provided in any of the above embodiments;
the after-sale program writing device is used for respectively establishing communication connection with the target maintenance equipment and the user side;
the user side is used for sending a query instruction to the after-sales program writing device, receiving the attribute information of the target maintenance equipment according to the query instruction, returning a written file of the target maintenance equipment according to the attribute information, and sending the written file to the after-sales program writing device;
and the target maintenance equipment is used for receiving the written file sent by the after-sales program writing device so as to write the program according to the written file.
It should be noted that the after-market program writing device may be a WiFi module. Specifically, the WiFi module may further include a transfer tool module, and the transfer tool module is configured to supply power to the after-sale program writing device. The switching tool module is also used for connecting a target maintenance device MCU (microprogrammed control unit) to transmit and forward data, and the switching working module is also provided with an indicator lamp (for example, an LED lamp), so that the working state of an after-sale program writing system can be judged through the indicator lamp. Specifically, when the WiFi module is not successfully communicated with the target maintenance equipment MCU, the indicator lamp is in an off state; when the WiFi module and the target maintenance equipment MCU successfully establish communication connection, the indicator lamp is in a slow flashing state; the indicator light is in the fast flashing state in the process of program writing of the target maintenance equipment MCU, and the indicator light is in the normally-on state when the program writing is successful.
In the embodiment of the present invention, the hardware related to the target repair device includes an EEPROM and an MCU (where the EEPROM is an abbreviation of an Electrically Erasable Programmable Read-Only Memory, and the MCU is an abbreviation of a Micro Controller Unit), and after acquiring the write-in file from the WiFi module, the MCU writes the write-in file into the EEPROM, thereby completing program writing.
In the embodiment of the invention, the after-sale program writing device is a portable device, so that when a maintenance person performs home maintenance, the after-sale program writing device and the user side comprising the written file can be used for flexibly writing the after-sale program of the non-intelligent equipment.
The following describes the after-market program writing method provided by the embodiment of the present invention in further detail with reference to the after-market program writing system shown in fig. 4, and as shown in fig. 5, the method may include the following steps:
step 501: and the after-sale program writing device establishes communication connection with the target maintenance equipment.
Specifically, after an after-sales program is written into a system and powered on, a communication request is sent to target maintenance equipment; wherein the communication request is used for establishing a communication connection for data transmission with the target service device.
Step 502: and the after-sale program writing device establishes communication connection with the user terminal.
Specifically, the after-sale program writing device is connected to the user side through an Access Point (AP) mode;
sending the communication data to the user side so as to establish data transmission communication connection with the user side according to the communication data;
establishing a communication connection for data transmission with a user side through a TCP connection;
receiving heartbeat response information sent by a user side according to a preset heartbeat frequency, and recording first time corresponding to the current heartbeat response information;
judging whether the time difference between the first time and the second time of the heartbeat response information recorded last time is greater than a preset threshold value or not;
if not, determining that the current heartbeat response information is normal, and determining that the communication connection of the data transmission established between the after-sale program writing device and the user side is stable.
Step 503: and the user side sends a query instruction aiming at the target maintenance equipment to the after-sales program writing device.
Specifically, the query instruction is used for acquiring attribute information and state information of the target maintenance device, and the state information includes an online state and an offline state.
Step 504: and the user side writes the write-in file corresponding to the target maintenance equipment, which is returned to the after-sales program writing device.
Specifically, the after-sales program writing device returns attribute information of the target maintenance device connected with the after-sales program writing device to the user side according to the query instruction.
Step 505: and the after-sales program writing device sends the written file to the target maintenance equipment.
In particular, the amount of the solvent to be used,
when the state information is determined to be in an online state, the written file is sent to target maintenance equipment;
receiving feedback information returned by the target maintenance equipment; the receiving feedback information is obtained by verifying the written file by the target maintenance equipment, and the receiving feedback information comprises receiving success and receiving failure;
when the feedback information is received successfully, the target maintenance equipment writes the program according to the written file, returns the written feedback information to the after-sales program writing device, sends the written feedback information to the user side and ends the current process; the writing feedback information is used for representing whether the target maintenance equipment completes writing according to the written file;
when the receiving of the feedback information is failure, recording the times of receiving the feedback information as failure; judging whether the times are greater than a preset times threshold value,
if so, determining that the transmission of the write file fails;
and if not, sending the write-in file to the target maintenance equipment, and receiving feedback information returned by the target maintenance equipment.
The present invention also provides a computer readable medium storing instructions for causing a machine to perform an after-market program writing method as described herein. Specifically, a system or an apparatus equipped with a storage medium on which firmware program codes that realize the functions of any of the above-described embodiments are stored may be provided, and a computer (or a CPU or MPU) of the system or the apparatus is caused to read out and execute the program codes stored in the storage medium.
In this case, the program code itself read from the storage medium can realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
Examples of the storage medium for supplying the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer via a communications network.
Further, it should be clear that the functions of any one of the above-described embodiments may be implemented not only by executing the program code read out by the computer, but also by causing an operating system or the like operating on the computer to perform a part or all of the actual operations based on instructions of the program code.
Further, it is to be understood that the program code read out from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion module connected to the computer, and then causes a CPU or the like mounted on the expansion board or the expansion module to perform part or all of the actual operations based on instructions of the program code, thereby realizing the functions of any of the above-described embodiments.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, elements recited by the phrase "comprising an … …" do not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the recited elements.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it is to be noted that: the above description is only a preferred embodiment of the present invention, and is only used to illustrate the technical solutions of the present invention, and not to limit the protection scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. An after-market program writing method, comprising:
sending a communication request to the target maintenance device; wherein the communication request is used for establishing a communication connection for data transmission with the target maintenance equipment;
receiving an inquiry instruction aiming at the target maintenance equipment sent by a user side; the query instruction is used for acquiring attribute information of the target maintenance equipment;
returning the attribute information of the target maintenance equipment to the user side according to the query instruction;
receiving a write-in file corresponding to the target maintenance equipment, which is returned by the user side according to the attribute information;
and sending the written file to the target maintenance equipment so that the target maintenance equipment performs program writing according to the written file.
2. The method of claim 1, wherein prior to receiving the query instruction sent by the user end for the target repair device, further comprising:
connecting to the user terminal through an Access Point (AP) mode;
and sending the communication data to the user side so as to establish data transmission communication connection with the user side according to the communication data.
3. The method of claim 1, wherein prior to said sending said write file to said target repair device, after said sending a communication request to a target repair device, further comprising:
receiving the query instruction sent by the user side; the query instruction is further used for acquiring state information of the target maintenance equipment, wherein the state information comprises an online state and an offline state;
and when the state information is determined to be in an online state, sending the written file to the target maintenance equipment.
4. The method of claim 1, further comprising, after the sending the write file to the target repair device:
receiving feedback information returned by the target maintenance equipment; the receiving feedback information is obtained by verifying the written file by the target maintenance equipment, and the receiving feedback information comprises receiving success and receiving failure;
when the receiving feedback information is successful, receiving write-in feedback information returned by the target maintenance equipment; the writing feedback information is used for representing whether the target maintenance equipment completes writing according to the writing file;
and sending the write-in feedback information to the user side.
5. The method of claim 4, further comprising, after the sending the write file to the target repair device:
receiving the receiving feedback information returned by the target maintenance equipment;
when the receiving feedback information is receiving failure, recording the times of receiving the feedback information as receiving failure;
judging whether the times are larger than a preset times threshold value or not,
if so, determining that the write-in file fails to be sent;
and if not, sending the write-in file to the target maintenance equipment, and executing the receiving feedback information returned by the target maintenance equipment.
6. The method according to any one of claims 1 to 5, wherein before receiving the query instruction for the target repair device sent by the user side, the method further comprises:
establishing a communication connection for data transmission with the user side through a TCP connection;
receiving heartbeat response information sent by the user side according to a preset heartbeat frequency, and recording first time corresponding to the current heartbeat response information;
judging whether the time difference between the first time and the second time of the heartbeat response information recorded last time is larger than a preset threshold value or not;
if yes, determining that the current heartbeat response information is overtime, and determining that the communication connection for establishing data transmission with the user side is abnormal.
7. An after-market program writing device, comprising:
the first sending module is used for sending a communication request to the target maintenance equipment; wherein the communication request is used for establishing a communication connection for data transmission with the target maintenance equipment;
the first receiving module is used for receiving an inquiry instruction which is sent by a user side and aims at the target maintenance equipment; the query instruction is used for acquiring attribute information of the target maintenance equipment;
the second sending module is used for returning the attribute information of the target maintenance equipment to the user side according to the query instruction received by the first receiving module;
the first receiving module is further configured to receive a write-in file, corresponding to the target maintenance device, returned by the user side according to the attribute information sent by the second sending module;
and the third sending module is used for sending the write-in file received by the first receiving module to the target maintenance equipment so as to enable the target maintenance equipment to write in a program according to the write-in file.
8. An after-market program writing system, comprising: the target service device, the user terminal, and the after-market program writing apparatus of claim 7;
the after-sale program writing device is used for establishing communication connection with the target maintenance equipment and the user side respectively;
the user side is used for sending a query instruction to the after-sales program writing device, receiving attribute information of the target maintenance equipment according to the query instruction, returning a writing file of the target maintenance equipment according to the attribute information, and sending the writing file to the after-sales program writing device;
and the target maintenance equipment is used for receiving the written file sent by the after-sales program writing device so as to write a program according to the written file.
9. An after-market program writing device, comprising: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor, configured to invoke the machine readable program to perform the after-market program writing method of any one of claims 1 to 6.
10. A computer readable medium having stored thereon computer instructions, which when executed by a processor, cause the processor to perform the after-market program writing method of any one of claims 1 to 6.
CN202110525174.XA 2021-05-14 2021-05-14 After-sale program writing method, device and system Pending CN113268255A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110525174.XA CN113268255A (en) 2021-05-14 2021-05-14 After-sale program writing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110525174.XA CN113268255A (en) 2021-05-14 2021-05-14 After-sale program writing method, device and system

Publications (1)

Publication Number Publication Date
CN113268255A true CN113268255A (en) 2021-08-17

Family

ID=77230764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110525174.XA Pending CN113268255A (en) 2021-05-14 2021-05-14 After-sale program writing method, device and system

Country Status (1)

Country Link
CN (1) CN113268255A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113743628A (en) * 2021-09-18 2021-12-03 重庆允成互联网科技有限公司 Maintenance response timeliness rate calculation method, device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170160980A1 (en) * 2015-12-07 2017-06-08 Plexistor Ltd. Accelerating concurrent access to a file in a memory-based file system
CN106872821A (en) * 2017-02-04 2017-06-20 同济大学 Household electrical appliances intelligent fault diagnosis method and system based on RFID technique
CN112152888A (en) * 2019-06-28 2020-12-29 广东美的制冷设备有限公司 Information writing method and device for household appliance and equipment
CN112558989A (en) * 2020-12-03 2021-03-26 珠海格力电器股份有限公司 Online memory program burning method, burning system, air conditioner and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170160980A1 (en) * 2015-12-07 2017-06-08 Plexistor Ltd. Accelerating concurrent access to a file in a memory-based file system
CN106872821A (en) * 2017-02-04 2017-06-20 同济大学 Household electrical appliances intelligent fault diagnosis method and system based on RFID technique
CN112152888A (en) * 2019-06-28 2020-12-29 广东美的制冷设备有限公司 Information writing method and device for household appliance and equipment
CN112558989A (en) * 2020-12-03 2021-03-26 珠海格力电器股份有限公司 Online memory program burning method, burning system, air conditioner and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113743628A (en) * 2021-09-18 2021-12-03 重庆允成互联网科技有限公司 Maintenance response timeliness rate calculation method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN103530199B (en) A kind of method, Apparatus and system repairing running software mistake
WO2021135299A1 (en) Binding method and system for device network configuration, and mobile terminal and storage medium
EP3255912A1 (en) Mobile terminal, maintenance server and maintenance method and apparatus for virtual sim card
CN105224362A (en) Host computer carries out the method and system of program upgrade to slave computer
CN103428333B (en) Mobile terminal, server and errors repair method
CN111757355B (en) Equipment networking system and networking method thereof
WO2023143275A1 (en) Data processing method and system
CN109982355B (en) Method for saving and restoring network path, apparatus, terminal and storage medium thereof
CN105721203A (en) Upgrade processing method and device
CN112104477A (en) Online updating method and system for firmware of electric control end and WiFi module
CN109005094B (en) Zigbee intelligent household equipment management method and device based on Internet of things
CN113268255A (en) After-sale program writing method, device and system
CN114221955A (en) Device cross-region access method and device, electronic device and storage medium
CN101196823A (en) Method, system and equipment for on-line software upgrade in open application structure
CN113686001A (en) Air conditioner control method and system based on NFC
CN112134765A (en) WIFI (Wireless Fidelity) back-connection test method and device, test terminal and readable storage medium
CN112083972A (en) BMC system configuration method, device, equipment and readable storage medium
CN106534342B (en) Connect control method, host and system
EP2671156A1 (en) Diagnostic information logging
CN112769607A (en) Unmanned vehicle software upgrading method
CN109743030B (en) Power amplifier debugging system and method
US20080167050A1 (en) Method and system for managing user preferences for one or more software applications runing on a mobile computing device
CN110687910A (en) Equipment control method and device, storage medium and lower computer
CN111130856A (en) Server configuration method, system, equipment and computer readable storage medium
CN114466321B (en) Message sending method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210817

RJ01 Rejection of invention patent application after publication