CN115174656A - Device configuration method and apparatus, storage medium, and electronic apparatus - Google Patents

Device configuration method and apparatus, storage medium, and electronic apparatus Download PDF

Info

Publication number
CN115174656A
CN115174656A CN202210590994.1A CN202210590994A CN115174656A CN 115174656 A CN115174656 A CN 115174656A CN 202210590994 A CN202210590994 A CN 202210590994A CN 115174656 A CN115174656 A CN 115174656A
Authority
CN
China
Prior art keywords
field
equipment
networked
network
accessed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210590994.1A
Other languages
Chinese (zh)
Inventor
王兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210590994.1A priority Critical patent/CN115174656A/en
Publication of CN115174656A publication Critical patent/CN115174656A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • 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
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses an equipment configuration method and device, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the equipment configuration method comprises the following steps: acquiring a broadcast data packet broadcasted by a device to be accessed to a network; under the condition that the broadcast data packet is directly received from the device to be networked, analyzing the broadcast data packet, and determining the field content of a first field of a device identification field in the broadcast data packet, wherein the device identification field at least comprises: a first field; the first field is used for representing a manufacturer identifier corresponding to the equipment to be accessed to the network; and determining whether the manufacturer of the equipment to be accessed to the network is a target manufacturer according to the field content of the first field so as to determine whether the equipment to be accessed to the network is the equipment which is allowed to be configured by the mobile terminal. By adopting the technical scheme, the problem that the mobile terminal cannot distinguish whether the equipment is the equipment which needs to be configured per se is solved.

Description

