CN112601211B - Intelligent household appliance control equipment, mobile terminal and testing method - Google Patents

Intelligent household appliance control equipment, mobile terminal and testing method Download PDF

Info

Publication number
CN112601211B
CN112601211B CN202011539124.9A CN202011539124A CN112601211B CN 112601211 B CN112601211 B CN 112601211B CN 202011539124 A CN202011539124 A CN 202011539124A CN 112601211 B CN112601211 B CN 112601211B
Authority
CN
China
Prior art keywords
appliance control
cloud server
mobile terminal
household appliance
intelligent household
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011539124.9A
Other languages
Chinese (zh)
Other versions
CN112601211A (en
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.)
Hisense Mobile Communications Technology Co Ltd
Hisense Group Holding Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Qingdao Hisense Electronic Industry Holdings 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 Hisense Mobile Communications Technology Co Ltd, Qingdao Hisense Electronic Industry Holdings Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN202011539124.9A priority Critical patent/CN112601211B/en
Publication of CN112601211A publication Critical patent/CN112601211A/en
Application granted granted Critical
Publication of CN112601211B publication Critical patent/CN112601211B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/06Testing, supervising or monitoring using simulated traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L2012/284Home automation networks characterised by the type of medium used
    • H04L2012/2841Wireless
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application provides an intelligent household appliance control device, a mobile terminal and a testing method, which are used for simulating a testing environment cloud server in the mobile terminal, solving the problem that testing means are deficient when testing is carried out on the intelligent household appliance control device, and improving testing efficiency and operation convenience. In this application embodiment, intelligent household electrical appliance control equipment includes: the first Wi-Fi module is used for transmitting the received data to the first processor through a wireless network and transmitting the data required to be transmitted by the first processor through the wireless network; the first processor is used for establishing a TCP connection channel with the mobile terminal after monitoring a transmission control protocol TCP connection request sent by the mobile terminal in the same local area network through a specific port; the access information of the testing environment cloud server in the mobile terminal, which is sent by the mobile terminal, is received through the TCP connection channel, the testing environment cloud server is accessed according to the access information, and testing is carried out through the testing environment cloud server.

Description

