CN108874651A - The remote debugging method and device of smart machine - Google Patents

The remote debugging method and device of smart machine Download PDF

Info

Publication number
CN108874651A
CN108874651A CN201710320599.0A CN201710320599A CN108874651A CN 108874651 A CN108874651 A CN 108874651A CN 201710320599 A CN201710320599 A CN 201710320599A CN 108874651 A CN108874651 A CN 108874651A
Authority
CN
China
Prior art keywords
smart machine
control command
page
simulation
equipment page
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
CN201710320599.0A
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710320599.0A priority Critical patent/CN108874651A/en
Publication of CN108874651A publication Critical patent/CN108874651A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3648Software debugging using additional hardware
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3644Software debugging by instrumenting at runtime

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the present invention provides the remote debugging method and device of a kind of smart machine, in the case where equipment end development progress is prior to the end app, also the issuing of control command can be carried out to equipment end, uploaded state data show, to improve the exploitation and joint debugging testing progress of equipment end.This method includes:The control command that simulation app equipment page is sent is received, and the control command is forwarded to smart machine;The response for the control command that the smart machine is sent is received, and the response is back to the simulation app equipment page.

Description

The remote debugging method and device of smart machine
Technical field
The present invention relates to field of computer technology more particularly to the remote debugging methods and device of a kind of smart machine.
Background technique
With the development of Internet of Things, smart machine more and more pours in people's lives, in work.Most of intelligence Equipment all supports mobile terminal remote to control.Mobile phone, work is for people's lives, work indispensable tool, becomes intelligence and sets The first choice of standby remote control terminal.
In general, when developing a smart machine that can remotely control, need to develop two parts:First is that intelligence is set It is standby, second is that the app (application program) for remotely controlling the smart machine.During actual development, often there is app exploitation The inconsistent situation with smart machine development progress.For example, not due to app developer and equipment end developer Personal Skills Same factor causes smart machine end to be developed prior to the end app and completes.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery:Equipment end The exploitation of the functions such as equipment control is completed, but in the case that the corresponding end app is completed there is no exploitation, cannot achieve equipment end Joint debugging with the end app is tested.For example, equipment end, which will need the end app to issue a control command or this, to be set in joint debugging test Standby state is shown by the end app.Since completion is not developed at the end app, it is neither able to satisfy and issues control command to setting The demand at standby end, can not meet the demand that the device status data for reporting equipment end is shown, so as to cause equipment end It can not carry out joint debugging test.In the prior art, generally require could be into after waiting the exploitation of the end app to complete by equipment end developer The exploitation and joint debugging of row next step are tested, and exploitation and the joint debugging schedule delay of equipment end are caused.
Summary of the invention
In view of this, the embodiment of the present invention provides the remote debugging method and device of a kind of smart machine, in equipment end In the case that development progress is prior to the end app, the issuing of control command also can be carried out to equipment end, uploaded state data show, To improve the exploitation and joint debugging testing progress of equipment end.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of long-range tune of smart machine is provided Method for testing.
The remote debugging method of the smart machine of the embodiment of the present invention, including:Receive the control that simulation app equipment page is sent Order, and the control command is forwarded to smart machine;Receive that the smart machine sends for the control command Response, and the response is back to the simulation app equipment page.
Optionally, the method also includes:Before the step of receiving the control command that simulation app equipment page is sent, root Corresponding product parameters information is searched according to the product identification that product information page is passed to, and institute is generated according to the product parameters information State the html code of simulation app equipment page;The html code of the simulation app equipment page is back to client browser.
Optionally, the step of control command being forwarded to smart machine include:Smart machine mark is searched from memory Know the corresponding relationship connecting with tcp, obtains tcp connection corresponding with the smart machine mark in the control command, pass through institute It states tcp connection and control command is forwarded to smart machine.
Optionally, the method also includes:Receive the device status inquiries request that the simulation app equipment page is sent;Root The state reporting information that corresponding equipment is obtained from memory is identified according to the smart machine in the inquiry request;It will be in the state Breath of notifying is back to the simulation app equipment page.
To achieve the above object, other side according to an embodiment of the present invention provides a kind of the long-range of smart machine Debugging apparatus.
The remote testing device of the smart machine of the embodiment of the present invention includes:Control command transceiver module, for receiving mould The control command that quasi- app equipment page is sent, and the control command is forwarded to smart machine;Command response transceiver module is used In the response for the control command that the reception smart machine is sent, and the response is back to the simulation app Equipment page.
Optionally, described device further includes:Html code generation module, the product mark for being passed to according to product information page Know and search corresponding product parameters information, and generates the html code of simulation app equipment page according to the product parameters information; Html code sending module, for the html code of the simulation app equipment page to be back to client browser.
Optionally, the control command is forwarded to smart machine by the control command transceiver module, including:From memory It searches smart machine and identifies the corresponding relationship connecting with tcp, obtain corresponding with the smart machine mark in the control command Control command is forwarded to smart machine by the tcp connection by tcp connection.
Optionally, described device further includes:Inquiry request receiving module is sent for receiving the simulation app equipment page Device status inquiries request;State information acquisition module, for being identified according to the smart machine in the inquiry request from interior Deposit the middle state reporting information for obtaining corresponding equipment;Status information sending module, for the state reporting information to be back to The simulation app equipment page.
To achieve the above object, another aspect according to an embodiment of the present invention, provides a kind of electronic equipment.
The electronic equipment of the embodiment of the present invention, including:One or more processors;And memory, for storing one Or multiple programs;When one or more of programs are executed by one or more of processors, so that one or more of Processor realizes the remote debugging method of the smart machine of the embodiment of the present invention.
To achieve the above object, another aspect according to an embodiment of the present invention provides a kind of computer-readable medium.
The computer-readable medium of the embodiment of the present invention, is stored thereon with computer program, and described program is held by processor The remote debugging method of the smart machine of the embodiment of the present invention is realized when row.
One embodiment in foregoing invention has the following advantages that or beneficial effect:App equipment page is simulated by exploitation, and True app is simulated based on simulation app equipment page and issues control command to cloud, is then forwarded the control command by cloud To smart machine, then the response of smart machine is received by cloud, and the response is back to simulation app equipment page, so as to It is enough that remote joint debugging test is carried out to smart machine in the case where true app untapped completion, improve equipment end exploitation and Joint debugging testing progress.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is a kind of key step schematic diagram of the remote debugging method of smart machine according to an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of the remote debugging method of smart machine according to an embodiment of the present invention;
Fig. 3 is the key step schematic diagram of the remote debugging method of another smart machine according to an embodiment of the present invention;
Fig. 4 is a kind of main modular schematic diagram of the remote testing device of smart machine according to an embodiment of the present invention;
Fig. 5 is the main modular schematic diagram of the remote testing device of another smart machine according to an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of the computer system of the electronic equipment for realizing the embodiment of the present invention.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
The embodiment of the present invention is simulated under true app by exploitation simulation app equipment page, and based on simulation app equipment page Send out control command, the true app of simulation receives the response of control command, so as to the true app untapped completion the case where Under, so that it may remote joint debugging test is carried out to smart machine, improves the exploitation and joint debugging testing progress of equipment end.
The remote debugging method of the smart machine of the embodiment of the present invention relates generally to three participants:Client browser, Cloud, smart machine.When it is implemented, client browser includes but is not limited to be set to smart phone, tablet computer, above-knee Browser on type portable computer or desktop computer.Fig. 1 is a kind of the long-range of smart machine according to an embodiment of the present invention The key step schematic diagram of adjustment method.Fig. 1 is mainly to be described from cloud side.As shown in Figure 1, the smart machine Remote debugging method mainly includes the following steps that:
Step S101, the control command that simulation app equipment page is sent is received, and the control command is forwarded to intelligence and is set It is standby.Further, before step S101, exploitation simulation app equipment page is also needed.It, can after simulation app equipment page exploitation is completed Control command is issued to smart machine based on simulation app equipment page, cloud.When it is implemented, for different products, control Parameter and parameter value in system order may be different.For example, socket, which has, switchs this parameter, value is on or off. Control command for the socket can be " turning on the switch ", or " turning off the switch ".For example, air-conditioning has wind speed, temperature The two parameters, wind speed value are " one grade ", " two grades " and " third gear ", and the value of temperature is 18 DEG C, 19 DEG C, 20 DEG C, 21 DEG C, 22 DEG C, 23 DEG C and other set temperature values.Control command for the air-conditioning can be " wind speed to be set as one grade, temperature is set It is 20 DEG C ", or " wind speed being set as third gear, temperature is set as 22 DEG C ".
Step S102, the response for the control command that the smart machine is sent is received, and the response is returned It is back to the simulation app equipment page.When it is implemented, cloud is after receiving for the response of the control command, it can be straight It connects and the response is back to the simulation app equipment page.Alternatively, cloud can also deposit the response in memory, and connecing When receiving the control response inquiry request that simulation app equipment page is sent, then the response is back to the simulation app equipment Page.
Fig. 2 is a kind of flow diagram of the remote debugging method of smart machine according to an embodiment of the present invention.Fig. 2 be from Client browser, cloud, three end of smart machine are described.As shown in Fig. 2, the process of the remote debugging method is as follows:
Step S201, product identification is passed to cloud by product information page.When it is implemented, tester can be clear in client A product is selected in the product information page that device of looking at is presented, later, the mark for the product that product information page selects tester Incoming cloud.
Step S202, corresponding product parameters information is searched according to incoming product identification in cloud, and according to the product Parameter information generates the html code of the simulation app equipment page.For example, product identification is Haier's air-conditioning, then cloud can be from pre- The product parameters information of Haier's air-conditioning is found out in the parameter information of a plurality of products of first typing, and generates corresponding simulation app The html code of equipment page.
Step S203, html (hypertext markup language) code of the simulation app equipment page is back to client by cloud Hold browser.After receiving html code, client browser can simulate app equipment page based on the html code building.
Step S204, simulation app equipment page sends control command.When it is implemented, tester can be in Client browse Input control order in the simulation app equipment page that device is presented, later, simulation app equipment page can be asked the control command with http The mode asked is sent to cloud.Wherein, which includes:Smart machine mark, control parameter, parameter value.For example, one The code of a control command is as follows:
{
device_id:123980876526378976
streams:[
{
streamName:”switch”,
streamValue:1
]
}
Wherein, " device_id:123980876526378976 " expression smart machines are identified as " 123980876526378976 ", " streams:" switch ", " indicate that control parameter is " switch ", " streamValue:1" Expression parameter value is " 1 ", that is, indicates to turn on the switch.
Step S205, the corresponding pass that smart machine mark is connected with tcp (transmission control protocol) is searched in cloud from memory System obtains tcp connection corresponding with the smart machine mark in the control command.When it is implemented, smart machine for the first time It is established after tcp connect with cloud, the corresponding relationship that the mark of smart machine is connected with tcp can be stored in memory by cloud. So, after receiving the control command for the smart machine beyond the clouds, can quickly be searched from memory cloud with Tcp connection between the smart machine.
Step S206, control command is forwarded to smart machine by the tcp connection by cloud.Later, smart machine connects The control command is received, and corresponding movement is executed according to the control command.For example, intelligent air condition is receiving " by wind speed Be set as one grade, temperature be set as 20 DEG C " this control command when, wind speed is set as one grade, temperature is set as 20 DEG C.
Step S207, smart machine will be sent to cloud for the response of the control command.Wherein, the control command Response can be the information to run succeeded or execute failure information.
Step S208, cloud will be back to simulation app equipment page for the response of the control command.
In embodiments of the present invention, app equipment page is simulated by exploitation, and true based on simulation app equipment page simulation App issues control command and the control command is then forwarded to smart machine by cloud to cloud, then receives intelligence by cloud The response of equipment, and the response is back to simulation app equipment page, so as to the true app untapped completion the case where Under, remote joint debugging test is carried out to smart machine, improves the exploitation and joint debugging testing progress of equipment end.
Fig. 3 is the key step schematic diagram of the remote debugging method of another smart machine according to an embodiment of the present invention. Fig. 3 is mainly to be described from cloud side.As shown in figure 3, the remote debugging method of the smart machine mainly includes following Step:
Step S301, the control command that simulation app equipment page is sent is received, and the control command is forwarded to intelligence and is set It is standby.
Step S302, the response for the control command that the smart machine is sent is received, and the response is returned It is back to the simulation app equipment page.
Step S303, the device status inquiries request that the simulation app equipment page is sent is received.
Step S304, according to the smart machine mark in the inquiry request from the state for obtaining corresponding equipment in memory It notifies breath.
Step S305, the state reporting information is back to the simulation app equipment page.
In embodiments of the present invention, app equipment page is simulated by exploitation, and true based on simulation app equipment page simulation App issues control command and shows the status information of smart machine, can be in the case where true app untapped completion, to intelligence Energy equipment carries out remote joint debugging test, and then improves the exploitation and joint debugging testing progress of equipment end.
On the other hand, the embodiment of the invention also provides a kind of remote testing devices of smart machine.The smart machine Remote testing device is arranged beyond the clouds.Fig. 4 is a kind of master of the remote testing device of smart machine according to an embodiment of the present invention Want module diagram.As shown in figure 4, remote testing device 400 mainly comprises the following modules:
Control command transceiver module 401, the control command sent for receiving simulation app equipment page, and by the control Order is forwarded to smart machine.Further, the control command is forwarded to smart machine by control command transceiver module 401, packet It includes:Smart machine is searched from memory and identifies the corresponding relationship connecting with tcp, is obtained and the smart machine in the control command Corresponding tcp connection is identified, control command is forwarded to by smart machine by the tcp connection.
Command response transceiver module 402, the response for the control command sent for receiving the smart machine, And the response is back to the simulation app equipment page.When it is implemented, command response transceiver module 402 is receiving pair After the response of the control command, the response directly can be back to the simulation app equipment page.Alternatively, order is answered Answering transceiver module 402 can also deposit the response in memory, and look into receiving the control response that simulation app equipment page is sent When asking request, then the response is back to the simulation app equipment page.
Further, remote testing device 400 further includes:Html code generation module, html code sending module.
Html code generation module, the product identification for being passed to according to product information page are searched corresponding product parameters and are believed Breath, and the html code for simulating app equipment page is generated according to the product parameters information.For example, tester is in product information Page has selected Haier's air-conditioning, then product identification " Haier's air-conditioning " is passed to remote testing device 400 by product information page.Later, Html code generation module can find out the product parameters letter of Haier's air-conditioning from the parameter information of a plurality of products of preparatory typing Breath, and generate the html code of corresponding simulation app equipment page.
Html code sending module, for the html code of the simulation app equipment page to be back to client browser. Later, client browser can simulate app equipment page according to the html code building received.
In embodiments of the present invention, by constructing remote testing device, simulation app equipment page can be generated.Also, pass through Simulation app equipment page simulates true app and issues control command, is forwarded the control command by control command transceiver module Simulation app equipment page will be forwarded to for the response of control command to smart machine, and by command response transceiver module, thus Remote joint debugging test can be carried out to smart machine in the case where true app untapped completion, improve the exploitation of equipment end With joint debugging testing progress.
Fig. 5 is the main modular schematic diagram of the remote testing device of another smart machine according to an embodiment of the present invention. As shown in figure 5, remote testing device 500 mainly comprises the following modules:
Control command transceiver module 501, the control command sent for receiving simulation app equipment page, and by the control Order is forwarded to smart machine.
Command response transceiver module 502, the response for the control command sent for receiving the smart machine, And the response is back to the simulation app equipment page.
Inquiry request receiving module 503, the device status inquiries request sent for receiving the simulation app equipment page.
State information acquisition module 504 is obtained from memory for being identified according to the smart machine in the inquiry request The state reporting information of corresponding equipment.
Status information sending module 505, for the state reporting information to be back to the simulation app equipment page.
Further, remote testing device 500 further includes:Html code generation module, html code sending module.Wherein, The corresponding product parameters information of product identification lookup that html code generation module is used to be passed to according to product information page, and according to The product parameters information generates the html code of simulation app equipment page.Html code sending module is used for the simulation The html code of app equipment page is back to client browser.Later, client browser can be according to the html received Code building simulates app equipment page.
In embodiments of the present invention, by constructing remote testing device, simulation app equipment page can be generated.Also, pass through Simulation app equipment page simulates true app and issues control command and show the status information of smart machine, can be in true app In the case where untapped completion, remote joint debugging test is carried out to smart machine, and then improves the exploitation and joint debugging survey of equipment end Examination progress.
In another aspect, the embodiment of the invention also provides a kind of electronic equipment.The electronic equipment of the embodiment of the present invention includes: One or more processors;And memory, for storing one or more programs;When one or more of programs are by institute One or more processors execution is stated, so that one or more of processors realize the remote of the smart machine of the embodiment of the present invention Journey adjustment method.
Fig. 6 is the structural schematic diagram of the computer system of the electronic equipment for realizing the embodiment of the present invention.Shown in Fig. 6 Electronic equipment is only an example, should not function to the embodiment of the present application and use scope bring any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data. CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always Line 604.
Further, computer system 600 further include be connected to I/O interface 605 with lower component:
Importation 606 including keyboard, mouse etc.;Including such as cathode-ray tube (CRT), liquid crystal display (LCD) And the output par, c 607 of loudspeaker etc.;Storage section 608 including hard disk etc.;And including such as LAN card, modulation /demodulation The communications portion 609 of the network interface cards such as device.Communications portion 609 executes communication process via the network of such as internet.Driving Device 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as disk, CD, magneto-optic disk, semiconductor storage Device etc. is mounted on as needed on driver 610, in order to be mounted into as needed from the computer program read thereon Storage section 608.
Further, according to embodiments of the present invention, above the process of the remote debugging method description of smart machine can be by It is embodied as computer software programs.For example, the embodiment of the present invention includes a kind of computer program products comprising be carried on calculating Computer program on machine readable medium, the computer program include for executing the long-range of the smart machine of the embodiment of the present invention The program code of adjustment method.In such embodiments, the computer program can by communications portion 609 from network quilt Downloading and installation, and/or be mounted from detachable media 611.It is held in the computer program by central processing unit (CPU) 601 When row, the above-mentioned function that the computer system in the embodiment of the present invention limits is executed.
It should be noted that in embodiments of the present invention, the computer-readable medium can be computer-readable signal Medium or computer readable storage medium either the two any combination.Computer readable storage medium for example can be with It is but not limited to system, device or the device of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or any above combination. The more specific example of computer readable storage medium can include but is not limited to:Electrical connection with one or more conducting wires, Portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only deposit Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory Part or above-mentioned any appropriate combination.In embodiments of the present invention, computer readable storage medium, which can be, any includes Or the tangible medium of storage program, which can be commanded execution system, device or device use or in connection make With.And in the present invention is implemented, computer-readable signal media may include passing in a base band or as carrier wave a part The data-signal broadcast, wherein carrying computer-readable program code.The data-signal of the propagation can use a variety of shapes Formula, including but not limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media may be used also To be any computer-readable medium other than computer readable storage medium, which can send, propagate Either transmission is for by the use of instruction execution system, device or device or program in connection.It is computer-readable The program code for including on medium can transmit with any suitable medium, including but not limited to:Wirelessly, electric wire, optical cable, RF etc. Deng or above-mentioned any appropriate combination.
Flow chart and block diagram shown in the drawings illustrate the system of various embodiments, device and computer according to the present invention The architecture, function and operation in the cards of program product.In this regard, each box in flowchart or block diagram can be with A part of a module, program segment or code is represented, a part of above-mentioned module, program segment or code includes one or more A executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, in box The function of being marked can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are real It can be basically executed in parallel on border, they can also be executed in the opposite order sometimes, this is depending on related function. It is also noted that the combination of each box and box in block diagram or flow chart, it can the function as defined in executing or behaviour The dedicated hardware based system made is realized, can also be realized using a combination of dedicated hardware and computer instructions.
Involved module can be realized by way of software in the embodiment of the present invention, can also pass through the side of hardware Formula is realized.Described module also can be set in the processor, for example, can be described as:A kind of processor includes control Order transceiver module, command response transceiver module.Wherein, the title of these modules is not constituted under certain conditions to the module The restriction of itself, for example, control command transceiver module is also described as " receiving control command from client browser, inciting somebody to action Control command is sent to the module of smart machine ".
Another aspect, the embodiment of the invention also provides a kind of computer-readable medium, which can be with It is included in electronic equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.On It states computer-readable medium and carries one or more program, when said one or multiple programs are by the electronic equipment When execution, the long-range control method of the smart machine of above-described embodiment is realized:Receive the control life that simulation app equipment page is sent It enables, and the control command is forwarded to smart machine;Receive the answering for the control command that the smart machine is sent It answers, and the response is back to the simulation app equipment page.
Method provided by the embodiment of the present invention can be performed in the said goods, has the corresponding functional module of execution method and has Beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to method provided by the embodiment of the present invention.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (10)

1. a kind of remote debugging method of smart machine, which is characterized in that including:
The control command that simulation app equipment page is sent is received, and the control command is forwarded to smart machine;
The response for the control command that the smart machine is sent is received, and the response is back to the simulation App equipment page.
2. the method according to claim 1, wherein the method also includes:
Before the step of receiving the control command that simulation app equipment page is sent,
Corresponding product parameters information is searched according to the product identification that product information page is passed to, and according to the product parameters information Generate the html code of the simulation app equipment page;
The html code of the simulation app equipment page is back to client browser.
3. method according to claim 1 or 2, which is characterized in that the control command is forwarded to the step of smart machine Suddenly include:
Smart machine is searched from memory and identifies the corresponding relationship connecting with tcp, and acquisition is set with the intelligence in the control command It is standby to identify corresponding tcp connection, control command is forwarded to by smart machine by the tcp connection.
4. the method according to claim 1, wherein the method also includes:
Receive the device status inquiries request that the simulation app equipment page is sent;
The state reporting information that corresponding equipment is obtained from memory is identified according to the smart machine in the inquiry request;
The state reporting information is back to the simulation app equipment page.
5. a kind of remote testing device of smart machine, which is characterized in that including:
Control command transceiver module, the control command sent for receiving simulation app equipment page, and the control command is forwarded To smart machine;
Command response transceiver module, the response for the control command sent for receiving the smart machine, and by institute It states response and is back to the simulation app equipment page.
6. device according to claim 5, which is characterized in that described device further includes:
Html code generation module, the product identification for being passed to according to product information page search corresponding product parameters information, And the html code of simulation app equipment page is generated according to the product parameters information;
Html code sending module, for the html code of the simulation app equipment page to be back to client browser.
7. device according to claim 5 or 6, which is characterized in that the control command transceiver module orders the control Order is forwarded to smart machine, including:
Smart machine is searched from memory and identifies the corresponding relationship connecting with tcp, and acquisition is set with the intelligence in the control command It is standby to identify corresponding tcp connection, control command is forwarded to by smart machine by the tcp connection.
8. the apparatus according to claim 1, which is characterized in that described device further includes:
Inquiry request receiving module, the device status inquiries request sent for receiving the simulation app equipment page;
State information acquisition module obtains corresponding equipment for identifying according to the smart machine in the inquiry request from memory State reporting information;
Status information sending module, for the state reporting information to be back to the simulation app equipment page.
9. a kind of electronic equipment, which is characterized in that including:
One or more processors;And
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in Claims 1-4 is any.
10. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor The method as described in any in Claims 1-4 is realized when row.
CN201710320599.0A 2017-05-09 2017-05-09 The remote debugging method and device of smart machine Pending CN108874651A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710320599.0A CN108874651A (en) 2017-05-09 2017-05-09 The remote debugging method and device of smart machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710320599.0A CN108874651A (en) 2017-05-09 2017-05-09 The remote debugging method and device of smart machine

Publications (1)

Publication Number Publication Date
CN108874651A true CN108874651A (en) 2018-11-23

Family

ID=64287174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710320599.0A Pending CN108874651A (en) 2017-05-09 2017-05-09 The remote debugging method and device of smart machine

Country Status (1)

Country Link
CN (1) CN108874651A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344087A (en) * 2018-12-03 2019-02-15 珠海格力电器股份有限公司 Multi-terminal synchronous debugging method and system of equipment, storage medium and processor
CN111858373A (en) * 2020-07-28 2020-10-30 杭州妙联物联网技术有限公司 Internet of things application testing method based on dynamic simulation control panel serial port protocol
CN113742156A (en) * 2021-08-23 2021-12-03 珠海格力电器股份有限公司 Joint debugging method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316196A (en) * 2007-05-28 2008-12-03 华为技术有限公司 Method and apparatus for implementing simulation test of service on distributed platform
US20100023812A1 (en) * 2008-07-25 2010-01-28 Moyer William C Debug trace messaging with one or more characteristic indicators
CN102571840A (en) * 2010-12-16 2012-07-11 卓望数码技术(深圳)有限公司 Remote terminal test method, system and proxy server
CN106154852A (en) * 2015-04-24 2016-11-23 Tcl集团股份有限公司 Intelligent appliance equipment and control method thereof and intelligent appliance control system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316196A (en) * 2007-05-28 2008-12-03 华为技术有限公司 Method and apparatus for implementing simulation test of service on distributed platform
US20100023812A1 (en) * 2008-07-25 2010-01-28 Moyer William C Debug trace messaging with one or more characteristic indicators
CN102571840A (en) * 2010-12-16 2012-07-11 卓望数码技术(深圳)有限公司 Remote terminal test method, system and proxy server
CN106154852A (en) * 2015-04-24 2016-11-23 Tcl集团股份有限公司 Intelligent appliance equipment and control method thereof and intelligent appliance control system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344087A (en) * 2018-12-03 2019-02-15 珠海格力电器股份有限公司 Multi-terminal synchronous debugging method and system of equipment, storage medium and processor
CN111858373A (en) * 2020-07-28 2020-10-30 杭州妙联物联网技术有限公司 Internet of things application testing method based on dynamic simulation control panel serial port protocol
CN113742156A (en) * 2021-08-23 2021-12-03 珠海格力电器股份有限公司 Joint debugging method and device, electronic equipment and storage medium
CN113742156B (en) * 2021-08-23 2024-06-07 珠海格力电器股份有限公司 Joint debugging method, joint debugging device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108062246B (en) Resource regulating method and device for deep learning frame
CN110532092A (en) Reso urce matching method, device and equipment
CN108683539A (en) Management method, device, medium and the electronic equipment of block chain network
CN109408205A (en) Method for scheduling task and device based on hadoop cluster
CN109992282A (en) Inverter method for upgrading software and system, electronic equipment
EP4141786A1 (en) Defect detection method and apparatus, model training method and apparatus, and electronic device
CN108874651A (en) The remote debugging method and device of smart machine
CN103152392A (en) Providing method, acquisition method, equipment and system of installation package
CN115167182B (en) Automatic driving simulation test method, device, equipment and computer readable medium
CN112910691A (en) Machine room fault detection method and device
CN108345449A (en) A kind of information processing method, device, storage medium and computer equipment
CN107329834A (en) Method and apparatus for performing calculating task
CN110502261A (en) The method and apparatus of program is controlled in a kind of update user equipment
CN110493341A (en) Method and device for controlling devices
CN202799005U (en) Cloud computing based internet monitoring system of set top box and set top box
CN108733399A (en) The method and apparatus that dynamic updates configuration data
CN110022323A (en) A kind of method and system of the cross-terminal real-time, interactive based on WebSocket and Redux
US20140267745A1 (en) Surveillance System With Intelligently Interchangeable Cameras
CN111123728A (en) Unmanned vehicle simulation method, device, equipment and computer readable medium
CN115022328B (en) Server cluster, testing method and device of server cluster and electronic equipment
CN109471787A (en) Method for evaluating software quality and device, storage medium, electronic equipment
CN113378346A (en) Method and device for model simulation
CN105357243B (en) A kind of method and apparatus with internet of things equipment remote interaction
CN115756544A (en) Equipment updating method and device, electronic equipment and storage medium
CN202799017U (en) Intelligent television control system and intelligent television testing system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181123