Device configuration method and apparatus, storage medium, and electronic apparatus
Technical Field
The application relates to the technical field of smart homes, in particular to a device configuration method and device, a storage medium and an electronic device.
Background
With the rapid development of the internet of things, more and more devices need to be configured in the aspect of a distribution network, for example, in a common situation, the devices are configured through a mobile terminal, but when finding a device to be configured, the mobile terminal cannot distinguish whether the device is the device to be configured, and then redundant information prompt and error information prompt can occur.
In the related art, an effective solution is not provided at present for the problem that a mobile terminal cannot distinguish whether a device is a device that needs to be configured.
Accordingly, there is a need for improvement in the related art to overcome the disadvantages of the related art.
Disclosure of Invention
The embodiment of the invention provides a device configuration method and device, a storage medium and an electronic device, which at least solve the problem that a mobile terminal cannot distinguish whether a device is a device which needs to be configured.
According to an aspect of an embodiment of the present invention, there is provided an apparatus configuration method, including: acquiring a broadcast data packet broadcasted by a device to be accessed to a network; under the condition that the broadcast data packet is a data packet directly received from the device to be networked, analyzing the broadcast data packet, and determining the field content of a first field of a device identification field in the broadcast data packet, wherein the device identification field at least comprises: the first field; the first field is used for representing a manufacturer identifier corresponding to the equipment to be accessed to the network; and determining whether the manufacturer of the equipment to be accessed to the network is a target manufacturer according to the field content of the first field so as to determine whether the equipment to be accessed to the network is the equipment which is allowed to be configured by the mobile terminal.
In an exemplary embodiment, after obtaining the broadcast data packet broadcasted by the device to be networked, the method further includes: and under the condition that the broadcast data packet is the data packet which is transmitted by the network access equipment and is broadcasted by the network access equipment, determining that the manufacturer of the network access equipment is a target manufacturer so as to determine that the network access equipment is the equipment which is allowed to be configured by the mobile terminal.
In an exemplary embodiment, after acquiring the broadcast data packet broadcasted by the device to be networked, the method further includes: analyzing the broadcast data packet, and determining field content of a second field of the device identification field, wherein the device identification field at least comprises: the first field and the second field; the second field is used for representing the model identification of the equipment to be accessed to the network; acquiring the device multimedia information of the device to be networked from a cloud server according to the model identification corresponding to the field content of the second field; and displaying the multimedia information of the equipment on a display interface of the mobile terminal.
In an exemplary embodiment, acquiring the device multimedia information of the device to be networked from the cloud server according to the model identifier corresponding to the field content of the second field includes: acquiring device picture information of the device to be networked from a cloud server according to the model identification of the device to be networked; and/or acquiring the device name of the device to be networked from a cloud server according to the model identification of the device to be networked; and/or acquiring video introduction data of the equipment to be networked from a cloud server according to the model identification of the equipment to be networked; and/or acquiring the distribution network type of the equipment to be networked from a cloud server according to the model identification of the equipment to be networked; wherein the device multimedia information comprises: the device picture, and/or the device name, and/or the video introduction data, and/or the distribution network type.
In an exemplary embodiment, the device multimedia information is displayed behind a display interface of the mobile terminal, and the method includes: acquiring a control instruction issued by a target object; adding the device to be accessed into a wireless mesh network under the condition that the control instruction is a first instruction, wherein the first instruction is an instruction sent by the target object under the condition that the target object determines that the type of a distribution network of the device to be accessed is a wireless mesh network distribution network through the device multimedia information; under the condition that the control instruction is a second instruction, performing distribution network operation on the equipment to be networked in a Bluetooth distribution network mode, wherein the second instruction is an instruction sent by the target object under the condition that the distribution network type of the equipment to be networked is determined to be a Bluetooth distribution network through the equipment multimedia information; and under the condition that the control instruction is a third instruction, carrying out distribution network operation on the equipment to be networked in a wireless fidelity (WIFI) distribution network mode, wherein the third instruction is an instruction sent by the target object under the condition that the distribution network type of the equipment to be networked is determined to be a WIFI distribution network through the equipment multimedia information.
In an exemplary embodiment, after acquiring the broadcast data packet broadcasted by the device to be networked, the method further includes: under the condition that the device multimedia information of the device to be networked, which is acquired from a cloud server according to the model identifier of the device to be networked, is not unique, analyzing the broadcast data packet, and determining the field content of a third field of the device identifier field, wherein the device identifier field at least comprises: a first field, a second field, and a third field; the third field is used for representing a Media Access Control (MAC) address of the device to be networked; and acquiring the equipment multimedia information of the equipment to be networked from the cloud server according to the model identification of the equipment to be networked and the MAC address of the equipment to be networked.
In an exemplary embodiment, in the device identification field, the first field is located before the second field, the second field is located before the third field, and the field content of the first field, the field content of the second field, and the field content of the third field are defined by a vendor of the device to be networked.
In an exemplary embodiment, determining whether a vendor of the device to be networked is a target vendor according to field content of the first field to determine whether the device to be networked is a device that is allowed to be configured by the mobile terminal, includes: under the condition that the field content of the first field is a target character, determining that a manufacturer of the equipment to be accessed is a target manufacturer so as to determine that the equipment to be accessed is equipment which is allowed to be configured by the mobile terminal; and under the condition that the field content of the first field is not the target character, determining that the manufacturer of the equipment to be accessed is not the target manufacturer, so as to determine that the equipment to be accessed is not the equipment which is allowed to be configured by the mobile terminal.
According to another aspect of the embodiments of the present invention, there is also provided an apparatus configuration device, including: the acquisition module is used for acquiring a broadcast data packet broadcasted by the equipment to be accessed to the network; a first determining module, configured to, when the broadcast packet is a packet directly received from the device to be networked, parse the broadcast packet, and determine field content of a first field of a device identification field in the broadcast packet, where the device identification field at least includes: the first field; the first field is used for representing a manufacturer identifier corresponding to the equipment to be accessed to the network; and the second determining module is used for determining whether the manufacturer of the equipment to be accessed is a target manufacturer according to the field content of the first field so as to determine whether the equipment to be accessed is the equipment allowed to be configured by the mobile terminal.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned device configuration method when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the apparatus configuration method through the computer program.
According to the invention, under the condition of directly acquiring the broadcast data packet sent by the equipment to be accessed, whether the manufacturer of the equipment to be accessed is a target manufacturer is determined by analyzing the field content of the first field of the equipment identification field obtained by the broadcast data packet, so as to determine whether the equipment to be accessed is the equipment which is allowed to be configured by the mobile terminal. The method and the device for network access can determine whether the manufacturer of the device to be networked is a target manufacturer or not through the field content of the first field of the device identification field in the broadcast data packet, and further determine whether the device to be networked is a device which is allowed to be configured by the mobile terminal or not, so that the problem that the mobile terminal cannot distinguish whether the device is a device which needs to be configured per se or not is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive labor.
FIG. 1 is a hardware environment diagram of a device configuration method according to an embodiment of the present application;
FIG. 2 is a flow chart of a device configuration method according to an embodiment of the invention;
FIG. 3 is a timing diagram of a device configuration method according to an embodiment of the invention;
FIG. 4 is a block diagram (one) of the structure of a device configuration apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram (ii) of the configuration of the device configuration apparatus according to the embodiment of the present invention.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of an embodiment of the present application, a device configuration method is provided. The equipment configuration method is widely applied to full-house intelligent digital control application scenes such as Smart Home, intelligent Home equipment ecology, intelligent house (intelligence house) ecology and the like. Alternatively, in this embodiment, the device configuration method may be applied to a hardware environment formed by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be configured to provide a service (e.g., an application service) for the terminal or a client installed on the terminal, provide a database on or independent of the server for providing a data storage service for the server 104, and configure a cloud computing and/or edge computing service on or independent of the server for providing a data operation service for the server 104.
The network may include, but is not limited to, at least one of: wired networks, wireless networks. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity), bluetooth. Terminal equipment 102 can be but not limited to be PC, the cell-phone, the panel computer, intelligent air conditioner, intelligent cigarette machine, intelligent refrigerator, intelligent oven, intelligent kitchen range, intelligent washing machine, intelligent water heater, intelligent washing equipment, intelligent dish washer, intelligent projection equipment, intelligent TV, intelligent clothes hanger, intelligent (window) curtain, intelligence audio-visual, smart jack, intelligent stereo set, intelligent audio amplifier, intelligent new trend equipment, intelligent kitchen guarding equipment, intelligent bathroom equipment, intelligence robot of sweeping the floor, intelligence robot of wiping the window, intelligence robot of mopping the ground, intelligent air purification equipment, intelligent steam ager, intelligent microwave oven, intelligent kitchen is precious, intelligent clarifier, intelligent water dispenser, intelligent lock etc..
In order to solve the above problem, in this embodiment, a device configuration method is provided, including but not limited to being applied to a mobile terminal, and fig. 2 is a flowchart of the device configuration method according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202: acquiring a broadcast data packet broadcasted by a device to be accessed to a network;
it should be noted that the device to be networked may use a broadcast packet broadcast on a corresponding broadcast channel by using a BLE MESH protocol, and then the mobile terminal and the device already networked may monitor the broadcast channel corresponding to the BLE MESH protocol, and further acquire the broadcast packet.
It should be noted that the bluetooth function needs to be started for the device to be networked, the mobile terminal, and the device already networked.
In an exemplary example, the mobile terminal includes, but is not limited to, a cell phone, a tablet computer, and the like. The networked devices and the devices to be networked include, but are not limited to, intelligent home devices, such as: speakers, washing machines, refrigerators, air conditioners, and the like.
Optionally, table 1 below shows a partial format of a data packet of the BLE MESH protocol, and a manufacturer of the Device may redefine the 16-byte Device UUID in table 1 as a unique identifier of the Device.
TABLE 1
Figure BDA0003667396930000061
As an alternative example, a 16-byte Device UUID may be redefined as described in table 2 below, where a company id is used to indicate the vendor identification of the Device, a manufacturer id may be uniquely identified, a product id is used to indicate the model identification of the Device, and a MAC is used to indicate the media access control address of the Device.
TABLE 2
Figure BDA0003667396930000071
As an alternative example, the broadcast packet may be the message after redefining the Device UUID in the BLE MESH protocol.
Step S204: under the condition that the broadcast data packet is a data packet directly received from the device to be networked, analyzing the broadcast data packet, and determining field content of a first field of a device identification field in the broadcast data packet, wherein the device identification field at least comprises: the first field; the first field is used for representing a manufacturer identifier corresponding to the equipment to be accessed to the network;
step S206: and determining whether the manufacturer of the equipment to be accessed to the network is a target manufacturer according to the field content of the first field so as to determine whether the equipment to be accessed to the network is the equipment allowed to be configured by the mobile terminal.
It can be understood that, after acquiring the broadcast data packet sent by the device to be networked, the mobile terminal needs to parse the broadcast data packet, determine a first field (equivalent to the company id field) of the device identification field in the broadcast data packet, and acquire field content corresponding to the first field. And determining whether the equipment to be accessed to the network is the equipment which is allowed to be configured by the mobile terminal according to the field content of the first field, and determining the equipment to be accessed to the network to be the equipment which is allowed to be configured by the mobile terminal only under the condition that the equipment to be accessed to the network is determined to be the equipment of the target manufacturer.
As an alternative example, the step S206 may be implemented by: under the condition that the field content of the first field is a target character, determining that a manufacturer of the equipment to be accessed is a target manufacturer so as to determine that the equipment to be accessed is equipment which is allowed to be configured by the mobile terminal; and under the condition that the field content of the first field is not the target character, determining that the manufacturer of the equipment to be accessed is not the target manufacturer, so as to determine that the equipment to be accessed is not the equipment which is allowed to be configured by the mobile terminal.
For example, for the device of the vendor a, the field content of the first field of the device identification field in the broadcast data packet is 0x0102, that is, the device of the vendor a can indicate the vendor to which the device belongs through 0x0102 in the broadcast data packet, and after acquiring the device of the vendor a in the broadcast data packet, the mobile phone determines whether the vendor of the device is the device of the target vendor that needs to be configured by the mobile phone through the acquired 0x0102.
Through the steps, under the condition that the broadcast data packet sent by the equipment to be accessed is directly acquired, whether the manufacturer of the equipment to be accessed is a target manufacturer is determined through the field content of the first field of the equipment identification field obtained by analyzing the broadcast data packet, so that whether the equipment to be accessed is the equipment which is allowed to be configured by the mobile terminal is determined. The method and the device for network access can determine whether the manufacturer of the device to be networked is a target manufacturer or not through the field content of the first field of the device identification field in the broadcast data packet, and further determine whether the device to be networked is a device which is allowed to be configured by the mobile terminal or not, so that the problem that the mobile terminal cannot distinguish whether the device is a device which needs to be configured per se or not is solved.
As an optional example, after acquiring a broadcast data packet broadcast by a device to be networked, if it is determined that the broadcast data packet is a data packet broadcast by the device to be networked and forwarded by the device to be networked, the mobile terminal determines that a manufacturer of the device to be networked is a target manufacturer, so as to determine that the device to be networked is a device that the mobile terminal allows to configure.
It should be noted that the network-connected device may also monitor a broadcast channel, and further acquire a broadcast packet broadcasted by the network-to-be-connected device, and the network-to-be-connected device may also parse the broadcast packet, so as to determine field content of the first field of the device identification field, and further determine whether the field content is a target field to determine whether the network-to-be-connected device is a target manufacturer, and further determine whether the network-to-be-connected device is a device that needs to be configured by the mobile terminal, and if the network-connected device determines that the network-to-be-connected device is a device that needs to be configured by the mobile terminal, forward the acquired broadcast packet to the mobile terminal. Optionally, the networked device may join the network in a normal manner, or may join the network through a BLE MESH protocol.
When the mobile terminal determines that the broadcast data packet is a data packet forwarded by the network-connected device, the network-connected device verifies the broadcast data packet, so that the mobile terminal does not need to verify and directly determines that the device corresponding to the broadcast data packet is a device which needs to be configured. By adopting the technical scheme, the broadcast data packet is verified and forwarded by taking the network access equipment as the intermediate bridge, so that the mobile terminal can find farther equipment for configuration, and the verification times of the mobile terminal on the broadcast data packet can be reduced.
As an optional example, after the step S202 is executed, the following steps may be further executed:
step S11: analyzing the broadcast data packet, and determining field content of a second field of the device identification field, wherein the device identification field at least comprises: the first field and the second field; the second field is used for representing the model identification of the equipment to be accessed to the network;
step S12: acquiring the device multimedia information of the device to be networked from a cloud server according to the model identification corresponding to the field content of the second field;
as an alternative example, the step S12 may be implemented as follows:
acquiring device picture information of the device to be networked from a cloud server according to the model identification of the device to be networked; and/or acquiring the device name of the device to be networked from a cloud server according to the model identification of the device to be networked; and/or acquiring video introduction data of the equipment to be networked from a cloud server according to the model identification of the equipment to be networked; and/or acquiring audio introduction data of the equipment to be networked from a cloud server according to the model identification of the equipment to be networked; and/or acquiring the distribution network type of the equipment to be networked from a cloud server according to the model identification of the equipment to be networked; wherein the device multimedia information comprises: the device picture, and/or the device name, and/or the video introduction data, and/or the distribution network type.
It should be noted that the distribution network types include: MESH network MESH distribution network (such as BLE MESH distribution network), bluetooth distribution network and WIFI distribution network.
Step S13: and displaying the multimedia information of the equipment on a display interface of the mobile terminal.
As an optional example, if the mobile terminal acquires a broadcast data packet directly broadcast by the device to be networked, the data packet may be parsed, and then field contents of a first field and a second field (corresponding to the product id) are acquired at the same time, if the device to be networked is determined to be a device that needs to be configured by itself according to the field contents of the first field, then the device multimedia information of the device to be networked is acquired from the cloud server according to the model identifier corresponding to the field contents of the second field, and the device multimedia information is displayed on the display interface of the mobile terminal.
As an optional example, if the mobile terminal acquires a broadcast data packet directly broadcast by a device to be networked, the broadcast data packet may be parsed to further acquire field content of a first field, and if the device to be networked is determined to be a device that needs to be configured by itself through the field content of the first field, the broadcast data packet is parsed to acquire field content of a second field, and device multimedia information of the device to be networked is acquired from the cloud server through a model identifier corresponding to the field content of the second field, and the device multimedia information is displayed on a display interface of the mobile terminal.
As an optional example, if the mobile terminal acquires a broadcast data packet forwarded by the network access device, the data packet is directly analyzed, the field content of the second field of the device identification field is acquired, the device multimedia information of the device to be networked is acquired from the cloud server through the model identification corresponding to the field content of the second field, and the device multimedia information is displayed on the display interface of the mobile terminal.
In this embodiment, the relevant information of the device is acquired from the cloud server through the model identification of the device to be networked, and then displayed to the user, so that the user can check and guide the device, and the experience of the user is improved.
As an optional example, after the step S13 is executed, a control instruction issued by the target object may also be obtained; if the control instruction is a first instruction, adding the device to be accessed into a wireless mesh network, wherein the first instruction is an instruction sent by the target object when the target object determines that the type of the distribution network of the device to be accessed is the wireless mesh network distribution network through the device multimedia information; under the condition that the control instruction is a second instruction, performing distribution network operation on the equipment to be networked in a Bluetooth distribution network mode, wherein the second instruction is an instruction sent by the target object under the condition that the distribution network type of the equipment to be networked is determined to be a Bluetooth distribution network through the equipment multimedia information; and under the condition that the control instruction is a third instruction, carrying out distribution network operation on the equipment to be networked in a wireless fidelity (WIFI) distribution network mode, wherein the third instruction is an instruction sent by the target object under the condition that the distribution network type of the equipment to be networked is determined to be a WIFI distribution network through the equipment multimedia information.
It can be understood that the target object can view the distribution network mode supported by the device to be networked on the display interface of the mobile terminal, and then distribute the network for the device to be networked according to the supported distribution network mode. The wireless MESH network includes, but is not limited to, BLE MESH networks.
In an exemplary embodiment, if after a broadcast packet broadcasted by a device to be networked is acquired, the broadcast packet is analyzed under the condition that device multimedia information of the device to be networked acquired from a cloud server according to a model identifier of the device to be networked is not unique, and field content of a third field of the device identifier field is determined, where the device identifier field at least includes: a first field, a second field, and a third field; the third field is used for representing a Media Access Control (MAC) address of the device to be networked; and acquiring the multimedia information of the equipment to be networked from the cloud server according to the model identification of the equipment to be networked and the MAC address of the equipment to be networked.
That is to say, if there are a plurality of pieces of device multimedia information acquired by the mobile terminal from the cloud server according to the model identifier of the device to be networked, the broadcast packet may be further analyzed to acquire the field content of the third field (corresponding to the MAC).
As an optional example, in the device identification field, the first field is located before the second field, the second field is located before the third field, and the field content of the first field, the field content of the second field, and the field content of the third field are defined by a vendor of the device to be networked.
It is to be understood that the above-described embodiments are only a few, but not all, embodiments of the present invention. In order to better understand the interferometric method of the signal, the following describes the above process with reference to an embodiment, but the invention is not limited to the technical solution of the embodiment, specifically:
in an alternative embodiment, the table 1 shows a partial format of a data packet of the BLE MESH protocol, and a manufacturer of a Device may redefine a 16-byte Device UUID in the table 1 as a unique identifier of the Device, specifically, as shown in the table 2, where the company ID occupies 2 bytes and represents a manufacturer ID, and is fixed to 0x0102 for the manufacturer a. When the mobile terminal verifies the equipment of the manufacturer A, the equipment with the company ID not being 0x0102 is discarded. By the strategy, the performance of the equipment during discovery can be improved; the product ID occupies 8 bytes, represents a model identifier and is used for acquiring some information related to the equipment model from the cloud server to provide a user for checking; the MAC occupies 6 bytes for presentation of device information.
Fig. 3 is a timing diagram of a device configuration method according to an embodiment of the present invention, specifically, as shown in fig. 3:
step 1: the manufacturer redefines the 16-byte Device UUID in the broadcast data packet according to the method, and the Device to be accessed to the network broadcasts the Device;
step 2: the mobile terminal receives a broadcast data packet of a device to be accessed to the network;
and step 3: the mobile terminal analyzes fields in the broadcast data packet, judges that if the content of the company ID field is not equal to 0x0102, the mobile terminal is not the equipment to be configured, and directly discards the broadcast data packet;
and 4, step 4: the method comprises the steps that a network-accessed device (such as an accessed BLE MESH device) receives a broadcast data packet of a device to be accessed;
and 5: after the network-accessing equipment receives the broadcast data packet of the network-accessing equipment, analyzing fields in the broadcast data packet, if the content of the companyID field is not equal to 0x0102, considering that the network-accessing equipment is not equipment to be configured by the mobile terminal, and directly discarding the broadcast data packet;
step 6: if the content of the company ID field is equal to 0x0102, the network-accessed device forwards the broadcast data packet to the mobile terminal;
it should be noted that step 2 and step 6 are performed asynchronously.
And 7: the mobile terminal does not need to check the broadcast data packet forwarded by the network-connected device, and can be considered as a device to be configured by itself, and analyzes the broadcast data packet to obtain the product id, and obtains corresponding device information (equivalent to the device multimedia information in the above embodiment) from the cloud server according to the product id;
and 8: the cloud server returns the device information to the mobile terminal, and the device information includes but is not limited to: specifically, the cloud server returns the configuration information according to the configuration mode supported by the device side;
and step 9: after the mobile terminal acquires the equipment information, the equipment information is displayed to the user, and friendly user experience is achieved.
It should be noted that by deploying the product id and device information mapping in the cloud server, the embodiment of the present application enables the mobile terminal to display more information when acquiring limited information, thereby improving the experience of the user; through the characteristic that BLE Mesh is a broadcast protocol, the accessed network equipment forwards the broadcast data packet, so that the searching of BLE Mesh remote equipment is realized, the mobile terminal can find equipment at a longer distance, and the performance of finding equipment to be accessed is improved; through the characteristic that BLE Mesh is a broadcasting protocol, the accessed network equipment analyzes the broadcasting data packet, the filtering of the equipment to be accessed to the network is placed on the side of the accessed network equipment, and the frequency of analyzing the broadcasting data packet by the mobile terminal is reduced.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the method of the embodiments of the present invention.
In this embodiment, an apparatus configuration device is further provided, which is used to implement the foregoing embodiments and preferred embodiments, and details of the description already given are not repeated. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware or a combination of software and hardware are also possible and contemplated.
Fig. 4 is a block diagram (a) of a device configuration apparatus according to an embodiment of the present invention, the apparatus including:
an obtaining module 42, configured to obtain a broadcast data packet broadcasted by a device to be networked;
a first determining module 44, configured to, when the broadcast packet is a packet directly received from the device to be networked, parse the broadcast packet, and determine field content of a first field of a device identification field in the broadcast packet, where the device identification field at least includes: the first field; the first field is used for representing a manufacturer identifier corresponding to the equipment to be accessed to the network;
a second determining module 46, configured to determine, according to the field content of the first field, whether the vendor of the device to be networked is a target vendor, so as to determine whether the device to be networked is a device that is allowed to be configured by the mobile terminal.
By the aid of the device, under the condition that the broadcast data packet sent by the equipment to be accessed is directly acquired, whether a manufacturer of the equipment to be accessed is a target manufacturer is determined by analyzing field content of a first field of an equipment identification field obtained by the broadcast data packet, and whether the equipment to be accessed is equipment which is allowed to be configured by the mobile terminal is determined. The method and the device for network access can determine whether the manufacturer of the device to be networked is a target manufacturer or not through the field content of the first field of the device identification field in the broadcast data packet, and further determine whether the device to be networked is a device which is allowed to be configured by the mobile terminal or not, so that the problem that the mobile terminal cannot distinguish whether the device is a device which needs to be configured per se or not is solved.
As an optional example, the obtaining module 42 is further configured to determine, when the broadcast packet is a packet broadcasted by the device to be networked and forwarded by the device to be networked, that a vendor of the device to be networked is a target vendor, so as to determine that the device to be networked is a device allowed to be configured by the mobile terminal.
As an alternative example, fig. 5 is a block diagram (ii) of a device configuration apparatus according to an embodiment of the present invention, where the apparatus further includes: a processing module 48, configured to parse the broadcast packet, and determine field content of a second field of the device identification field, where the device identification field at least includes: the first field and the second field; the second field is used for representing the model identification of the equipment to be networked; acquiring the equipment multimedia information of the equipment to be networked from a cloud server according to the model identification corresponding to the field content of the second field; and displaying the multimedia information of the equipment on a display interface of the mobile terminal.
As an optional example, the processing module 48 is further configured to obtain device picture information of the device to be networked from a cloud server according to the model identifier of the device to be networked; and/or acquiring the device name of the device to be networked from a cloud server according to the model identification of the device to be networked; and/or acquiring video introduction data of the equipment to be networked from a cloud server according to the model identification of the equipment to be networked; and/or acquiring the distribution network type of the equipment to be networked from a cloud server according to the model identification of the equipment to be networked; wherein the device multimedia information comprises: the device picture, and/or the device name, and/or the video introduction data, and/or the distribution network type.
As an optional example, the processing module 48 is further configured to display the device multimedia information on a display interface of the mobile terminal, and obtain a control instruction issued by the target object; if the control instruction is a first instruction, adding the device to be accessed into a wireless mesh network, wherein the first instruction is an instruction sent by the target object when the target object determines that the type of the distribution network of the device to be accessed is the wireless mesh network distribution network through the device multimedia information; under the condition that the control instruction is a second instruction, performing distribution network operation on the equipment to be networked in a Bluetooth distribution network mode, wherein the second instruction is an instruction sent by the target object under the condition that the distribution network type of the equipment to be networked is determined to be a Bluetooth distribution network through the equipment multimedia information; and under the condition that the control instruction is a third instruction, carrying out distribution network operation on the equipment to be networked in a wireless fidelity (WIFI) distribution network mode, wherein the third instruction is an instruction sent by the target object under the condition that the distribution network type of the equipment to be networked is determined to be a WIFI distribution network through the equipment multimedia information.
As an optional example, the processing module 48 is further configured to, after acquiring a broadcast packet broadcasted by a device to be networked, in a case that device multimedia information of the device to be networked acquired from a cloud server according to a model identifier of the device to be networked is not unique, parse the broadcast packet, and determine field content of a third field of the device identifier field, where the device identifier field at least includes: a first field, a second field, and a third field; the third field is used for representing a Media Access Control (MAC) address of the device to be networked; and acquiring the equipment multimedia information of the equipment to be networked from the cloud server according to the model identification of the equipment to be networked and the MAC address of the equipment to be networked.
As an optional example, in the device identification field, the first field is located before the second field, the second field is located before the third field, and the field content of the first field, the field content of the second field, and the field content of the third field are defined by a vendor of the device to be networked.
As an optional example, the second determining module 46 is further configured to determine, when the field content of the first field is a target character, that the vendor of the device to be networked is a target vendor, so as to determine that the device to be networked is a device that is allowed to be configured by the mobile terminal; and under the condition that the field content of the first field is not the target character, determining that the manufacturer of the equipment to be accessed is not the target manufacturer, so as to determine that the equipment to be accessed is not the equipment which is allowed to be configured by the mobile terminal.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring a broadcast data packet broadcasted by a device to be accessed to a network;
s2, under the condition that the broadcast data packet is directly received from the device to be networked, analyzing the broadcast data packet, and determining the field content of a first field of a device identification field in the broadcast data packet, wherein the device identification field at least comprises: the first field; the first field is used for representing a manufacturer identifier corresponding to the equipment to be accessed to the network;
and S3, determining whether the manufacturer of the equipment to be accessed to the network is a target manufacturer according to the field content of the first field so as to determine whether the equipment to be accessed to the network is the equipment which is allowed to be configured by the mobile terminal.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
Embodiments of the present invention further provide an electronic device, comprising a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring a broadcast data packet broadcasted by a device to be accessed to a network;
s2, under the condition that the broadcast data packet is directly received from the device to be networked, analyzing the broadcast data packet, and determining the field content of a first field of a device identification field in the broadcast data packet, wherein the device identification field at least comprises: the first field; the first field is used for representing a manufacturer identifier corresponding to the equipment to be accessed to the network;
and S3, determining whether the manufacturer of the equipment to be accessed is a target manufacturer according to the field content of the first field so as to determine whether the equipment to be accessed is the equipment allowed to be configured by the mobile terminal.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented in a general purpose computing device, they may be centralized in a single computing device or distributed across a network of multiple computing devices, and they may be implemented in program code that is executable by a computing device, such that they may be stored in a memory device and executed by a computing device, and in some cases, the steps shown or described may be executed in an order different from that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps therein may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is only a preferred embodiment of the present application and it should be noted that, as will be apparent to those skilled in the art, numerous modifications and adaptations can be made without departing from the principles of the present application and such modifications and adaptations are intended to be considered within the scope of the present application.