Intelligent household appliance control equipment, mobile terminal and testing method
Technical Field
The application relates to the technical field of communication, in particular to an intelligent household appliance control device, a mobile terminal and a testing method in the field of Internet of things intelligent home.
Background
With the continuous development of mobile interconnection and cloud computing, the development of smart homes is also rapidly heated. Each manufacturer releases the Internet of things platform at a dispute, and releases the intelligent home platform and the intelligent home equipment, so that the intelligent home field can be comprehensively entered.
At present, in the field of smart home, a function of intelligently controlling household appliances by a mobile terminal is mainly realized through a Wireless Fidelity (Wi-Fi) module product of the internet of things.
With the development of the business of the module of the internet of things, the Wi-Fi module product is taken as a main component of the business of the module of the internet of things, and the quality of the Wi-Fi module product is more and more emphasized. Therefore, testing of Wi-Fi module products has become an important problem, and testing of Wi-Fi module products can only be completed through a real network by applying an actual cloud server and an Application Package (APK), but due to condition limitation, a situation that a router or a network is unstable often occurs, and testing efficiency is low.
Disclosure of Invention
The application provides an intelligent household appliance control device, a mobile terminal and a testing method, which are used for improving the testing efficiency and the operation convenience of the intelligent household appliance control device.
In a first aspect, an embodiment of the present application provides an intelligent household appliance control device, where the device includes: a first Wi-Fi module and a first processor, wherein:
the first Wi-Fi module is used for transmitting the received data to the first processor through a wireless network and transmitting the data required to be transmitted by the first processor through the wireless network;
the first processor is used for receiving a Transmission Control Protocol (TCP) connection request transmitted by a first Wi-Fi module and sent to a mobile terminal located in the same local area network through a specific port, and then establishing a TCP connection channel with the mobile terminal; and receiving access information of a testing environment cloud server in the mobile terminal, which is sent by the mobile terminal, through the TCP connection channel, and accessing the testing environment cloud server according to the access information so as to test through the testing environment cloud server.
In the embodiment of the application, the intelligent household appliance control device comprises a first Wi-Fi module and a first processor. The first Wi-Fi module monitors a specific port, transmits a TCP connection request to the first processor after monitoring the TCP connection request sent by a mobile terminal which is located in the same local area network with the intelligent household appliance control device, the first processor establishes a TCP connection channel with the mobile terminal according to the TCP connection request, receives access information of a testing environment cloud server located in the mobile terminal and sent by the mobile terminal through the TCP connection channel, and then accesses the testing environment cloud server according to the access information to test through the testing environment cloud server. In the embodiment of the application, when testing intelligent household electrical appliance control equipment through the testing environment cloud server, the testing environment cloud server can be simulated in the mobile terminal, a real network environment does not need to be built as the testing environment, the operation is convenient, and when testing tools such as the mobile terminal are used, the testing instructions can be sent through the TCP connecting channel, corresponding testing data can be received, the condition that a router or a network is unstable is avoided, and the testing efficiency is improved.
In a possible implementation manner, the access information includes a test cloud IP address, and the first processor is specifically configured to:
accessing to a testing environment cloud server in the mobile terminal according to the testing cloud IP address and a pre-agreed first testing cloud port number;
the access information comprises a test cloud IP address and a second test cloud port number, and the first processor is specifically used for:
and accessing to a test environment cloud server in the mobile terminal according to the test cloud IP address and the second test cloud port number.
In the embodiment of the application, the testing environment cloud server located in the mobile terminal is accessed according to the testing cloud IP address and the cloud port number, the cloud port number can be predetermined by the mobile terminal and the intelligent household appliance control device, and can also be preset in the mobile terminal and sent to the intelligent household appliance control device by the mobile terminal, and at the moment, the intelligent household appliance control device can be ensured to be connected to the simulated testing environment cloud server in the mobile terminal according to the testing cloud IP address and the cloud port number.
In one possible implementation, the intelligent appliance control device further includes a memory, wherein:
the memory is used for storing the distribution network information of the wireless router;
before listening to a TCP connection request sent by a mobile terminal located in the same local area network through a specific port, the first processor is further configured to:
if the wireless router is successfully accessed according to the distribution network information in the memory, TCP monitoring is carried out through a specific port of the wireless router; or alternatively
And if the distribution network information of the wireless router is not stored in the memory, starting the hot spot and carrying out TCP monitoring through a specific port.
In the embodiment of the application, before the intelligent household appliance control equipment monitors the TCP connection request sent by the mobile terminal in the same local area network through the specific port, whether the wireless router can be successfully accessed according to the distribution network information is determined, and if the wireless router can be successfully accessed, the TCP monitoring is carried out through the specific port of the wireless router; or if the wireless router cannot be accessed, the intelligent household appliance control equipment starts a hot spot and carries out TCP monitoring through a specific port; therefore, the intelligent household appliance control equipment can carry out TCP monitoring through the specific port no matter whether the intelligent household appliance control equipment is successfully accessed into the wireless router or not, and can be ensured to be smoothly accessed into the testing environment cloud server in the mobile terminal through the instruction obtained through the TCP connection channel after the TCP connection channel is established with the mobile terminal in the same local area network so as to carry out testing in the testing environment cloud server.
In a possible implementation manner, the first processor accesses the cloud server of the test environment according to the access information, and is specifically configured to:
if the current cloud server is connected with the formal environment cloud server, the testing environment cloud server is accessed according to the access information after the formal environment cloud server is disconnected;
after the first processor accesses the cloud server of the test environment, the first processor is further configured to:
if the preset condition is met, switching from the testing environment cloud server to a formal environment cloud server;
wherein the preset conditions include some or all of the following: and restarting and receiving an instruction which is sent by the mobile terminal and is accessed to the cloud server in the formal environment.
In the embodiment of the application, when the intelligent household appliance control equipment is connected to the testing environment cloud server according to the access information, if the intelligent household appliance control equipment is connected to the formal environment cloud server at present, the intelligent household appliance control equipment needs to be disconnected from the formal environment cloud server at first, then the intelligent household appliance control equipment is connected to the testing environment cloud server, and switching between the formal environment and the testing environment is completed; and when the preset conditions are met, the cloud server is switched to the formal environment cloud server from the testing environment cloud server, so that the operation is convenient and fast.
In a second aspect, an embodiment of the present application provides a mobile terminal, including: a second Wi-Fi module and a second processor, wherein:
the second Wi-Fi module is used for sending data to the intelligent household appliance control equipment through a wireless network and receiving the data sent by the intelligent household appliance control equipment;
the second processor is used for sending a TCP connection request to the intelligent household appliance control equipment in the same local area network based on the second Wi-Fi module and establishing a TCP connection channel with the intelligent household appliance control equipment; and sending access information of the testing environment cloud server positioned in the mobile terminal to the intelligent household appliance control equipment through the TCP connection channel, so that the intelligent household appliance control equipment is accessed into the testing environment cloud server according to the access information and is tested through the testing environment cloud server.
In the embodiment of the application, the mobile terminal comprises a second Wi-Fi module and a second processor. The second processor sends a TCP connection request to the intelligent household appliance control equipment in the same local area network based on the second Wi-Fi module so as to establish a TCP connection channel, and then sends access information of the testing environment cloud server in the mobile terminal to the intelligent household appliance control equipment through the TCP connection channel, so that the intelligent household appliance control equipment is accessed into the testing environment cloud server according to the access information and is tested through the testing environment cloud server. A testing environment cloud server is simulated in the mobile terminal, the intelligent household appliance control equipment can be accessed to the testing environment cloud server in the mobile terminal after receiving the access information, a real network environment does not need to be built to serve as a testing environment, the operation is convenient and fast, the mobile terminal can send a testing instruction through a TCP connecting channel and receive corresponding testing data, the condition that a router or a network is unstable is avoided, and the testing efficiency is improved.
In a possible implementation manner, the access information includes a test cloud IP address, and before the second processor sends a TCP connection request to the intelligent appliance control device in the same local area network, the second processor is further configured to:
if the mobile terminal is accessed to the wireless router, acquiring a test cloud IP address from the wireless router; or alternatively
And if the mobile terminal is accessed to a hot spot started by the intelligent household appliance control equipment, acquiring the test cloud IP address from the intelligent household appliance control equipment.
In the embodiment of the application, before sending a TCP connection request to an intelligent household appliance control device in the same local area network, the mobile terminal needs to be located in the same local area network as the intelligent household appliance control device, at this time, the mobile terminal can be accessed to a wireless router connected to the intelligent household appliance control device and also can be accessed to a hot spot started by the intelligent household appliance control device, and after being accessed to the wireless router or the hot spot started by the intelligent household appliance control device, the mobile terminal obtains a corresponding IP address and uses the IP address as a test cloud IP address, and then sends access information including the test cloud IP address to the intelligent household appliance control device, so that the intelligent household appliance control device can be smoothly accessed to a simulated test environment cloud server in the mobile terminal according to the test cloud IP address.
In a possible implementation manner, after the second processor sends the access information of the test environment cloud server located in the mobile terminal to the intelligent appliance control device, the second processor is further configured to:
after the intelligent household appliance control equipment is tested, an instruction for accessing the formal environment cloud server is sent to the intelligent household appliance control equipment through the TCP connecting channel, so that the intelligent household appliance control equipment is switched from the testing environment cloud server to the formal environment cloud server.
In the embodiment of the application, the mobile terminal device can send an instruction for accessing the formal environment cloud server to the intelligent household appliance control device through the TCP connection channel, so that the intelligent household appliance control device is switched from the testing environment cloud server to the formal environment cloud server, and the operation is convenient and fast.
In a third aspect, an embodiment of the present application provides a method for testing an intelligent household appliance control device, where the method is applied to the intelligent household appliance control device, and includes:
after a TCP connection request sent by a mobile terminal in the same local area network is monitored through a specific port, a TCP connection channel is established with the mobile terminal;
receiving access information of a test environment cloud server in the mobile terminal, which is sent by the mobile terminal, through a TCP connection channel;
and accessing the test environment cloud server according to the access information, and testing through the test environment cloud server.
In a fourth aspect, an embodiment of the present application provides a method for testing an intelligent household appliance control device, which is applied to a mobile terminal, and the method includes:
sending a TCP connection request to intelligent household appliance control equipment in the same local area network, and establishing a TCP connection channel with the intelligent household appliance control equipment;
and sending access information of the testing environment cloud server positioned in the mobile terminal to the intelligent household appliance control equipment through the TCP connection channel, so that the intelligent household appliance control equipment is accessed into the testing environment cloud server according to the access information and is tested through the testing environment cloud server.
In a fifth aspect, an embodiment of the present application provides a testing apparatus for an intelligent household appliance control device, where the apparatus includes:
the monitoring unit is used for monitoring a TCP connection request sent by the mobile terminal in the same local area network through a specific port and then establishing a TCP connection channel with the mobile terminal;
the receiving unit is used for receiving access information of a test environment cloud server in the mobile terminal, which is sent by the mobile terminal through a TCP connection channel;
and the access unit is used for accessing the testing environment cloud server according to the access information and testing through the testing environment cloud server.
In a sixth aspect, an embodiment of the present application provides a testing apparatus for an intelligent household appliance control device, where the apparatus includes:
the first sending unit is used for sending a TCP connection request to the intelligent household appliance control equipment in the same local area network and establishing a TCP connection channel with the intelligent household appliance control equipment;
and the second sending unit is used for sending the access information of the testing environment cloud server in the mobile terminal to the intelligent household appliance control equipment through the TCP connecting channel so that the intelligent household appliance control equipment is accessed to the testing environment cloud server according to the access information and is tested through the testing environment cloud server.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed by a processor, the method for testing an intelligent household appliance control device provided in the embodiment of the present application is implemented.
Additional features and advantages of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the present application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of an intelligent household appliance control device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an intelligent household appliance according to an embodiment of the present application;
fig. 4 is a schematic view of another application scenario provided in the embodiment of the present application;
fig. 5 is an overall flowchart of a testing method for an intelligent household appliance control device according to an embodiment of the present application;
fig. 6 is a schematic diagram of a test of an intelligent household appliance control device in a production line mode according to an embodiment of the present application;
fig. 7 is a schematic test diagram of an intelligent household appliance control device in a test mode according to an embodiment of the present application;
fig. 8 is a flowchart of a testing method for an intelligent household appliance control device according to an embodiment of the present application;
fig. 9 is a flowchart of another testing method for an intelligent household appliance control device according to an embodiment of the present application;
fig. 10 is a structural diagram of a testing apparatus of an intelligent household electrical appliance control device according to an embodiment of the present application;
fig. 11 is a structural diagram of a testing apparatus of an intelligent household appliance control device according to an embodiment of the present application.
Detailed Description
The architecture and the service scenario described in the embodiment of the present application are for more clearly illustrating the technical solution of the embodiment of the present application, and do not form a limitation on the technical solution provided in the embodiment of the present application, and it can be known by a person skilled in the art that with the occurrence of a new service scenario, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
Some terms in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art:
in the following description, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance, nor order.
In the embodiment of the present application, the term "or" describes an association relationship of associated objects, and indicates that two relationships may exist, for example, a or B may indicate: a alone and B alone.
In the embodiment of the present application, the term "mobile terminal", or "terminal device", is a device located at the outermost periphery of a network in a Computer network, and can access a wireless local area network to perform input of user information and output of processing results, and includes a desktop Computer, a mobile phone, a notebook, a tablet Computer, a Personal Computer (PC), a POS machine, and a vehicle-mounted Computer.
In this embodiment of the present application, the term "server" may be an independent physical server, or a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), and a big data and artificial intelligence platform.
In this embodiment of the present application, the term "Soft Access Point (SoftAP) mode" is also referred to as a "Soft routing mode", and in this mode, the module itself is equivalent to a router, and other devices may be linked to a signal sent by the module to implement network connection, and is mainly applied to a host portion of a master device and a slave device. For example, in the embodiment of the present application, when the intelligent household appliance control device is in the SoftAP mode, the intelligent household appliance control device may be equivalent to a router, and the mobile terminal is connected to the intelligent household appliance control device, so as to implement network interconnection.
In the embodiment of the present application, the term "station mode", also called "client mode", in which a module acts as a client and can link to Wi-Fi signals sent by other routers. For example, in the embodiment of the present application, when the intelligent household appliance control device is in a station mode, the intelligent household appliance control device is connected to the same router as a client and the mobile terminal, so as to implement network interconnection.
The design concept of the embodiments of the present application will be briefly described below.
The embodiment of the application provides an intelligent household appliance control device which communicates with a mobile terminal in the field of intelligent home, so that the intelligent household appliance is controlled through the intelligent household appliance control device, and the purpose of controlling the intelligent household appliance through the mobile terminal is further achieved. The intelligent household appliance control equipment in the embodiment of the application is a Wi-Fi module product, so that the Wi-Fi module product can be equal to the intelligent household appliance control equipment. The intelligent household appliance control equipment can be installed in equipment in intelligent household scenes such as refrigerators, washing machines, sockets and the like; the intelligent household appliance control equipment can also be an independent equipment which is used as an intelligent manager in an intelligent household scene.
With the promotion of mobile internet and cloud computing, the development of smart homes rapidly increases in temperature, and various manufacturers release respective smart home platforms and devices, so that the smart homes can be comprehensively accessed. The quality of intelligent household appliance control equipment formed by the Wi-Fi module product is more and more emphasized, and the detection of the Wi-Fi module product becomes an important link in the field of intelligent home furnishing. Therefore, the embodiment of the application provides a testing method for an intelligent household appliance control device, so as to ensure that when the intelligent household appliance control device is installed in an intelligent household appliance or is used as an independent device, parameters such as stability and running state of communication with the intelligent household appliance are tested.
In the related art, before an intelligent household appliance control device formed by a Wi-Fi module product is formally produced and brought on line or installed in an intelligent household appliance, a stability test, a long-life test, a pressure test, and the like are performed on the intelligent household appliance control device. When testing, a real network environment is required to be established as a testing environment. However, the cloud server corresponding to the test environment is different from the cloud server corresponding to the formal environment, that is, the cloud servers used in different environments are different. The testing environment refers to an environment used when the intelligent household appliance control equipment is tested, and in some possible implementation modes, the testing environment can also be called an offline environment; the formal environment is a real environment in which the intelligent household appliance control device normally operates, and in some possible implementation manners, the formal environment may also be referred to as an online environment.
Currently, in the related art, cloud servers used in different environments are mainly distinguished in the following two ways.
The first method is as follows: the intelligent household appliance control equipment software is distinguished by a mode of configuring a router Domain Name Server (DNS), namely different DNS is configured in different environments, different clouds are distinguished by an internal DNS analysis Server, and the same cloud Domain Name is used by the intelligent household appliance control equipment software.
The second method comprises the following steps: and switching in a hard switching mode, namely developing and testing by using a cloud server and an APK (android package) in a testing environment, and directly switching to a formal environment after the development and testing are finished.
Above two kinds of modes, all there are a lot of limitations and not enough, and DNS server still needs to be built except the cloud server that the test environment corresponds to building in the first mode, and this kind of mode can only inside use LAN mode to realize, and test environment is difficult to build. In the second mode, the test environment and the formal environment are completely independent, the intelligent household appliance control device needs to maintain two software versions, and the environments corresponding to the two software versions have many parameter influences, such as cloud end addresses, product public keys and the like, which all need to be configured in the software of the intelligent household appliance control device, and the version switching is quite troublesome.
Therefore, in the related art, a real network environment needs to be built when testing the intelligent household appliance control device, and due to condition limitation, the situation that a router or a network is unstable is often encountered, and the efficiency is low. When a real network environment is used for pressure testing, when a router or a network is unstable, testing can be performed only in a manual clicking mode, efficiency is low, and deeper problems are difficult to find.
Based on the above content, in the embodiment of the application, when the intelligent household appliance control device is tested, a testing environment cloud server is simulated in the local area network, the IP address of the testing environment cloud server is the IP address obtained after the mobile terminal is connected with the hot spot, and the cloud port number of the testing environment cloud server is preset. At the moment, the intelligent household appliance control equipment and the mobile terminal can be switched through the TCP channel in the same local area network, and can be tested after being connected into the simulated testing environment cloud server, so that the influence of the environment of the router and the network is avoided, the testing efficiency and convenience are improved, and the problem of lack of Wi-Fi module product testing means is solved.
In the embodiment of the application, the intelligent household appliance control equipment monitors the specific port, and after a TCP connection request sent by the mobile terminal in the same local area network is monitored through the specific port, a TCP connection channel is established with the mobile terminal; receiving access information of a test environment cloud server in the mobile terminal, which is sent by the mobile terminal, through a TCP connection channel; and accessing the cloud server of the test environment according to the access information, and testing through the cloud server of the test environment.
On the premise of not increasing hardware, the intelligent household appliance control device can monitor a specific port no matter in a SoftAP hotspot mode or a station mode, the mobile terminal can be connected with the specific port at any time to acquire data and trigger a relevant test instruction such as a 'test environment-formal environment' switching instruction, so that the intelligent household appliance control device completes the switching between the test environment and the formal environment, and after the intelligent household appliance control device is switched to the test environment, the mobile terminal sends the test instruction to the intelligent household appliance control device through the specific port and acquires test data returned by the intelligent household appliance control device, thereby completing the test of the intelligent household appliance control device. According to the scheme, the test efficiency and the operation convenience can be greatly improved, and the problem that the test means of the intelligent household appliance control equipment is deficient is solved. And moreover, market problems can be conveniently investigated, and under the condition of not disassembling the machine, some information of the intelligent household appliance control equipment is acquired by combining test software, so that deeper problems can be found.
After the design idea of the embodiment of the present application is introduced, some simple descriptions are made below for application scenarios to which the technical solution of the embodiment of the present application can be applied. It should be noted that the following application scenarios are only used for illustrating the embodiments of the present application and are not limited thereto. In a specific implementation process, the technical scheme provided by the embodiment of the application can be flexibly applied according to actual needs.
Fig. 1 exemplarily provides an application scenario diagram in an embodiment of the present application, where the application scenario includes: the system comprises an intelligent household appliance 100, a router 101, an intelligent household appliance control device 102, a cloud server 103 and a mobile terminal 104; the intelligent household appliance control device 102 is connected with the router 101, and the intelligent household appliance control device 102 is connected with the intelligent household appliance 100; the mobile terminal 104 is connected to the router 101 or the data network.
As shown in fig. 1, the intelligent household appliance control device 102, the router 101, the cloud server 103 and the mobile terminal 104 adopt a wireless transmission mode;
the premise of establishing the wireless transmission path is that the intelligent household appliance control device 102 is connected to the router 101 first, that is, the intelligent household appliance control device 102 performs a network distribution: the intelligent household appliance control device 102 obtains a Service Set Identifier (ssid) and a password (password) of the router 101 through a certain means, and is connected to the router 101 according to the ssid and the password, and the mobile terminal 104 is connected to the router 101 or the data network;
after the intelligent household appliance Control device 102 is successfully connected to the router 101, the intelligent household appliance Control device 102 will report Media Access Control Address (MAC) of the intelligent household appliance Control device 102, information of the connected intelligent household appliance 100, and the like to the cloud server 103 through the network, and the cloud server 103 will establish a binding relationship between the intelligent household appliance Control device 102, the cloud server 103 and the mobile terminal 104, that is, the mobile terminal 104 and the intelligent household appliance Control device 102 will establish a one-to-one communication relationship;
therefore, the mobile terminal 104 transmits a control command for controlling the intelligent home appliance 100 to the intelligent home appliance control device 102 through the cloud server 103, and the intelligent home appliance control device 102 controls the intelligent home appliance 100 after receiving the control command.
In the embodiment of the present application, the intelligent household appliance 100, the intelligent household appliance control device 102 and the mobile terminal 104 all include a Wi-Fi module, i.e., a wireless network module, so as to perform data transmission through the Wi-Fi module, thereby enabling the mobile terminal 104 to send a control instruction to the intelligent household appliance 100 through the intelligent household appliance control device 102, and enabling the mobile terminal 104 to control the intelligent household appliance 100.
Fig. 2 exemplarily provides an intelligent appliance control device 102 according to an embodiment of the present invention, and as shown in fig. 2, the intelligent appliance control device 102 according to an embodiment of the present invention includes a Radio Frequency (RF) circuit 1020, a wi-Fi module 1021, a memory 1022, and a processor 1023.
Those skilled in the art will appreciate that the configuration of the intelligent appliance control device 102 shown in fig. 2 does not constitute a limitation of the intelligent appliance control device 102, and that the intelligent appliance control device 102 provided by the embodiments of the present application may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes various configurations of the intelligent household electrical appliance control device 102 according to the embodiment of the present application with reference to fig. 2.
RF circuitry 1020 may be used for receiving and transmitting data during a communication or conversation. Specifically, the RF circuit 1020 sends downlink data of the base station to the processor 1023 for processing; and in addition, sending the uplink data to be sent to the base station. In general, RF circuitry 1020 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
In addition, RF circuit 1020 may also communicate with networks and other terminals via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), general Packet Radio Service (GPRS), code Division Multiple Access (CDMA), wideband Code Division Multiple Access (WCDMA), long Term Evolution (LTE), email, short Messaging Service (SMS), etc.
The WiFi technology belongs to a short distance wireless transmission technology, and the intelligent household appliance control device 102 may be connected to the router 101 or an Access Point (AP) through the WiFi module 1021, and in this embodiment, the Access Point may be a hotspot started by the intelligent household appliance control device, so as to implement Access to a data network. The WiFi module 1021 may be used for receiving data sent by the mobile terminal through the wireless network during communication, transmitting the received data to the processor 1023, and sending data that needs to be sent by the processor 1023 to the corresponding mobile terminal 104 through the wireless network.
The memory 1022 may be used to store software programs and modules. The processor 1023 executes various functional applications and data processing of the intelligent appliance control device 102 by executing software programs and modules stored in the memory 1022, and when the processor 1023 executes the program codes in the memory 1022, the following operations can be implemented:
the processor 1023 establishes a TCP connection channel with the mobile terminal 104 after receiving a transmission control protocol TCP connection request transmitted by the Wi-Fi module 1021 and transmitted by the mobile terminal 104 in the same local area network through a specific port; and receives access information of the testing environment cloud server located in the mobile terminal 104, which is sent by the mobile terminal 104, through the TCP connection channel, and accesses the testing environment cloud server according to the access information, so as to perform testing through the testing environment cloud server.
In a possible implementation manner, the access information includes a test cloud IP address, and the processor 1023 is specifically configured to:
and accessing to a test environment cloud server in the mobile terminal 104 according to the test cloud IP address and a pre-agreed first test cloud port number.
In a possible implementation manner, the access information includes a test cloud IP address and a second test cloud port number, and the processor 1023 is specifically configured to:
and accessing to a test environment cloud server in the mobile terminal 104 according to the test cloud IP address and the second test cloud port number.
In one possible implementation, the memory 1022 is used for storing the distribution network information of the wireless router 101;
the processor 1023, before listening to a TCP connection request sent by the mobile terminal 104 located in the same lan through a specific port, is further configured to:
if the wireless router 101 is successfully accessed according to the distribution network information in the memory 1022, TCP monitoring is performed through a specific port of the wireless router 101; or
If the storage 1022 does not store the distribution network information of the wireless router 101, the hotspot is started, and TCP monitoring is performed through a specific port.
In a possible implementation manner, the processor 1023 accesses the cloud server of the test environment according to the access information, and is specifically configured to:
if the current cloud server is connected with the formal environment cloud server, the testing environment cloud server is accessed according to the access information after the formal environment cloud server is disconnected;
after accessing the cloud server of the test environment, the processor 1023 is further configured to: if the preset condition is met, switching from the testing environment cloud server to a formal environment cloud server;
wherein the preset conditions include some or all of the following: and restarting and receiving an instruction of accessing the formal environment cloud server sent by the mobile terminal 104.
Alternatively, the memory 1022 may mainly include a program storage area and a data storage area. Wherein, the storage program area can store an operating system, various application programs (such as communication application), various modules for WLAN connection, and the like; the storage data area may store data created according to the use of the terminal, and the like.
In addition, the Memory 1022 may include a Random Access Memory (RAM) 10221, a Read-Only Memory (ROM) 10222, a non-volatile Memory such as Flash Memory 10223, or other volatile solid-state Memory devices.
Fig. 3 exemplarily provides an intelligent appliance 100 in the embodiment of the present application. As shown in fig. 3, the intelligent home appliance 100 in the embodiment of the present application includes: RF circuitry 110, power supply 120, processor 130, memory 140, input unit 150, display unit 160, camera 170, communication interface 180, and WiFi module 190.
The WiFi module 190 may be the intelligent appliance control device 102 in the present application, that is, the intelligent appliance control device 102 is installed in the intelligent appliance 100. As shown in fig. 4, another schematic view of an application scenario provided in the embodiment of the present application includes: the intelligent household appliance 100 is connected with the router 101 through the intelligent household appliance control device 102, and communicates with the mobile terminal 104 through the cloud server 103; wherein the mobile terminal 104 is connected to the router 101 or to the data network.
Those skilled in the art will appreciate that the configuration of the intelligent appliance 100 shown in fig. 3 does not constitute a limitation of the intelligent appliance, and the intelligent appliance provided by the embodiments of the present application may include more or less components than those shown, or may combine some components, or may be arranged in different components.
The following describes the components of the intelligent home appliance 100 in detail with reference to fig. 3:
the RF circuitry 110 may be used for receiving and transmitting data during a communication or conversation. Specifically, the RF circuit 110 sends the downlink data of the base station to the processor 130 for processing; and in addition, sending the uplink data to be sent to the base station. In general, the RF circuit 110 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
In addition, the RF circuitry 110 may also communicate with networks and other terminals via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), general Packet Radio Service (GPRS), code Division Multiple Access (CDMA), wideband Code Division Multiple Access (WCDMA), long Term Evolution (LTE), email, short Messaging Service (SMS), etc.
The WiFi technology belongs to a short-distance wireless transmission technology, and the intelligent appliance 100 may be connected to an Access Point (AP) or a router 101 through a WiFi module 190 (i.e., an intelligent appliance control device in this embodiment), so as to implement Access to a data network. The WiFi module 190 can be used for receiving and transmitting data during communication.
The intelligent appliance 100 may be physically connected to other terminals through the communication interface 180. Optionally, the communication interface 180 is connected to a communication interface of another terminal through a cable, so as to implement data transmission between the intelligent appliance 100 and the other terminal.
The intelligent home appliance 100 can implement a communication service, and the intelligent home appliance 100 needs to have a data transmission function, that is, the intelligent home appliance 100 needs to include a communication module inside. Although fig. 1 shows communication modules such as the RF circuit 110, the WiFi module 190, and the communication interface 180, it is understood that at least one of the above components or other communication modules (e.g., bluetooth module) for implementing communication exist in the smart home appliance 100 for data transmission.
Memory 140 may be used to store software programs and modules. The processor 130 executes various functional applications and data processing of the intelligent appliance 100 by running software programs and modules stored in the memory 140, and when the processor 130 executes program codes in the memory 140, part or all of the processes in fig. 8 in the embodiment of the present application may be implemented.
Alternatively, the memory 140 may mainly include a program storage area and a data storage area. Wherein, the storage program area can store an operating system, various application programs (such as communication application), various modules for WLAN connection, and the like; the storage data area may store data created according to the use of the terminal, and the like.
Further, the memory 140 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 150 may be used to receive numeric or character information input by a user and generate key signal inputs related to user settings and function control of the intelligent home appliance 100.
Optionally, the input unit 150 may include a touch panel 151 and other input terminals 152.
The touch panel 151, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 151 (e.g., an operation performed by the user on or near the touch panel 151 using any suitable object or accessory such as a finger or a stylus pen), and drive a corresponding connection device according to a preset program. Alternatively, the touch panel 151 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 130, and can receive and execute commands sent by the processor 130. In addition, the touch panel 151 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave.
Optionally, other input terminals 152 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 160 may be used to display information input by the user or information provided to the user and various menus of the intelligent appliance 100. The display unit 160 is a display system of the intelligent appliance 100, and is used for presenting an interface and implementing human-computer interaction.
The display unit 160 may include a display panel 161. Alternatively, the Display panel 161 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
Further, the touch panel 151 may cover the display panel 161, and when the touch panel 151 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 130 to determine the type of the touch event, and then the processor 130 provides a corresponding visual output on the display panel 161 according to the type of the touch event.
Although the touch panel 151 and the display panel 161 are illustrated in fig. 1 as two separate components to implement the input and output functions of the smart home 100, in some embodiments, the touch panel 151 and the display panel 161 may be integrated to implement the input and output functions of the smart home 100.
The processor 130 is a control center of the intelligent home appliance 100, connects various components using various interfaces and lines, and performs various functions of the intelligent home appliance 100 and processes data by operating or executing software programs and/or modules stored in the memory 140 and calling data stored in the memory 140, thereby implementing various services based on the intelligent home appliance.
Optionally, processor 130 may include one or more processing units. Optionally, the processor 130 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 130.
And the camera 170 is used for realizing the shooting function of the intelligent household appliance 100 and shooting pictures or videos.
The smart appliance 100 also includes a power source 120 (such as a battery) for powering the various components. Optionally, the power supply 120 may be logically connected to the processor 130 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
Although not shown, the smart appliance 100 may further include at least one sensor, which will not be described herein.
In an embodiment of the present application, a mobile terminal 104 is further provided, where the mobile terminal 104 includes: wi-Fi module 1040 and processor 1041, wherein:
a Wi-Fi module 1040, configured to send data to the intelligent household appliance control device 102 through a wireless network, and receive data sent by the intelligent household appliance control device 102;
the processor 1041 is configured to send a TCP connection request to the intelligent household appliance control device 102 in the same local area network based on the second Wi-Fi module 1040, and establish a TCP connection channel with the intelligent household appliance control device 102; and sending access information of the testing environment cloud server located in the mobile terminal 104 to the intelligent household appliance control device 102 through the TCP connection channel, so that the intelligent household appliance control device 102 is accessed to the testing environment cloud server according to the access information and is tested through the testing environment cloud server.
In a possible implementation manner, the access information includes a test cloud IP address, and before the processor 1041 sends a TCP connection request to the intelligent appliance control device 102 in the same local area network, the processor is further configured to:
if the mobile terminal 104 is accessed to the wireless router 101, acquiring a test cloud IP address from the wireless router 101; or
If the mobile terminal 104 accesses to the hot spot started by the intelligent household appliance control device 102, the test cloud IP address is acquired from the intelligent household appliance control device 102.
In a possible implementation manner, after the processor 1041 sends the access information of the test environment cloud server located in the mobile terminal 104 to the intelligent household appliance control device 102, the processor is further configured to:
after the intelligent household appliance control device 102 is tested, an instruction for accessing the formal environment cloud server is sent to the intelligent household appliance control device 102 through the TCP connection channel, so that the intelligent household appliance control device 102 is switched from the test environment cloud server to the formal environment cloud server.
Based on the application scenario described above, an example of a method for testing an intelligent household appliance control device according to an embodiment of the present application is described below.
Referring to fig. 5, an example of accessing an intelligent household appliance control device to a cloud server in a test environment is shown, and fig. 5 exemplarily provides a test method for an intelligent household appliance control device in the embodiment of the present application, which is applied to the field of smart home, and the method includes the following steps:
and S500, after the intelligent household appliance control equipment is started, the distribution network information of the wireless router is read from the memory.
Step S501, the intelligent household appliance control equipment reads the distribution network information of the wireless router and is connected to the corresponding wireless router according to the distribution network information.
Step S502, the intelligent household appliance control equipment does not read the distribution network information of the wireless router, starts the hot spot of the intelligent household appliance control equipment and waits for the connection of the mobile terminal.
Step S501 and step S502 are parallel steps, and only one of them can be selected to be executed.
Correspondingly, the mobile terminal simulates a cloud server of the test environment, and the intelligent household appliance control device is accessed to the cloud server of the test environment, so that it is required to ensure that the mobile terminal and the intelligent household appliance control device are in the same local area network, that is, the mobile terminal device is connected to a hot spot of the intelligent household appliance control device, or connected to a wireless router accessed by the intelligent household appliance control device, and the mobile terminal will execute part or all of steps S503 to S505.
In step S503, the mobile terminal determines whether the intelligent household appliance control device is to be connected to the network.
And step S504, the mobile terminal determines the distribution network of the intelligent household appliance control equipment and is connected to the corresponding wireless router according to the distribution network information.
And step S505, the mobile terminal determines that the intelligent household appliance control equipment is not provided with a distribution network, and scans and connects hotspots of the intelligent household appliance control equipment.
Step S504 and step S505 are parallel steps, and only one of them can be selected, and they correspond to step S501 and step S502.
In the embodiment of the application, after the intelligent household appliance control device is powered on, the last distribution network information, namely the ssid and password of the wireless router, is read from the memory.
If the intelligent household appliance control equipment reads that the intelligent household appliance control equipment is proved to be already configured with a network, the network is not required to be configured, the Station mode is started, and the wireless router corresponding to the network configuration information is directly connected, so that the mobile terminal is connected to the same wireless router according to the network configuration information of the wireless router after being started; or alternatively
If the intelligent household appliance control device does not read the distribution network information, the fact that the distribution network information of the wireless router is not stored in the memory is indicated, the fact that the intelligent household appliance control device is not distributed with a network is proved, the intelligent household appliance control device enters a distribution network state, and a SoftAP mode is started, namely, a hot spot of the intelligent household appliance control device is started, so that the mobile terminal scans and is connected to the hot spot of the intelligent household appliance control device.
The mobile terminal is connected to the wireless router connected to the intelligent household appliance control device or connected to the hot spot of the intelligent household appliance control device, so that the mobile terminal and the intelligent household appliance control device are in the same local area network, and data transmission can be performed through TCP connection in the same local area network.
In the embodiment of the application, after the mobile terminal is connected to a hot spot or a wireless router of the intelligent household appliance control device, the IP address can be acquired and used as the test cloud IP address.
Step S506, the mobile terminal obtains the test cloud IP address.
Optionally, if the mobile terminal is accessed to the wireless router, obtaining the test cloud IP address from the wireless router; or alternatively
And if the mobile terminal is accessed to the hot spot started by the intelligent household appliance control equipment, acquiring the test cloud IP address from the intelligent household appliance control equipment.
And step S507, the mobile terminal starts a cloud server of the test environment according to the test cloud IP address and the test cloud port number.
Step S508, the mobile terminal sends a TCP connection request to the intelligent appliance control devices in the same lan.
Step S509, after monitoring a TCP connection request sent by the mobile terminal located in the same lan through the specific port, the intelligent appliance control device establishes a TCP connection channel with the mobile terminal.
In the embodiment of the application, after the intelligent household appliance control equipment is started, if the wireless router is successfully accessed according to the distribution network information in the memory, TCP monitoring is carried out through a specific port of the wireless router; or alternatively
And if the distribution network information of the wireless router is not stored in the memory, starting the hot spot and carrying out TCP monitoring through a specific port.
Therefore, whether the intelligent household appliance control device is in the start Station mode or in the SoftAP mode, the intelligent household appliance control device performs TCP monitoring through the specific port in real time to determine whether there is a TCP connection request sent by the mobile terminal located in the same local area network.
After determining that a TCP connection request sent by a mobile terminal in the same local area network is received, the intelligent household appliance control equipment establishes a TCP connection channel with the mobile terminal so as to transmit data.
After determining that a TCP connection channel is established between the mobile terminal and the intelligent household appliance control equipment in the same local area network, sending access information of a testing environment cloud server in the mobile terminal to the intelligent household appliance control equipment through the TCP connection channel.
Step S510, the mobile terminal sends access information of the cloud server in the test environment in the mobile terminal to the intelligent household appliance control device through the TCP connection channel.
In the embodiment of the application, the access information includes a test cloud IP address, or the access information includes the test cloud IP address and a test cloud port number.
Optionally, if the access information only includes the test cloud IP address, the test cloud port number used when the intelligent household appliance control device accesses the test environment cloud server is predetermined by the mobile terminal and the intelligent household appliance control device;
if the information is accessed to test the cloud IP address and the cloud port number, the cloud port number is pre-stored in the mobile terminal, and the mobile terminal is required to send the cloud IP address and the cloud port number to the intelligent household appliance control device.
And step S511, after receiving the access information of the testing environment cloud server in the mobile terminal, which is sent by the mobile terminal, the intelligent household appliance control equipment accesses the corresponding testing environment cloud server according to the access information.
In the embodiment of the application, if the access information comprises a test cloud IP address, the intelligent household appliance control equipment accesses a test environment cloud server in the mobile terminal according to the test cloud IP address and a first test cloud port number appointed in advance; or
If the access information comprises the testing cloud IP address and the second testing cloud port number, the intelligent household appliance control equipment is accessed to a testing environment cloud server in the mobile terminal according to the testing cloud IP address and the second testing cloud port number.
In a possible implementation manner, when the intelligent household appliance control device accesses the corresponding testing environment cloud server according to the access information, if the current testing environment cloud server is determined to be connected with the formal environment cloud server, the testing environment cloud server is accessed according to the access information after the formal environment cloud server is disconnected.
And after the intelligent household appliance control equipment is connected to the test environment cloud server in the mobile terminal, the test can be carried out through the test environment cloud server. In the embodiment of the application, the mobile terminal sends a test instruction to the intelligent household appliance control equipment through the TCP connection channel, and the intelligent household appliance control equipment performs a corresponding test on the test instruction at the test environment cloud server.
And S512, testing the intelligent household appliance control equipment in the testing environment cloud server.
It should be noted that the steps in the flowchart in fig. 5 are an exemplary description that can be implemented, and are not the only limitation of the testing method for the intelligent household appliance control device, and those skilled in the art can adapt the steps according to the actual situation. For example, after determining that the mobile terminal and the intelligent household appliance control device are located in the same local area network, the mobile terminal first sends a TCP connection request to the intelligent household appliance control device located in the same local area network, and establishes a TCP connection channel; and then, starting the testing environment cloud server according to the testing cloud IP address and the testing cloud port number, and then sending the testing cloud IP address and the testing cloud port number to the intelligent household appliance control equipment through the TCP connecting channel so that the intelligent household appliance control equipment is accessed into the testing environment cloud server in the mobile terminal.
The foregoing embodiment exemplarily shows a flowchart of accessing the intelligent household appliance control device to the test environment cloud server in the mobile terminal, but the present invention is also applicable to accessing the intelligent household appliance control device to the formal environment cloud server.
After the intelligent household appliance control equipment establishes TCP connection with the mobile terminal, the mobile terminal sends an instruction for accessing a formal environment cloud server to the intelligent household appliance control equipment through a TCP connection channel;
correspondingly, the intelligent household appliance control equipment is connected to the formal environment cloud server.
In a possible implementation mode, if the intelligent household appliance control equipment is connected to the cloud server of the testing environment, after the mobile terminal determines that the testing of the intelligent household appliance control equipment is finished, an instruction for connecting the intelligent household appliance control equipment to the cloud server of the formal environment is sent to the intelligent household appliance control equipment through a TCP (transmission control protocol) connecting channel; after the intelligent household appliance control equipment is disconnected from the testing environment cloud server, the intelligent household appliance control equipment is connected with the formal environment cloud server and is switched to the formal environment cloud server by the testing environment cloud server.
In the embodiment of the application, the test cloud IP address and the test cloud port number corresponding to the test environment cloud server in the mobile terminal are temporary, and the intelligent household appliance control device does not store the test cloud IP address and the test cloud port number and is invalid when being restarted. Therefore, in the embodiment of the application, the intelligent household appliance control equipment can be dynamically switched to the environment cloud server in a mode of restarting the intelligent household appliance control equipment.
The method for testing the intelligent household appliance control equipment provided by the embodiment of the application can be applied to any testing link aiming at the intelligent household appliance control equipment, such as the test of a production line mode in the production link of the intelligent household appliance control equipment, the test of a formal on-line testing mode before the intelligent household appliance control equipment is produced, and the test of a formal on-line version updating mode after the intelligent household appliance control equipment is produced.
The following description will be given by taking the test in the production line mode and the test in the formal before-line test mode as examples.
Fig. 6 exemplarily provides a schematic diagram of testing an intelligent household appliance control device in a production line mode in the embodiment of the present application:
at this time, the intelligent household appliance control device is not provided with a network, and most of the intelligent household appliance control devices are a test mode applied to a production line mode, and the test mode comprises the following steps:
the intelligent household appliance control equipment enters a distribution network mode in a production line mode, a hot spot of the intelligent household appliance control equipment is started, and a specific port is monitored, namely TCP monitoring is carried out through the specific port;
the PC computer of the production line scans and connects the hot spot with the strongest signal;
the production line PC computer simulation software TCP is connected with the intelligent household appliance control equipment, and can complete the following functions:
writing-reading an intelligent household appliance unique identification code connected with an intelligent household appliance control device;
the cloud server switching function, the "test environment-intelligent household appliance control equipment" instruction test;
and acquiring information, such as an MAC address, of the intelligent household appliance control equipment.
Fig. 7 exemplarily provides a test diagram of the intelligent household appliance control device in the test mode in the embodiment of the present application:
at the moment, the intelligent household appliance control equipment is already provided with a network, is connected to the corresponding wireless router according to the network distribution information and is normally connected to the cloud server, namely, the intelligent household appliance control equipment is in a station mode, and at the moment, the intelligent household appliance control equipment also monitors a specific port, namely TCP monitoring is carried out through the specific port;
the test PC computer and the intelligent household appliance control equipment are connected to the same wireless router, and a TCP connection channel is established between the test PC computer and the intelligent household appliance control equipment after the TCP is connected to the specific port; the following functions can be achieved:
switching a cloud server in a test environment and carrying out related instruction tests such as control and state acquisition;
acquiring information of intelligent household appliance control equipment, such as an MAC address;
and performing long-term protection and pressure test on the intelligent household appliance control equipment, wherein the pressure test comprises instruction pressure test, cloud disconnection, switching between a formal environment cloud server and a test environment cloud server and the like.
Fig. 8 exemplarily provides a testing method of an intelligent household electrical appliance control device in the present application, which is applied to the intelligent household electrical appliance control device, and the method includes the following steps:
step S800, after a TCP connection request sent by mobile terminals in the same local area network is monitored through a specific port, a TCP connection channel is established with the mobile terminals;
step S801, receiving access information of a test environment cloud server in the mobile terminal, which is sent by the mobile terminal, through a TCP connection channel;
and S802, accessing the cloud server of the test environment according to the access information, and testing through the cloud server of the test environment.
In a possible implementation manner, accessing the access information to the cloud server in the test environment according to the access information includes:
and accessing to a testing environment cloud server in the mobile terminal according to the testing cloud IP address and a first testing cloud port number agreed in advance.
In a possible implementation manner, the accessing information includes a test cloud IP address and a second test cloud port number, and the accessing the test environment cloud server according to the accessing information includes:
and accessing to a testing environment cloud server in the mobile terminal according to the testing cloud IP address and the second testing cloud port number.
In a possible implementation manner, before listening to a TCP connection request sent by a mobile terminal located in the same local area network through a specific port, the method further includes:
if the wireless router is successfully accessed according to the pre-stored distribution network information, TCP monitoring is carried out through a specific port of the wireless router; or
And if the distribution network information of the wireless router is not stored, starting the hot spot, and carrying out TCP monitoring through a specific port.
In a possible implementation manner, accessing a cloud server of a test environment according to access information includes:
if the current cloud server is connected with the formal environment cloud server, the formal environment cloud server is disconnected, and then the cloud server is accessed into the testing environment cloud server according to the access information;
after accessing the cloud server of the test environment, the method further comprises:
if the preset condition is met, switching from the testing environment cloud server to a formal environment cloud server;
wherein the preset conditions include some or all of the following: and restarting and receiving an instruction of accessing the formal environment cloud server sent by the mobile terminal.
Fig. 9 exemplarily provides another testing method for an intelligent appliance control device in the present application, which is applied in a mobile terminal, and the method includes the following steps:
step S900, a TCP connection request is sent to the intelligent household appliance control equipment in the same local area network, and a TCP connection channel is established between the TCP connection request and the intelligent household appliance control equipment;
step S901, sending access information of the testing environment cloud server located in the mobile terminal to the intelligent household appliance control device through the TCP connection channel, so that the intelligent household appliance control device accesses the testing environment cloud server according to the access information, and performs a test through the testing environment cloud server.
In a possible implementation manner, the accessing information includes a test cloud IP address, and before sending a TCP connection request to the intelligent appliance control devices located in the same local area network, the method further includes:
if the mobile terminal is accessed to the wireless router, acquiring a test cloud IP address from the wireless router; or alternatively
And if the mobile terminal is accessed to the hot spot started by the intelligent household appliance control equipment, acquiring the test cloud IP address from the intelligent household appliance control equipment.
In a possible implementation manner, after sending the access information of the cloud server of the test environment located in the mobile terminal to the intelligent appliance control device, the method further includes:
after the intelligent household appliance control equipment is tested, an instruction for accessing the formal environment cloud server is sent to the intelligent household appliance control equipment through the TCP connecting channel, so that the intelligent household appliance control equipment is switched from the testing environment cloud server to the formal environment cloud server.
Based on the same inventive concept, the embodiment of the present application further provides a testing apparatus for an intelligent household appliance control device, and as the apparatus corresponds to the method for measuring the height in the embodiment of the present application, and the principle of the apparatus for solving the problem is similar to that of the method, the implementation of the apparatus can refer to the implementation of the method, and repeated details are not repeated.
Fig. 10 exemplarily provides a testing apparatus 1000 for an intelligent appliance control device in an embodiment of the present application, where the apparatus includes: a monitoring unit 1001, a receiving unit 1002 and an access unit 1003;
a monitoring unit 1001, configured to monitor, through a specific port, a TCP connection request sent by a mobile terminal located in the same lan, and then establish a TCP connection channel with the mobile terminal;
the receiving unit 1002 is configured to receive, through a TCP connection channel, access information of a cloud server in a test environment, where the cloud server is located in a mobile terminal and is sent by the mobile terminal;
and an accessing unit 1003, configured to access the testing environment cloud server according to the access information, and perform a test through the testing environment cloud server.
In a possible implementation manner, the access information includes a test cloud IP address, and the access unit 1003 is specifically configured to:
and accessing to a testing environment cloud server in the mobile terminal according to the testing cloud IP address and a pre-agreed first testing cloud port number.
In a possible implementation manner, the access information includes a test cloud IP address and a second test cloud port number, and the access unit 1003 is specifically configured to:
and accessing to a test environment cloud server in the mobile terminal according to the test cloud IP address and the second test cloud port number.
In a possible implementation manner, before the listening unit 1001 listens to a TCP connection request sent by a mobile terminal located in the same lan through a specific port, the listening unit is further configured to:
if the wireless router is successfully accessed according to the pre-stored distribution network information, TCP monitoring is carried out through a specific port of the wireless router; or alternatively
And if the distribution network information of the wireless router is not stored, starting the hot spot, and carrying out TCP monitoring through a specific port.
In a possible implementation manner, the access unit 1003 is specifically configured to:
if the current cloud server is connected with the formal environment cloud server, the testing environment cloud server is accessed according to the access information after the formal environment cloud server is disconnected;
after the access unit 1003 accesses the cloud server of the test environment, the access unit is further configured to:
if the preset condition is met, switching from the testing environment cloud server to a formal environment cloud server;
wherein the preset conditions include some or all of the following: and restarting and receiving an instruction which is sent by the mobile terminal and is accessed to the cloud server in the formal environment.
Fig. 11 exemplarily provides another testing apparatus 1100 for an intelligent appliance control device in the embodiment of the present application, where the apparatus includes: a first transmission unit 1101, a second transmission unit 1102;
a first sending unit 1101, configured to send a TCP connection request to an intelligent appliance control device in the same lan, and establish a TCP connection channel with the intelligent appliance control device;
a second sending unit 1102, configured to send access information of the testing environment cloud server located in the mobile terminal to the intelligent household appliance control device through the TCP connection channel, so that the intelligent household appliance control device accesses the testing environment cloud server according to the access information, and performs a test through the testing environment cloud server.
In a possible implementation manner, the access information includes a test cloud IP address, and before the first sending unit 1101 sends a TCP connection request to the intelligent appliance control devices located in the same local area network, the first sending unit is further configured to:
if the mobile terminal is accessed to the wireless router, acquiring a test cloud IP address from the wireless router; or
And if the mobile terminal is accessed to the hot spot started by the intelligent household appliance control equipment, acquiring the test cloud IP address from the intelligent household appliance control equipment.
In a possible implementation manner, after the second sending unit 1102 sends the access information of the test environment cloud server located in the mobile terminal to the intelligent household appliance control device, the second sending unit is further configured to:
after the intelligent household appliance control equipment is tested, an instruction for accessing the formal environment cloud server is sent to the intelligent household appliance control equipment through the TCP connecting channel, so that the intelligent household appliance control equipment is switched from the testing environment cloud server to the formal environment cloud server.
Embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the method for testing an intelligent household appliance control device according to various exemplary embodiments of the present application described in the foregoing description.
In some possible embodiments, the aspects of the testing method for an intelligent household appliance control device provided in the present application may also be implemented in the form of a program product, which includes program code for causing a device to perform the steps of the testing method for an intelligent household appliance control device according to various exemplary embodiments of the present application described in this specification when the program product is run on the device.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and in actual implementation, there may be another division, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some interfaces, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, functional modules in the embodiments of the present disclosure may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the disclosure are all or partially generated upon loading and execution of the computer program instructions on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device including one or more available media integrated servers, data centers, and the like. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), among others.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. An intelligent household appliance control device, characterized in that, this controlgear includes: a first wireless fidelity Wi-Fi module and a first processor, wherein:
the first Wi-Fi module is used for receiving data sent by a mobile terminal through a wireless network, transmitting the received data to the first processor, and sending the data required to be sent by the first processor through the wireless network;
the first processor is used for receiving a Transmission Control Protocol (TCP) connection request transmitted by the first Wi-Fi module and sent to a mobile terminal in the same local area network through a specific port, and then establishing a TCP connection channel with the mobile terminal; and receiving access information of a test environment cloud server in the mobile terminal, which is sent by the mobile terminal, through the TCP connection channel, and accessing the test environment cloud server according to the access information so as to test through the test environment cloud server.
2. The device of claim 1, wherein the access information comprises a test cloud IP address, the first processor specifically configured to:
accessing to a testing environment cloud server in the mobile terminal according to the testing cloud IP address and a pre-agreed first testing cloud port number;
the access information includes a test cloud IP address and a second test cloud port number, and the first processor is specifically configured to:
and accessing to a test environment cloud server in the mobile terminal according to the test cloud IP address and the second test cloud port number.
3. The device of claim 1, wherein the intelligent appliance control device further comprises a memory, wherein:
the memory is used for storing the distribution network information of the wireless router;
before the first processor monitors a TCP connection request sent by a mobile terminal located in the same local area network through a specific port, the first processor is further configured to:
if the wireless router is successfully accessed according to the distribution network information in the memory, TCP monitoring is carried out through a specific port of the wireless router; or
And if the distribution network information of the wireless router is not stored in the memory, starting a hot spot and carrying out TCP monitoring through a specific port.
4. The device of claim 1, wherein the first processor accesses the test environment cloud server according to the access information, and is specifically configured to:
if the current cloud server is connected with the formal environment cloud server, the testing environment cloud server is accessed according to the access information after the formal environment cloud server is disconnected;
after the first processor accesses the cloud server of the test environment, the first processor is further configured to:
if the cloud server meets the preset conditions, switching from the testing environment cloud server to the formal environment cloud server;
wherein the preset conditions include some or all of the following: and restarting and receiving an instruction which is sent by the mobile terminal and used for accessing the formal environment cloud server.
5. A mobile terminal, characterized in that the mobile terminal comprises: a second Wi-Fi module and a second processor, wherein:
the second Wi-Fi module is used for sending data to the intelligent household appliance control equipment through a wireless network and receiving the data sent by the intelligent household appliance control equipment;
the second processor is used for sending a TCP connection request to the intelligent household appliance control equipment in the same local area network based on the second Wi-Fi module and establishing a TCP connection channel with the intelligent household appliance control equipment; and sending access information of the testing environment cloud server positioned in the mobile terminal to the intelligent household appliance control equipment through the TCP connection channel, so that the intelligent household appliance control equipment is accessed into the testing environment cloud server according to the access information and is tested through the testing environment cloud server.
6. The mobile terminal of claim 5, wherein the access information includes a test cloud IP address, and before the second processor sends a TCP connection request to the intelligent appliance control device in the same local area network, the second processor is further configured to:
if the mobile terminal is accessed to a wireless router, acquiring a test cloud IP address from the wireless router; or
And if the mobile terminal is accessed to the hot spot started by the intelligent household appliance control equipment, acquiring a test cloud IP address from the intelligent household appliance control equipment.
7. The mobile terminal of claim 5, wherein after the second processor sends the access information of the cloud server of the test environment located in the mobile terminal to the intelligent appliance control device, the second processor is further configured to:
after the intelligent household appliance control equipment is tested, sending an instruction for accessing a formal environment cloud server to the intelligent household appliance control equipment through the TCP connection channel, so that the intelligent household appliance control equipment is switched from the testing environment cloud server to the formal environment cloud server.
8. A test method of intelligent household appliance control equipment is characterized by being applied to the intelligent household appliance control equipment and comprising the following steps:
after a TCP connection request sent by a mobile terminal in the same local area network is monitored through a specific port, a TCP connection channel is established with the mobile terminal;
receiving access information of a test environment cloud server in the mobile terminal, which is sent by the mobile terminal, through the TCP connection channel;
and accessing the cloud server of the test environment according to the access information, and testing through the cloud server of the test environment.
9. A testing method of intelligent household appliance control equipment is characterized by being applied to a mobile terminal and comprising the following steps:
sending a TCP connection request to intelligent household appliance control equipment in the same local area network, and establishing a TCP connection channel with the intelligent household appliance control equipment;
and sending access information of the testing environment cloud server in the mobile terminal to the intelligent household appliance control equipment through the TCP connection channel, so that the intelligent household appliance control equipment is accessed into the testing environment cloud server according to the access information and tests through the testing environment cloud server.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions which, when executed by a processor, implement the method of claim 8 or the method of claim 9.
CN202011539124.9A 2020-12-23 2020-12-23 Intelligent household appliance control equipment, mobile terminal and testing method Active CN112601211B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011539124.9A CN112601211B (en) 2020-12-23 2020-12-23 Intelligent household appliance control equipment, mobile terminal and testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011539124.9A CN112601211B (en) 2020-12-23 2020-12-23 Intelligent household appliance control equipment, mobile terminal and testing method

Publications (2)

Publication Number Publication Date
CN112601211A CN112601211A (en) 2021-04-02
CN112601211B true CN112601211B (en) 2023-02-24

Family

ID=75200501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011539124.9A Active CN112601211B (en) 2020-12-23 2020-12-23 Intelligent household appliance control equipment, mobile terminal and testing method

Country Status (1)

Country Link
CN (1) CN112601211B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113110083A (en) * 2021-04-15 2021-07-13 青岛海信移动通信技术股份有限公司 Wireless communication module, intelligent household equipment, network distribution method and system
CN115134279A (en) * 2021-05-19 2022-09-30 深圳方位通讯科技有限公司 Terminal testing method and device and computer readable storage device
CN113326068A (en) * 2021-07-02 2021-08-31 佛山市淇特科技有限公司 Cloud testing method, device, equipment and storage medium on intelligent household equipment
CN114567916A (en) * 2022-03-01 2022-05-31 德沃康科技集团有限公司 Production test method, device, equipment and medium based on WiFi furniture

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102781019A (en) * 2012-07-30 2012-11-14 迈普通信技术股份有限公司 System and method for automatically testing wireless fidelity (WIFI) module
US9400301B2 (en) * 2013-03-29 2016-07-26 WOW Insites LLC Electronic testing device
CN105208574A (en) * 2014-06-23 2015-12-30 西安Tcl软件开发有限公司 Method and device for detecting performance of wireless module of terminal
CN109413678A (en) * 2018-12-25 2019-03-01 欧普照明股份有限公司 A kind of Wi-Fi module automatic test approach and test macro
CN110636131B (en) * 2019-09-25 2021-11-16 北京中广瑞波科技股份有限公司 Internet of things testing system based on cloud technology