Claims (10)

1. A device configuration method, comprising:
acquiring a broadcast data packet broadcasted by a device to be accessed to a network;
under the condition that the broadcast data packet is a data packet directly received from the device to be networked, analyzing the broadcast data packet, and determining the field content of a first field of a device identification field in the broadcast data packet, wherein the device identification field at least comprises: the first field; the first field is used for representing a manufacturer identifier corresponding to the equipment to be accessed to the network;
and determining whether the manufacturer of the equipment to be accessed to the network is a target manufacturer according to the field content of the first field so as to determine whether the equipment to be accessed to the network is the equipment which is allowed to be configured by the mobile terminal.
2. The method of claim 1, wherein after acquiring the broadcast packet broadcasted by the device to be networked, the method further comprises:
and under the condition that the broadcast data packet is the data packet which is transmitted by the network access equipment and is broadcast by the network access equipment, determining that the manufacturer of the network access equipment is a target manufacturer so as to determine that the network access equipment is the equipment which is allowed to be configured by the mobile terminal.
3. The method according to claim 1, wherein after acquiring the broadcast packet broadcasted by the device to be networked, the method further comprises:
analyzing the broadcast data packet, and determining the field content of a second field of the equipment identification field, wherein the equipment identification field at least comprises: the first field and the second field; the second field is used for representing the model identification of the equipment to be accessed to the network;
acquiring the device multimedia information of the device to be networked from a cloud server according to the model identification corresponding to the field content of the second field;
and displaying the multimedia information of the equipment on a display interface of the mobile terminal.
4. The method according to claim 3, wherein obtaining the device multimedia information of the device to be networked from a cloud server according to the model identifier corresponding to the field content of the second field comprises:
acquiring device picture information of the device to be networked from a cloud server according to the model identification of the device to be networked; and/or
Acquiring the equipment name of the equipment to be networked from a cloud server according to the model identification of the equipment to be networked; and/or
Acquiring video introduction data of the equipment to be networked from a cloud server according to the model identification of the equipment to be networked; and/or
Acquiring the distribution network type of the equipment to be networked from a cloud server according to the model identification of the equipment to be networked; wherein the device multimedia information comprises: the device picture, and/or the device name, and/or the video introduction data, and/or the distribution network type.
5. The method according to claim 3, wherein the device multimedia information is displayed behind a display interface of the mobile terminal, and the method comprises:
acquiring a control instruction issued by a target object;
adding the device to be accessed into a wireless mesh network under the condition that the control instruction is a first instruction, wherein the first instruction is an instruction sent by the target object under the condition that the target object determines that the type of a distribution network of the device to be accessed is a wireless mesh network distribution network through the device multimedia information;
under the condition that the control instruction is a second instruction, performing distribution network operation on the equipment to be networked in a Bluetooth distribution network mode, wherein the second instruction is an instruction sent by the target object under the condition that the distribution network type of the equipment to be networked is determined to be a Bluetooth distribution network through the equipment multimedia information;
and under the condition that the control instruction is a third instruction, carrying out distribution network operation on the equipment to be networked in a wireless fidelity (WIFI) distribution network mode, wherein the third instruction is an instruction sent by the target object under the condition that the distribution network type of the equipment to be networked is determined to be a WIFI distribution network through the equipment multimedia information.
6. The method according to any one of claims 1 to 3, wherein after acquiring the broadcast data packet broadcast by the device to be networked, the method further comprises:
under the condition that the device multimedia information of the device to be networked, which is acquired from a cloud server according to the model identification of the device to be networked, is not unique, analyzing the broadcast data packet, and determining the field content of a third field of the device identification field, wherein the device identification field at least comprises: a first field, a second field, and a third field; the third field is used for representing a Media Access Control (MAC) address of the device to be networked;
and acquiring the multimedia information of the equipment to be networked from the cloud server according to the model identification of the equipment to be networked and the MAC address of the equipment to be networked.
7. The method according to claim 6, wherein in the device identification field, the first field is located before the second field, the second field is located before the third field, and the field content of the first field, the field content of the second field, and the field content of the third field are defined by a vendor of the device to be networked.
8. An apparatus configuration device, comprising:
the acquisition module is used for acquiring a broadcast data packet broadcasted by the equipment to be accessed to the network;
a first determining module, configured to, when the broadcast packet is a packet directly received from the device to be networked, parse the broadcast packet, and determine field content of a first field of a device identification field in the broadcast packet, where the device identification field at least includes: the first field; the first field is used for representing a manufacturer identifier corresponding to the equipment to be accessed to the network;
and the second determining module is used for determining whether the manufacturer of the equipment to be accessed is a target manufacturer according to the field content of the first field so as to determine whether the equipment to be accessed is the equipment allowed to be configured by the mobile terminal.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202210590994.1A 2022-05-27 2022-05-27 Device configuration method and apparatus, storage medium, and electronic apparatus Pending CN115174656A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210590994.1A CN115174656A (en) 2022-05-27 2022-05-27 Device configuration method and apparatus, storage medium, and electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210590994.1A CN115174656A (en) 2022-05-27 2022-05-27 Device configuration method and apparatus, storage medium, and electronic apparatus

Publications (1)

Publication Number Publication Date
CN115174656A true CN115174656A (en) 2022-10-11

Family

ID=83484257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210590994.1A Pending CN115174656A (en) 2022-05-27 2022-05-27 Device configuration method and apparatus, storage medium, and electronic apparatus

Country Status (1)

Country Link
CN (1) CN115174656A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111065090A (en) * 2019-12-25 2020-04-24 普联技术有限公司 Method for establishing network connection and wireless routing equipment
CN112202652A (en) * 2020-09-17 2021-01-08 海尔优家智能科技(北京)有限公司 Method and device for displaying information of equipment to be networked, storage medium and electronic device
CN112492611A (en) * 2020-11-30 2021-03-12 美的智慧家居科技有限公司 Network configuration method, network configuration device, electronic equipment and readable storage medium
CN113099440A (en) * 2019-12-23 2021-07-09 阿里巴巴集团控股有限公司 Network configuration method, device, equipment and system
CN113596089A (en) * 2021-06-25 2021-11-02 青岛海尔科技有限公司 Distribution network binding method and device of equipment, storage medium and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113099440A (en) * 2019-12-23 2021-07-09 阿里巴巴集团控股有限公司 Network configuration method, device, equipment and system
CN111065090A (en) * 2019-12-25 2020-04-24 普联技术有限公司 Method for establishing network connection and wireless routing equipment
CN112202652A (en) * 2020-09-17 2021-01-08 海尔优家智能科技(北京)有限公司 Method and device for displaying information of equipment to be networked, storage medium and electronic device
CN112492611A (en) * 2020-11-30 2021-03-12 美的智慧家居科技有限公司 Network configuration method, network configuration device, electronic equipment and readable storage medium
CN113596089A (en) * 2021-06-25 2021-11-02 青岛海尔科技有限公司 Distribution network binding method and device of equipment, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN110505508B (en) Method and device for displaying state information in smart home operating system
CN111741509A (en) Network distribution method and device, storage medium and processor
CN115167164A (en) Method and device for determining equipment scene, storage medium and electronic device
CN113824617A (en) Network distribution method, storage medium, household appliance and cloud server
CN115174656A (en) Device configuration method and apparatus, storage medium, and electronic apparatus
CN116614858A (en) Data transmission method and device, storage medium and electronic equipment
CN115174512A (en) Message pushing method and device, storage medium and electronic device
CN115356937A (en) Device control method, device, storage medium, and electronic apparatus
CN115687806A (en) Method and device for determining target equipment list, storage medium and electronic device
CN115345225A (en) Method and device for determining recommended scene, storage medium and electronic device
CN115499333A (en) Method, system, storage medium and electronic device for determining association relationship
CN115048392A (en) Data deletion method and device, storage medium and electronic device
CN114864047A (en) Recipe recommendation method, storage medium and electronic device
CN108322812B (en) Multi-screen interaction method and device and terminal
CN115296947B (en) Control command response method and device, storage medium and electronic device
CN115484116B (en) Processing method and device of equipment data, storage medium and electronic device
CN115167163A (en) Scene execution method and device, storage medium and electronic device
CN115314503A (en) Data transmission method and device, storage medium and electronic device
CN115297353A (en) Audio playing method and device, storage medium and electronic device
CN115297352A (en) Video continuous playing method and device, storage medium and electronic device
CN115314333A (en) Data sharing method and device, storage medium and electronic device
CN114697345A (en) Information updating method, information updating device, storage medium and electronic device
CN115174296A (en) Equipment function access method, device, storage medium and electronic device
CN115695586A (en) Login processing method, device and system
CN114885315A (en) Equipment binding method and device, storage medium and electronic device

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