Also Published As

Publication number Publication date
CN112601211A (en) 2021-04-02

Similar Documents

Publication Publication Date Title
CN112601211B (en) Intelligent household appliance control equipment, mobile terminal and testing method
US20180368058A1 (en) Method for controlling device access, and related device and system
CN111741513B (en) Network distribution method of Internet of things equipment and related equipment
CN107094294B (en) Network connection method and device
JP6751094B2 (en) Method, apparatus and system for supporting wireless communication
US11131976B2 (en) Device control system, method and apparatus, and gateways
US20230093016A1 (en) Discovery and provisioning method, electronic device, and system
US11218451B2 (en) Device bootstrap method, terminal, and server
CN106953785B (en) Intelligent household equipment adding method and device
CN107976911B (en) Equipment control method, device and system
CN112118539B (en) Method and device for device information interaction between terminals
CN106936676B (en) Household equipment control method and device
CN108055339B (en) Household appliance interconnection method and device, storage medium and cloud platform server
EP2856659A1 (en) Automatic connection of bluetooth human interface devices
CN107147549B (en) Intelligent household equipment networking method and device
CN106793007B (en) Interactive communication method and system of cloud and Bluetooth device and wireless router
CN110365704B (en) Equipment binding method and device and electronic equipment
CN111741509A (en) Network distribution method and device, storage medium and processor
CN111867148A (en) Method and equipment for establishing equipment connection and data transmission
CN107448779A (en) Pipe leakage signal monitoring system and method based on wireless sensor network
CN112566078A (en) Device connection method and apparatus, storage medium, and electronic apparatus
CN106161147B (en) Establish the method and device of network connection
CN105306244B (en) Router management method, system and equipment
CN105426190A (en) Data transmission method and device
CN112543493A (en) Wifi connection method, terminal and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 266555, No. 218, Bay Road, Qingdao economic and Technological Development Zone, Shandong

Patentee after: QINGDAO HISENSE ELECTRONIC INDUSTRY HOLDING Co.,Ltd.

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266555, No. 218, Bay Road, Qingdao economic and Technological Development Zone, Shandong

Patentee before: QINGDAO HISENSE ELECTRONIC INDUSTRY HOLDING Co.,Ltd.

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 266555, No. 218, Bay Road, Qingdao economic and Technological Development Zone, Shandong

Patentee after: Hisense Group Holding Co.,Ltd.

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266555, No. 218, Bay Road, Qingdao economic and Technological Development Zone, Shandong

Patentee before: QINGDAO HISENSE ELECTRONIC INDUSTRY HOLDING Co.,Ltd.

Patentee before: Qingdao Hisense Mobile Communication Technology Co.,Ltd.