WO2019165704A1 - 智能家电网关设备的数据处理方法、装置及智能家电网关 - Google Patents

智能家电网关设备的数据处理方法、装置及智能家电网关 Download PDF

Info

Publication number
WO2019165704A1
WO2019165704A1 PCT/CN2018/085160 CN2018085160W WO2019165704A1 WO 2019165704 A1 WO2019165704 A1 WO 2019165704A1 CN 2018085160 W CN2018085160 W CN 2018085160W WO 2019165704 A1 WO2019165704 A1 WO 2019165704A1
Authority
WO
WIPO (PCT)
Prior art keywords
smart home
home appliance
communication protocol
information
variable
Prior art date
Application number
PCT/CN2018/085160
Other languages
English (en)
French (fr)
Inventor
汪军
方桦
区健强
Original Assignee
广东瑞德智能科技股份有限公司
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 广东瑞德智能科技股份有限公司 filed Critical 广东瑞德智能科技股份有限公司
Publication of WO2019165704A1 publication Critical patent/WO2019165704A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2291User-Defined Types; Storage management thereof

Definitions

  • the present invention relates to the field of smart home appliances, and in particular to a data processing method and device for a smart home appliance gateway device and a smart home appliance gateway.
  • smart homes have entered thousands of households, integrating multiple smart homes into smart home systems for ease of use.
  • devices that need to be integrated in the smart home system, and the communication methods and communication protocols used by the devices are not completely consistent.
  • the smart gateway as a smart home control center consumes a lot of time for each new device.
  • the current smart gateway needs to write a lot of repetitive code, such as the communication processing process of the device, the data interpretation of the device, the linkage processing of the device, and the state processing of the device, etc., which often need to be increased. Or there are many places to modify the code, which leads to the disorder of the program structure, which is not conducive to the later expansion and maintenance, the reusability and portability of the program code are poor, and there are problems such as inefficiency and waste of memory resources.
  • a data processing method for a smart home appliance gateway device comprising the following steps:
  • each function attribute variable is classified to obtain a plurality of function attribute classification sets;
  • the function attribute variables are variables defined according to common attributes of each smart home appliance
  • the functional attribute structure is encapsulated to obtain a data general model of the smart home appliance gateway device.
  • each functional attribute structure includes any combination of the following structures: a device status structure, a device information structure, a device registry item structure, or a device communication protocol registry item structure;
  • the data common model of the smart home appliance gateway device is a device structure
  • the method further includes the steps of:
  • the device structure of the smart home appliance to be added is instantiated, and the device structure variable corresponding to each device structure body is obtained;
  • the step of adding each device structure variable to the device list includes:
  • each functional attribute structure variable includes any combination of the following variables: device status structure variable, device information structure variable, device registry item structure variable, and device communication protocol registry item structure variable. ;
  • Each function attribute structure variable is assigned a value, and the steps of adding the device list include:
  • the first enumeration amount is the type information of the smart home appliance to be added; the second The amount of communication protocol information of the smart home appliance to be added;
  • Instantiating a device communication protocol registry key structure variable generating a device communication protocol operation function set of the smart home appliance to be added, and establishing a device communication protocol operation function of the device communication protocol operation function set.
  • the method further includes the steps of:
  • a new device network access method for a data processing method of a smart home appliance gateway device includes the following steps:
  • the device structure variable that matches the device type information and the device communication protocol information is found in the device list, and the network access step of the new device is completed, including:
  • a data processing device for a smart home appliance gateway device comprising:
  • a classification module configured to classify each functional attribute variable according to a data information type of the function attribute variable, to obtain a plurality of functional attribute classification sets;
  • the function attribute variable is a variable defined according to a common attribute of each smart home appliance;
  • a definition module configured to classify the set according to the function attribute, and define a function attribute structure corresponding to the function attribute classification set;
  • the encapsulation module is used to encapsulate each functional attribute structure, and obtain a data universal model of the smart home appliance gateway device.
  • a new device network access device including:
  • an information module configured to acquire device type information of a new device to be matched, and communication protocol information to be matched;
  • a first matching module configured to perform matching in the device registration list according to the device type information to be matched, to obtain device type information of the new device
  • a second matching module configured to perform matching in the device communication protocol registration list according to the communication protocol information to be matched, to obtain device communication protocol information of the new device
  • a link module configured to link to the device list according to device type information and device communication protocol information
  • the network access module is configured to search for a device structure variable that matches the device type information and the device communication protocol information in the device list, and complete the network entry of the new device;
  • the network access module further includes:
  • a calling unit for calling an initialization function of a device structure variable
  • An initialization unit for initializing a new device according to an initialization function for initializing a new device according to an initialization function.
  • a smart home appliance gateway includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the new device network access method of the data processing method of the smart home appliance gateway device can be implemented.
  • the data processing method and device of the smart home appliance gateway device and the smart home appliance gateway are classified according to functional attribute variables of several types of smart home appliances, define a functional attribute structure corresponding to the functional attribute classification set, and encapsulate each functional attribute structure. , build a general data model of smart home appliance gateway equipment. Furthermore, the flexibility and versatility of the software framework of the smart home gateway device network access program can be improved, and the redundancy of the program can be reduced, so that the smart home appliance gateway device based on the program software framework can be efficiently completed when adding a new device.
  • FIG. 1 is a schematic flowchart of a data processing method of a smart home appliance gateway device in an embodiment
  • FIG. 2 is a schematic flowchart of a data processing method of a smart home appliance gateway device in an embodiment
  • FIG. 3 is a schematic flowchart of a step of adding a device list to a data processing method of a smart home appliance gateway device in an embodiment
  • FIG. 4 is a schematic diagram of a device registry and a device communication protocol registry of a data processing method of a smart home appliance gateway device in an embodiment
  • FIG. 5 is a schematic flowchart of a method for networking a new device in another embodiment
  • FIG. 6 is a schematic flow chart of adding a new device to a smart home appliance gateway in another embodiment
  • FIG. 7 is a structural block diagram of a data processing apparatus of a smart home appliance gateway device in another embodiment
  • FIG. 8 is a structural block diagram of a device for accessing a new device in another embodiment
  • Figure 9 is a block diagram showing the structure of a computer device in another embodiment.
  • a data processing method for a smart home appliance gateway device including the following steps:
  • Step S110 classify each function attribute variable according to the data information type of the function attribute variable, and obtain a plurality of function attribute classification sets; the function attribute variable is a variable defined according to a common attribute of each smart home appliance.
  • the common attributes of each smart home appliance may be, for example, a device ID, a communication protocol ID, a device type, a device name, a communication protocol type, a communication mode type, device private data, and a common function operation.
  • Different functional attribute variables represent different functional attributes, so different functional attribute variables have different types of data information.
  • Each functional attribute variable is classified, and a functional attribute variable that can collectively represent a certain feature of the smart household electrical device is combined, thereby obtaining a plurality of functional attribute classification sets.
  • Step S120 Define a functional attribute structure corresponding to the functional attribute classification set according to the functional attribute classification set.
  • each functional attribute classification set is defined, wherein the defined functional attribute structure name can be named according to requirements.
  • the invention combines and classifies each functional attribute variable and defines it as a structure, which is convenient for calling when adding a new device without writing repetitive code.
  • Step S130 Encapsulating each functional attribute structure to obtain a data universal model of the smart home appliance gateway device.
  • each functional attribute structure is encapsulated, and a functional attribute structure suitable for a plurality of smart home appliances is integrated into a general program architecture, that is, a data general model of the smart home appliance gateway device is obtained, as a general model for creating a device object.
  • a data general model of the smart home appliance gateway device is obtained, as a general model for creating a device object.
  • the data general model can be invoked, and the corresponding data attribute variable in the generalized model of the instantiated data can be modified according to the function attribute parameter of the smart home appliance to be added, and the function attribute variable can be quickly completed.
  • the addition of smart home appliances completes the support of smart home appliance gateway devices for smart home appliances.
  • the invention classifies functional attribute variables of several types of smart home appliances, defines functional attribute structures corresponding to the functional attribute classification sets, and encapsulates each functional attribute structure to construct a data universal model of the smart home appliance gateway device. Furthermore, the flexibility and versatility of the software framework of the smart home gateway device network access program can be improved, and the redundancy of the program can be reduced, so that the smart home appliance gateway device based on the program software framework can be efficiently completed when adding a new device.
  • each functional attribute structure includes any combination of the following structures: a device status structure, a device information structure, a device registry item structure, and a device communication protocol registry key structure.
  • the device state structure includes a variable character array, a command length, and a function attribute variable such as an offline flag, wherein the variable character array represents each parameter of the corresponding smart home appliance in the current running state.
  • the device state structure body name can be defined as struct device_status.
  • the device information structure includes function attribute variables such as a device type, a device name, a device protocol type, and an identification (identity), that is, a device identity code.
  • the device information structure name can be defined as struct device_config.
  • the device registry key structure is an element in the device registration list, and each instantiated device registry item structure corresponds to one element in the device registration list, and each element represents a smart home device type information.
  • the device registry key structure name can be defined as struct device_table_item.
  • the device communication protocol registry entry structure is an element in the device communication protocol registration list, and each instantiated device communication protocol registry entry structure corresponds to one of the elements in the device communication protocol registration list, and each element represents a type The type of communication protocol for smart home appliances.
  • the device registration list is a database that stores the types of smart appliances and setting information that can be supported.
  • the device communication protocol registry entry structure name may be defined as struct protocol_table_item.
  • the device communication protocol registration list is a database that stores communication protocol types and communication settings of smart home appliances that can be supported.
  • the device registry entry structure includes function attribute variables indicating a device type, a device interface, and a device default name.
  • the function attribute variable of the device interface may be a structure nested in the device registry item structure.
  • the structure name may be defined as a struct device_interface, and includes a device protocol type and a device common operation set. , the variable of the device private operation collection.
  • the device private operation set is a personalized operation set of the smart home appliance, and can be modified in the device private operation set according to the personalized function attribute of the smart home appliance to be added, thereby implementing the function operation of the smart home appliance to be added.
  • the operation set may be defined as a struct device_operation, and may include a function operation function such as a device initialization function, a device resource release function, a timing callback function, a data conversion, and a command conversion.
  • the device communication protocol registry entry structure includes variables representing device protocol types, device protocol common operation sets, and device protocol private operation sets.
  • the device common operation set may include an operation function such as a timing callback function, a data sending function, a device query function, a device control, and a device parameter configuration, and is a structure nested in a device communication protocol registry item structure,
  • the structure name can be defined as struct protocol_operation.
  • the device communication protocol private operation set is a personalized communication protocol operation set of the smart home appliance to be added, and can be modified in the device communication protocol private operation set according to the personalized communication protocol of the smart home appliance to be added.
  • the communication mode of a smart home appliance to be added is RS485, so modify or add operation functions such as serial port initialization, receive byte processing, receive completion frame processing, and clear buffer in the private communication protocol operation set to implement RS485 communication.
  • the device communication protocol private operation set is a structure nested in the device communication protocol registry item structure. Based on the RS584 communication mode, the structure name of the device communication protocol private operation set may be defined as struct rs485_prot_operation.
  • the function attribute structure may be a device status structure, a device information structure, a device registry item structure or a device communication protocol registry item structure, and several types of smart home appliances are
  • the common function attributes are classified and integrated, and the data set that is easy to call is constructed, which improves the simplicity and flexibility of the development program, and makes it easy to call each structure when adding a new device.
  • the data common model of the smart home appliance gateway device is a device structure.
  • the data universal model of the smart home appliance gateway device is a device structure body, and may include one or any combination of a device state structure body, a device information structure body, a device registry key structure body, and a device communication protocol registry key structure.
  • the structure name of the device structure can be defined as struct device_info.
  • the method further includes the steps of:
  • Step S250 Instantiate a device structure of a plurality of smart home appliances to be added according to a data general model of the smart home appliance gateway device, and obtain a device structure variable corresponding to each device structure.
  • the device structure is instantiated, and the device structure variable is declared according to the device structure, and then the device structure variable corresponding to each device structure is obtained, that is, the smart home device object to be added is constructed.
  • the device structure variable is declared according to the device structure, and then the device structure variable corresponding to each device structure is obtained, that is, the smart home device object to be added is constructed.
  • Step S260 Add each device structure variable to the device list.
  • the device structure variable is an example of a smart home appliance
  • the device list is a database that stores parameter information of each smart home appliance that has been added to the smart home appliance gateway device.
  • the smart home appliance gateway device of the present invention corresponds to the management and control of the smart home appliance, and performs operations based on the device list, such as adding a device, deleting a device, acquiring device information, and traversing a device list.
  • the device list name can be defined as device_list.
  • the data processing method of the smart home appliance gateway device of the present invention utilizes each device structure variable to facilitate calling the data model in the device structure, and can effectively implement various functional attributes of the smart home appliance to be added, which is flexible and efficient.
  • the data universal model set by the smart home appliance gateway is a device structure body, and each functional attribute structure body variable is encapsulated into a data model suitable for smart home appliances to access the network, thereby further reducing program redundancy and enhancing program portability and flexibility. Sexuality increases the efficiency of adding new devices.
  • the steps of adding each device structure variable to the device list include:
  • Step S310 Acquire each functional attribute structure corresponding to the device structure variable according to each device structure variable.
  • the smart home appliances to be added may be devices of different types, and different device devices may have different functional attributes.
  • the functional attribute structure including the common features of several types of smart home appliances further, the smart home appliance to be added may be, but is not limited to, including some or all of the common features, and therefore, respectively According to each device structure variable, each functional attribute structure corresponding to the device structure is acquired.
  • Step S320 Instantiate each functional attribute structure body, and obtain a function attribute structure body variable corresponding to each function attribute structure body.
  • the function attribute structure body is instantiated, which is a process of declaring a function attribute structure body variable, that is, constructing a function attribute object of the smart home appliance to be added. Further, the data model in the function attribute structure can be called, and the corresponding variable in the instantiated function attribute structure is modified according to the function attribute parameter of the smart home appliance to be added, and the functions of the smart home appliance to be added are realized.
  • Step S330 assigning a value to each function attribute structure variable to complete the addition of the device list.
  • the member can be obtained based on the function attribute structure, and each member is assigned a value, that is, the function attribute parameter corresponding to the smart home appliance to be added is assigned, and the corresponding attribute is obtained.
  • the device structure variable of the smart home appliance to be added completes the addition of the device list.
  • the data processing method of the smart home appliance gateway device of the present invention instantiates the corresponding functional attribute structures according to the functional data attribute of the smart home appliance to be added based on the built-up data common data model, that is, the device structure body, and the obtained
  • the assignment of each function attribute structure variable completes the addition of the device list. Therefore, the support of the smart home appliance to be added can be quickly and flexibly completed in the smart home appliance gateway device, so that the new device can be accessed.
  • each functional attribute structure variable includes any combination of the following variables: device status structure variable, device information structure variable, device registry item structure variable, or device communication protocol registry item structure variable.
  • Each function attribute structure variable is assigned a value, and the steps of adding the device list include:
  • Instantiating the device information structure variable obtaining the member of the device information structure, respectively defining the first enumeration amount and the second enumeration according to the member; the first enumeration amount is the type information of the smart home appliance to be added; the second The amount is the communication protocol information of the smart home appliance to be added.
  • the first enumeration name may be, but not limited to, enum DEVICE_TYPE, indicating a device supported by the smart home appliance gateway device
  • the second enumeration name may be, but not limited to, enum PRPTOCOL_TYPE, indicating that the smart appliance gateway device supports letter of agreement.
  • the device state structure variable is instantiated, and the members of the device state structure are obtained, and the members are assigned according to the running state of the smart home appliance to be added.
  • the assignment is performed according to the operating state of the smart home appliance to be added, so that the addition of the new device is facilitated efficiently.
  • Instantiate the device registry key structure variable generate a device operation function set of the smart home appliance to be added, and establish each device operation function of the device operation function set.
  • the instantiated device registry key structure variable defines a structure variable that is the same as the device registry item structure type, and assigns a value to each member by acquiring a member in the device registry item structure variable.
  • the device registry key structure may include a device type, a device interface function attribute variable, and may also include a device common operation set and a function attribute variable of the device private operation set.
  • the operation function of each device is modified correspondingly to implement the corresponding functional attributes of the smart home appliance to be added.
  • Instantiating a device communication protocol registry key structure variable generating a device communication protocol operation function set of the smart home appliance to be added, and establishing a device communication protocol operation function of the device communication protocol operation function set.
  • the instantiating device communication protocol registry key structure variable is a structural variable that defines the same type of the device communication protocol registry key structure, and obtains a member of the device communication protocol registry key structure variable, Each member is assigned a value.
  • the device communication protocol entry structure may include a device protocol type, a device operation protocol common operation set, and a device attribute protocol private operation set function attribute variable.
  • the communication protocol operation function of each device is modified correspondingly to implement the communication protocol function attribute of the corresponding smart home appliance to be added.
  • the data processing method of the smart home appliance gateway device of the present invention is based on a general data model of the smart home appliance, and according to the functional attribute of the smart home appliance to be added, the corresponding device information structure variable and the device state structure in the universal data model can be instantiated.
  • Variables, device registry key structure variables, and device registration communication protocol registry key structure variables and obtain members in each structure variable, assign values to each member according to the functional attributes of the smart home appliance to be added, and construct each The operation function quickly and efficiently realizes the support and configuration of the smart home appliance to be added by the smart home appliance gateway device.
  • the redundancy of the program can be reduced, so that when the new device is added in the smart home appliance gateway device, the program can be neat and orderly, and a large amount of repetitive code is avoided, and the portability and reusability of the running program are improved.
  • the method further includes the steps of:
  • Step 1 Add the device registry key structure variable to the device registration list.
  • the device registration list represents a device type supported by the smart home appliance gateway device, wherein each stored list element represents a device type, which is a device registry key structure variable.
  • the device registration list name can be defined as device_register_table.
  • Step 2 Add the device communication protocol registry key structure variable to the device communication protocol registration list.
  • the device communication protocol table list represents a communication protocol type supported by the smart home appliance gateway device, wherein each stored list element represents a communication protocol type, which is a device communication protocol entry structure.
  • the device communication protocol registration list name may be defined as protocol_register_table.
  • the smart home appliance gateway device of the present invention when the device structure corresponding to the smart home appliance to be added is added to the device list, the support and configuration of the smart home appliance to be added by the smart home appliance gateway device is completed. Add the device registry key structure to the device registration list, and add the device communication protocol registry key structure to the device communication protocol registration list, thereby enabling the device registration list and device to be added when adding a new device.
  • the data in the communication protocol registration list is quickly linked to the device list to match the corresponding smart home appliance data, and the network access process of the new device is effectively optimized.
  • each device registry key element is stored in the device registry, corresponding to the device registry key structure, and each element includes a device type of the smart home appliance to be added, and a common operation set of the device. And a collection of device private operations.
  • Each device communication protocol registry key element is stored in the device communication protocol registration list, corresponding to the device communication protocol registry key structure, each element includes a communication protocol type of the smart home appliance to be added, a common operation set of the device communication protocol, and a device. Communication protocol private operation set. Further, when a new device is added, the device registration list and the data in the device communication protocol registration list can be quickly linked to the device list to optimize the process of the new device entering the network.
  • the universal data model of the smart home appliance gateway device of the present invention may be a device structure, where the device structure may include a device communication protocol registry entry structure pointer and a device registry entry structure pointer.
  • the device communication protocol registry key structure pointer points to the device communication protocol table entry structure, and the device registry key structure is obtained by pointing to the device registry key structure pointer.
  • a new device network access method for a data processing method of a smart home appliance gateway device including the following steps:
  • Step S510 Acquire device type information of the new device to be matched and communication protocol information to be matched.
  • the new device may be a smart electric appliance such as a smart electric light, a curtain, a kitchen appliance, or a television.
  • the type information of the device to be matched may include a device model, a function attribute, a device name, and a device ID, and the communication protocol information to be matched may be a communication. Mode, communication protocol type, etc.
  • Step S520 Perform matching in the device registration list according to the device type information to be matched, and obtain device type information of the new device.
  • the device registration list stores the type and setting information of the smart home appliance that the smart home appliance gateway device can support. Therefore, when the network access signal of the new device is acquired, the device registration list is matched, and the device type information corresponding to the device type information of the new device to be matched can be quickly found.
  • Step S530 Perform matching in the device communication protocol registration list according to the communication protocol information to be matched, and obtain device communication protocol information of the new device.
  • the device communication protocol registration list stores the smart home appliance communication mode and the communication protocol type that the smart home appliance gateway device can support. Therefore, when the network access information of the new device is acquired, the device communication protocol registration list is matched, and the device communication protocol information corresponding to the communication protocol information of the new device to be matched can be quickly found.
  • Step S540 Link to the device list according to the device type information and the device communication protocol information.
  • the device list is a database storing parameter information of each smart home appliance that has been added to the smart home appliance gateway device.
  • the device type information and the device communication protocol information matched in the device registration list and the device communication protocol registration list are linked to the device list, and the data corresponding to the new device in the device list can be called.
  • Step S550 Search for a device structure variable that matches the device type information and the device communication protocol information in the device list, and complete the network access of the new device.
  • the data model in the device structure variable may be invoked, and the new device is initialized according to the functional attribute of the new device. Processing, complete the network access of new devices.
  • the new device network access method of the present invention can be based on the data general model of the smart home appliance, combined with the device registration list and the device communication protocol registration list, and quickly linked to the device list, according to the device information such as the function attribute of the new device, in the device list. Call the data in the corresponding device structure variable to complete the network access of the new device.
  • the invention optimizes the process of the smart home appliance gateway device corresponding to the new device entering the network, which is efficient and flexible.
  • the device structure variable that matches the device type information and the device communication protocol information is found in the device list, and the network access step of the new device is completed, including:
  • Step S1 calling an initialization function of the device structure variable
  • Step S2 Initialize a new device according to an initialization function.
  • the initialization function in the common device operation set in the device structure variable is called according to the function attribute of the new device in the device list, and the data in the device structure corresponding to the new device is initialized.
  • the smart home appliance gateway device initializes the new device object through the corresponding device structure to implement network access to the new device.
  • a smart curtain is taken as an example for description.
  • a new smart curtain is needed, and its model can be GM30.
  • the device information is not included in the original smart home appliance gateway device, and the compatibility of the smart home appliance gateway device is expanded in order to enable the smart home appliance gateway device to support the device.
  • the GM30 smart curtain is a multifunctional intelligent curtain and supports RS485 communication. Therefore, it is required to be embedded in the smart home appliance gateway device of the present invention. Based on the data universal model of the present invention, the following steps are performed:
  • Step 1 In the device information structure variable, define the enumeration amount of the GM30, such as the DEV_TYPE_GM30 enumeration indicating the device type, and the PROTO_TYPE_GM30 enumeration indicating the device communication protocol type.
  • Step 2 Define the device status structure of the GM30 (struct gm30_status), including the current operating status of the GM30, the opening and closing percentage, the opening and closing direction, and whether there is a device status function information such as a hand-drawn function.
  • the structure is used to record the current status of the GM30. Status value. Since the current state of the smart home appliance includes different parameters, the state command array of the GM30 needs to be converted into a device state structure by a forced conversion algorithm.
  • Step 3 Instantiate the device registry key structure variable, generate the GM30 device operation aggregate function, define the GM30_dev_operation global variable in the GM30 operation function, and establish the GM30 operation function, including initializing GM30_init, resource release GM30_cleanup, linkage detection GM30_check_linkage Timed callback GM30_timer, data interpretation GM30_dev2stat and command conversion GM30_stat2dev and other functions.
  • Step 4 Instantiate the device communication protocol registry key structure, generate a device communication protocol operation function set of the GM30, define a GM30_prot_operation global variable in the device communication protocol common operation set, and define a GM30_rs485_prot_operation global variable in the device communication protocol private operation set.
  • GM30 operation functions including timing callback (GM30_prot_timer), data transmission (GM30_prot_send), device query (GM30_prot_query), device control (GM30_prot_ctrl), device configuration (GM30_prot_config) and other functions in the common operation set of device communication protocol; including device communication Serial port initialization (GM30_rs485_prot_init) in the private operation set of the protocol, processing of receiving bytes (GM30_rs485_prot_recv_byte), processing of receiving complete frames (GM30_rs485_prot_recv_frame), buffer emptying (GM30_rs485_prot_clear) and other functions.
  • GM30_prot_timer timing callback
  • GM30_prot_send data transmission
  • GM30_prot_query device query
  • GM30_prot_ctrl device configuration
  • GM30_prot_config device configuration
  • Step 5 Add the definition of GM30 in the device registration list (device_register_table) and the device communication protocol registration list (protocol_register_table).
  • the code is as follows:
  • the smart home appliance gateway device has been supported for the GM30 smart curtains.
  • the network access procedure is as follows:
  • Step S610 Invoking the newly added device function corresponding to the GM30 provided by the device list, starting the newly added device program.
  • Step S620 Query the device registration list and match the device type of the GM30.
  • Step S630 Query the device communication protocol registration list to match the device communication protocol type of the GM30.
  • Step S640 The device type and device communication protocol type information of the GM30 are saved and linked to the device list.
  • Step S650 Initialize data corresponding to the GM 30 in the device list.
  • the new device access method of the data processing method of the smart home appliance gateway device of the invention can improve the flexibility and versatility of the software framework of the smart home appliance gateway device network access program, reduce the redundancy of the program, and make the smart home appliance gateway based on the program software framework Devices can do it efficiently when adding new devices.
  • FIGS. 1-6 may include a plurality of sub-steps or stages, which are not necessarily performed at the same time, but may be executed at different times, these sub-steps or stages The order of execution is not necessarily performed sequentially, but may be performed alternately or alternately with at least a portion of other steps or sub-steps or stages of other steps.
  • a data processing apparatus of a smart home appliance gateway device including a classification module 710, a definition module 720, and a packaging module 730.
  • the classification module 710 is configured to classify each function attribute variable according to the data information type of the function attribute variable to obtain a plurality of function attribute classification sets; the function attribute variable is a variable defined according to a common attribute of each smart home appliance.
  • the definition module 720 is configured to classify the set according to the function attribute, and define a function attribute structure corresponding to the function attribute classification set.
  • the encapsulation module 730 is configured to encapsulate each functional attribute structure to obtain a data universal model of the smart home appliance gateway device.
  • the invention classifies functional attribute variables of several types of smart home appliances, defines functional attribute structures corresponding to the functional attribute classification sets, and encapsulates each functional attribute structure to construct a data universal model of the smart home appliance gateway device. Furthermore, the flexibility and versatility of the software framework of the smart home gateway device network access program can be improved, and the redundancy of the program can be reduced, so that the smart home appliance gateway device based on the program software framework can be efficiently completed when adding a new device.
  • Each module in the data processing device of the smart home appliance gateway device described above may be implemented in whole or in part by software, hardware, and combinations thereof.
  • Each of the above modules may be embedded in or independent of the processor in the computer device, or may be stored in a memory in the computer device in a software form, so that the processor invokes the operations corresponding to the above modules.
  • a new device network access device including an acquisition information module 810, a first matching module 820, a second matching module 830, a link module 840, and a network access module 850.
  • the obtaining information module 810 is configured to acquire device type information to be matched and communication protocol information to be matched of the new device.
  • the first matching module 820 is configured to perform matching in the device registration list according to the device type information to be matched, and obtain device type information of the new device.
  • the second matching module 830 is configured to perform matching in the device communication protocol registration list according to the communication protocol information to be matched, to obtain device communication protocol information of the new device.
  • the linking module 840 is configured to link to the device list according to the device type information and the device communication protocol information.
  • the network access module 850 is configured to search for a device structure variable that matches the device type information and the device communication protocol information in the device list, and complete the network access of the new device.
  • the new device network access device of the present invention can combine the device registration list and the device communication protocol registration list based on the data universal model of the smart home appliance, and quickly link to the device list, according to the device information such as the function attribute of the new device, in the device list. Call the data in the corresponding device structure variable to complete the network access of the new device.
  • the invention optimizes the process of the smart home appliance gateway device corresponding to the new device entering the network, which is efficient and flexible.
  • the network access module 850 further includes:
  • the calling unit 852 is configured to invoke an initialization function of the device structure variable
  • the initializing unit 856 is configured to initialize a new device according to the initialization function.
  • the new device network access device of the present invention calls the initialization function in the common device operation set in the device structure variable according to the function attribute of the new device in the device list, and initializes the data in the device structure corresponding to the new device.
  • the smart home appliance gateway device initializes the new device object through the corresponding device structure to implement network access to the new device.
  • the various modules of the above-mentioned new device network access device can be implemented in whole or in part by software, hardware and a combination thereof.
  • Each of the above modules may be embedded in or independent of the processor in the computer device, or may be stored in a memory in the computer device in a software form, so that the processor invokes the operations corresponding to the above modules.
  • a computer device which may be a terminal, and its internal structure diagram may be as shown in FIG.
  • the computer device includes a processor, memory, network interface, display screen, and input device connected by a system bus.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium, an internal memory.
  • the non-volatile storage medium stores an operating system and a computer program.
  • the internal memory provides an environment for operation of an operating system and computer programs in a non-volatile storage medium.
  • the network interface of the computer device is used to communicate with an external terminal via a network connection.
  • the computer program is executed by the processor to implement a data processing method of the smart home appliance gateway device.
  • the display screen of the computer device may be a liquid crystal display or an electronic ink display screen
  • the input device of the computer device may be a touch layer covered on the display screen, or may be a button, a trackball or a touchpad provided on the computer device casing. It can also be an external keyboard, trackpad or mouse.
  • FIG. 9 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied.
  • the specific computer device may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
  • a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements steps in a data processing method of a smart home appliance gateway device.
  • a smart home appliance gateway including a memory and a processor, wherein the memory stores a computer program, and the new device network access method capable of realizing the data processing method of the smart home appliance gateway device when the computer program is executed by the processor Each step in the process.
  • the smart home appliance gateway of the present invention is a smart home appliance gateway corresponding to the data processing method of the smart home appliance gateway device of the present invention, thereby being able to combine the device registration list and the device communication protocol registration list based on the data general model of the smart home appliance, and quickly Link to the device list, according to the device information such as the function attribute of the new device, call the data in the corresponding device structure variable in the device list, and then complete the network access of the new device.
  • the invention optimizes the process of the smart home appliance gateway device corresponding to the new device entering the network, which is efficient and flexible.
  • a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements steps in a method of networking a new device.
  • Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • Synchlink DRAM SLDRAM
  • Memory Bus Radbus
  • RDRAM Direct RAM
  • DRAM Direct Memory Bus Dynamic RAM
  • RDRAM Memory Bus Dynamic RAM

Abstract

本申请涉及一种智能家电网关设备的数据处理方法、装置及智能家电网关,其中智能家电网关设备的数据处理方法包括:根据功能属性变量的数据信息类型,对各功能属性变量进行分类,得到若干功能属性分类集合;功能属性变量为根据各智能家电的共同属性定义的变量;根据功能属性分类集合,定义功能属性分类集合对应的功能属性结构体;封装各功能属性结构体,得到智能家电网关设备的数据通用模型。本发明能够提高智能家电网关设备入网程序软件框架的灵活性和通用性,减少程序的冗余度,使得基于该程序软件框架的智能家电网关设备在添加新设备时能够高效完成。

Description

智能家电网关设备的数据处理方法、装置及智能家电网关 技术领域
本申请涉及智能家电技术领域,特别是涉及一种智能家电网关设备的数据处理方法、装置及智能家电网关。
背景技术
随着智能家居行业的发展,智能家居已进入千家万户,为了使用方便,将多个智能家居集成为智能家居系统。但是智能家居系统中需要集成的设备种类繁多,而且设备所使用的通信方式以及通信协议不完全一致,导致作为智能家居控制中心的智能网关在每增加一款新设备时需消耗大量时间。
然而,目前的智能网关在添加新的智能家居设备时,需要大量的编写重复性的代码,如设备的通信处理过程、设备的数据解释、设备的联动处理以及设备的状态处理等,往往需要增加或者修改代码的地方较多,同时导致程序结构的杂乱无章,不利于后期扩展与维护,程序代码的重用性和可移植性差,存在效率低下,浪费内存资源等问题。
发明内容
基于此,有必要针对上述技术问题,提供一种高效、灵活的智能家电网关设备的数据处理方法、装置及智能家电网关。
一种智能家电网关设备的数据处理方法,所述方法包括以下步骤:
根据功能属性变量的数据信息类型,对各功能属性变量进行分类,得到若干功能属性分类集合;所述功能属性变量为根据各智能家电的共同属性定义的变量
根据功能属性分类集合,定义功能属性分类集合对应的功能属性结构体;
封装各功能属性结构体,得到智能家电网关设备的数据通用模型。
在其中一个实施例中,各功能属性结构体包括以下结构体的任意种组合:设备状态结构体、设备信息结构体、设备注册表项结构体或设备通信协议注册表项结构体;
在其中一个实施例中,智能家电网关设备的数据通用模型为设备结构体;
在封装各功能属性结构体,得到智能家电网关设备的数据通用模型的步骤之后,还包括步骤:
根据智能家电网关设备的数据通用模型,实例化若干待添加的智能家电的 设备结构体,得到各设备结构体对应的设备结构体变量;
将各设备结构体变量添加到设备列表中。
在其中一个实施例中,将各设备结构体变量添加到设备列表中的步骤包括:
分别根据各设备结构体变量,获取设备结构体变量对应的各功能属性结构体;
实例化各功能属性结构体,得到各功能属性结构体对应的功能属性结构体变量;
分别对各功能属性结构体变量进行赋值,完成设备列表的添加。
在其中一个实施例中,各功能属性结构体变量包括以下变量的任意种组合:设备状态结构体变量、设备信息结构体变量、设备注册表项结构体变量以及设备通信协议注册表项结构体变量;
分别对各功能属性结构体变量进行赋值,完成设备列表的添加的步骤包括:
实例化设备信息结构体变量,获取设备信息结构体的成员,根据成员分别定义第一枚举量以及第二枚举量;第一枚举量为待添加的智能家电的类型信息;第二枚举量为待添加的智能家电的通信协议信息;
和/或
实例化设备状态结构体变量,获取设备状态结构体的成员,根据待添加的智能家电的运行状态分别对成员进行赋值;
和/或
实例化设备注册表项结构体变量,生成待添加的智能家电的设备操作函数集合,并建立设备操作函数集合的各设备操作函数;
和/或
实例化设备通信协议注册表项结构体变量,生成待添加的智能家电的设备通信协议操作函数集合,并建立设备通信协议操作函数集合的各设备通信协议操作函数。
在其中一个实施例中,将各设备结构体变量添加到设备列表中的步骤之后,还包括步骤:
将设备注册表项结构体变量添加到设备注册列表;
将设备通信协议注册表项结构体变量添加到设备通信协议注册列表。
一种智能家电网关设备的数据处理方法的新设备入网方法,包括以下步骤:
获取新设备的待匹配设备类型信息以及待匹配通信协议信息;
根据待匹配设备类型信息,在设备注册列表中进行匹配,得到新设备的设备类型信息;
根据待匹配的通信协议信息,在设备通信协议注册列表中进行匹配,得到新设备的设备通信协议信息;
根据设备类型信息和设备通信协议信息,链接到设备列表;
在设备列表中查找分别与设备类型信息、设备通信协议信息匹配的设备结构体变量,完成新设备的入网;
其中,在设备列表中查找分别与设备类型信息、设备通信协议信息匹配的设备结构体变量,完成新设备的入网步骤,包括:
调用设备结构体变量的初始化函数;
根据初始化函数,初始化新设备。
一种智能家电网关设备的数据处理装置,包括:
分类模块,用于根据功能属性变量的数据信息类型,对各功能属性变量进行分类,得到若干个功能属性分类集合;功能属性变量为根据各智能家电的共同属性定义的变量;
定义模块,用于根据功能属性分类集合,定义功能属性分类集合对应的功能属性结构体;
封装模块,用于封装各功能属性结构体,得到智能家电网关设备的数据通用模型。
一种新设备入网装置,包括:
获取信息模块,用于获取新设备的待匹配设备类型信息以及待匹配通信协议信息;
第一匹配模块,用于根据待匹配设备类型信息,在设备注册列表中进行匹配,得到新设备的设备类型信息;
第二匹配模块,用于根据待匹配的通信协议信息,在设备通信协议注册列表中进行匹配,得到新设备的设备通信协议信息;
链接模块,用于根据设备类型信息和设备通信协议信息,链接到设备列表;
入网模块,用于在设备列表中查找分别与设备类型信息、设备通信协议信息匹配的设备结构体变量,完成新设备的入网;
其中,入网模块还包括:
调用单元,用于调用设备结构体变量的初始化函数;
初始化单元,用于根据初始化函数,初始化新设备。
一种智能家电网关,包括存储器和处理器,其中,存储器存储有计算机程序,计算机程序被处理器执行时能实现智能家电网关设备的数据处理方法的新设备入网方法中的各步骤。
上述技术方案中的一个技术方案具有如下优点和有益效果:
上述智能家电网关设备的数据处理方法、装置及智能家电网关,根据若干类型的智能家电的功能属性变量进行分类,定义功能属性分类集合对应的功能属性结构体,并对各功能属性结构体进行封装,搭建智能家电网关设备的数据通用模型。进而能够提高智能家电网关设备入网程序软件框架的灵活性和通用性,减少程序的冗余度,使得基于该程序软件框架的智能家电网关设备在添加新设备时能够高效完成。
附图说明
图1为一个实施例中智能家电网关设备的数据处理方法的流程示意图;
图2为一个实施例中智能家电网关设备的数据处理方法的具体流程示意图;
图3为一个实施例中智能家电网关设备的数据处理方法完成设备列表添加的步骤流程示意图;
图4为一个实施例中智能家电网关设备的数据处理方法的设备注册表和设备通信协议注册表示意图;
图5为另一个实施例中新设备入网方法的流程示意图;
图6为另一个实施例中在智能家电网关中添加新设备的流程示意图;
图7为另一个实施例中智能家电网关设备的数据处理装置的结构框图;
图8为另一个实施例中新设备入网装置的结构框图;
图9为另一个实施例中计算机设备的结构框图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
在一个实施例中,如图1所示,提供了一种智能家电网关设备的数据处理方法,包括以下步骤:
步骤S110:根据功能属性变量的数据信息类型,对各功能属性变量进行分类,得到若干功能属性分类集合;功能属性变量为根据各智能家电的共同属性定义的变量。
具体而言,各智能家电的共同属性,例如可以为设备ID、通信协议ID、设备类型、设备名称、通信协议类型、通信方式类型、设备私有数据以及常用功能操作等。不同的功能属性变量其表示的功能属性不同,因此,不同的功能属 性变量具有不同的数据信息类型。对各功能属性变量进行分类,组合能够共同表示智能家电设备某一特征的功能属性变量,进而得到若干功能属性分类集合。
步骤S120:根据功能属性分类集合,定义功能属性分类集合对应的功能属性结构体。
具体而言,根据上述步骤S110得到的分类集合,为每个功能属性分类集合进行定义,其中,定义的功能属性结构体名称可根据需求命名。
本发明将各功能属性变量分类组合,并定义为结构体,便于在添加新设备时进行调用,而无需编写重复性代码。
步骤S130:封装各功能属性结构体,得到智能家电网关设备的数据通用模型。
具体而言,将各功能属性结构体进行封装,将适用于多种智能家电的功能属性结构体整合为通用的程序架构,即得到智能家电网关设备的数据通用模型,作为创建设备对象的通用模型。在添加智能家电时,可调用该数据通用模型,通过实例化该数据通用模型,根据待添加的智能家电的功能属性参数,修改实例化后的数据通用模型中对应的功能属性变量,能够快速完成智能家电设备的添加,完成智能家电网关设备对智能家电的支持。
本发明根据若干类型的智能家电的功能属性变量进行分类,定义功能属性分类集合对应的功能属性结构体,并对各功能属性结构体进行封装,搭建智能家电网关设备的数据通用模型。进而能够提高智能家电网关设备入网程序软件框架的灵活性和通用性,减少程序的冗余,使得基于该程序软件框架的智能家电网关设备在添加新设备时能够高效完成。
在一个的实施例中,各功能属性结构体包括以下结构体的任意种组合:设备状态结构体、设备信息结构体、设备注册表项结构体以及设备通信协议注册表项结构体。
具体而言,设备状态结构体包括变量字符数组、命令长度以及离线标志等功能属性变量,其中,变量字符数组表示对应的智能家电在当前运行状态的各个参数。可选的,设备状态结构体名可以定义为struct device_status。设备信息结构体包括表示设备类型、设备名称、设备协议类型、变量设备ID(identification,identity),即设备身份标识码等功能属性变量。可选的,设备信息结构体名可以定义为struct device_config。设备注册表项结构体为设备注册列表中的元素,每个实例化的设备注册表项结构体对应为设备注册列表中的其中一个元素,每个元素代表一种智能家电设备类型信息。可选的,设备注册表项结构体名可以定义为struct device_table_item。设备通信协议注册表项结构体为设备通信协议注 册列表中的元素,每个实例化的设备通信协议注册表项结构体对应为设备通信协议注册列表中的其中一个元素,每个元素代表一种智能家电设备的通信协议类型。具体的,设备注册列表为存储所能够支持的智能家电类型和设置信息的数据库。可选的,设备通信协议注册表项结构体名可定义为struct protocol_table_item。设备通信协议注册列表为存储所能够支持的智能家电的通信协议类型和通信设置的数据库。
具体的,设备注册表项结构体包括表示设备类型、设备接口、设备默认名称等功能属性变量。进一步地,设备接口的功能属性变量可以为嵌套在设备注册表项结构体中的一个结构体,可选的,其结构体名可定义为struct device_interface,包含表示设备协议类型、设备常用操作集合、设备私有操作集合的变量。进一步地,设备私有操作集合为智能家电设备的个性化操作集合,可根据待添加智能家电的个性化功能属性,在设备私有操作集合中进行修改,进而实现待添加智能家电设备的功能操作。进一步地,操作集合可以定义为struct device_operation,可以包括设备初始化函数、设备资源释放函数、定时回调函数、数据转换以及命令转换等功能操作函数。
设备通信协议注册表项结构体包括表示设备协议类型、设备协议常用操作集合、设备协议私有操作集合的变量。进一步地,设备常用操作集合可以包括定时回调函数、数据发送函数、设备查询函数、设备控制以及设备参数配置等操作函数,为嵌套在设备通信协议注册表项结构体中的一结构体,其结构体名可定义为struct protocol_operation。设备通信协议私有操作集合为待添加的智能家电的个性化通信协议操作集合,可根据待添加的智能家电的个性化通信协议,在设备通信协议私有操作集合中进行修改。如,某一待添加的智能家电的通信方式为RS485,因此在私有通信协议操作集合中修改或者添加串口初始化、接收字节处理、接收完成帧处理以及清空缓冲区等操作函数,以实现RS485通信功能。其中设备通信协议私有操作集合作为嵌套在设备通信协议注册表项结构体中的结构体,基于RS584的通信方式,其设备通信协议私有操作集合的结构体名可定义为struct rs485_prot_operation。
本发明的智能家电网关设备的数据处理方法,功能属性结构体可以为设备状态结构体、设备信息结构体、设备注册表项结构体或设备通信协议注册表项结构体,将若干类型智能家电的共同功能属性进行分类整合,构建便于调用的数据集合,提高了开发程序的简洁性以及灵活性,便于添加新设备时对各个结构体进行调用。
在一个实施例中,如图2所示,智能家电网关设备的数据通用模型为设备 结构体。
智能家电网关设备的数据通用模型为设备结构体,可以包括设备状态结构体、设备信息结构体、设备注册表项结构体以及设备通信协议注册表项结构体中的一项或者任意项组合,可选的,设备结构体的结构体名可定义为struct device_info。
在封装各功能属性结构体,得到智能家电网关设备的数据通用模型的步骤之后,还包括步骤:
步骤S250:根据智能家电网关设备的数据通用模型,实例化若干待添加的智能家电的设备结构体,得到各设备结构体对应的设备结构体变量。
具体而言,实例化设备结构体,为根据设备结构体,声明设备结构体变量的过程,进而得到各设备结构体对应的设备结构体变量,即构建出待添加的智能家电设备对象。由此,能够基于本发明的智能家电网关设备的数据通用模型,快速完成新设备的添加。
步骤S260:将各设备结构体变量添加到设备列表中。
具体而言,设备结构体变量为智能家电设备实例,设备列表为存储已添加至智能家电网关设备中的各智能家电参数信息的数据库。本发明的智能家电网关设备对应智能家电的管理以及控制,基于该设备列表进行,如新增设备、删除设备、获取设备信息以及遍历设备列表等操作。可选的,设备列表名可定义为device_list。
本发明的智能家电网关设备的数据处理方法,利用各设备结构体变量,便于调用设备结构体中的数据模型,能够有效实现待添加的智能家电的各功能属性,灵活高效。同时智能家电网关设的数据通用模型为设备结构体,将各个功能属性结构体变量封装为适用于智能家电入网所需的数据模型,进一步减少了程序冗余,增强了程序的可移植性和灵活性,提高了添加新设备的效率。
在一个实施例中,如图3所示,将各设备结构体变量添加到设备列表中的步骤包括:
步骤S310:分别根据各设备结构体变量,获取设备结构体变量对应的各功能属性结构体。
具体而言,待添加的智能家电可以为类型不同的设备,不同的设备其功能属性可以不同。而在基于数据通用模型的设备结构体变量中,包括若干类型智能家电共同特征的功能属性结构体,进一步,待添加的智能家电可以但不局限于包含共同特征中的部分或者全部,因此,分别根据各设备结构体变量,获取设备结构体对应的各功能属性结构体。
步骤S320:实例化各功能属性结构体,得到各功能属性结构体对应的功能属性结构体变量。
具体而言,实例化功能属性结构体,为声明功能属性结构体变量的过程,即构建出待添加的智能家电的功能属性对象。进一步地,能够调用功能属性结构体中的数据模型,根据待添加的智能家电的功能属性参数,修改实例化的功能属性结构体中对应的变量,实现待添加的智能家电的各功能。
步骤S330:分别对各功能属性结构体变量进行赋值,完成设备列表的添加。
具体而言,在步骤S320获得功能属性结构体变量时,能够基于功能属性结构体获取其中的成员,并对各成员赋值,即赋值对应待添加的智能家电的功能属性参数,得到适用于对应的待添加的智能家电的设备结构体变量,完成设备列表的添加。
本发明的智能家电网关设备的数据处理方法,通过基于构建完成的数据通用数据模型,即设备结构体,根据待添加的智能家电的功能属性,实例化对应的各功能属性结构体,对得到的各功能属性结构体变量赋值,完成设备列表的添加。从而能够快速灵活地在智能家电网关设备中完成对待添加的智能家电的支持,以便新设备接入。
在一个实施例中,各功能属性结构体变量包括以下变量的任意种组合:设备状态结构体变量、设备信息结构体变量、设备注册表项结构体变量或设备通信协议注册表项结构体变量。
分别对各功能属性结构体变量进行赋值,完成设备列表的添加的步骤包括:
实例化设备信息结构体变量,获取设备信息结构体的成员,根据成员分别定义第一枚举量以及第二枚举量;第一枚举量为待添加的智能家电的类型信息;第二枚举量为待添加的智能家电的通信协议信息。
具体而言,第一枚举量名称可以但不局限于enum DEVICE_TYPE,表示智能家电网关设备所支持的设备,第二枚举量名称可以但不局限于enum PRPTOCOL_TYPE,表示智能家电网关设备所支持的通信协议。
和/或
实例化设备状态结构体变量,获取设备状态结构体的成员,根据待添加的智能家电的运行状态分别对成员进行赋值。
具体而言,根据待添加的智能家电的运行状态进行赋值,便于高效完成新设备的添加。
和/或
实例化设备注册表项结构体变量,生成待添加的智能家电的设备操作函数 集合,并建立设备操作函数集合的各设备操作函数。
具体而言,实例化设备注册表项结构体变量,是定义出与设备注册表项结构体类型相同的结构体变量,通过获取设备注册表项结构体变量中的成员,对各成员赋值。进一步地,设备注册表项结构体可包括设备类型、设备接口功能属性变量,还可以包括设备常用操作集合以及设备私有操作集合的功能属性变量。获取设备注册表项结构体变量中的成员,生成待添加的智能家电的设备操作函数集合,其中设备操作函数可以包括设备常用操作集合以及设备私有操作集合的操作函数。根据待添加的智能家电的功能属性,对应修改各设备操作函数,实现对应的待添加的智能家电功能属性。
和/或
实例化设备通信协议注册表项结构体变量,生成待添加的智能家电的设备通信协议操作函数集合,并建立设备通信协议操作函数集合的各设备通信协议操作函数。
具体而言,实例化设备通信协议注册表项结构体变量,是定义出设备通信协议注册表项结构体类型相同的结构体变量,通过获取设备通信协议注册表项结构体变量中的成员,对各成员赋值。进一步地,设备通信协议表项结构体可以包括设备协议类型、设备通信协议常用操作集合以及设备通信协议私有操作集合的功能属性变量。获取设备通信协议注册表项结构体变量中的成员,生成待添加的智能家电的设备通信协议操作函数集合,其中设备通信协议操作函数集合可以包括设备通信协议操作集合以及设备通信协议私有操作集合的操作函数。根据待添加的智能家电的通信协议功能属性,对应修改各设备通信协议操作函数,实现对应的待添加的智能家电的通信协议功能属性。
本发明的智能家电网关设备的数据处理方法,基于智能家电的通用数据模型,并根据待添加的智能家电的功能属性,可以实例化通用数据模型中对应的设备信息结构体变量、设备状态结构体变量、设备注册表项结构体变量以及设备注册通信协议注册表项结构体变量,并获取各结构体变量中的成员,根据待添加的智能家电的功能属性,对各成员进行赋值,并构建各操作函数,快速、高效地实现智能家电网关设备对待添加的智能家电的支持以及配置。同时能够减少程序的冗余,使得在智能家电网关设备中添加新设备时,能够保证程序的整齐有序,同时避免大量重复性的代码,提高运行程序的可移植性和重复利用性。
在一个实施例中,将各设备结构体变量添加到设备列表中的步骤之后,还包括步骤:
步骤1:将设备注册表项结构体变量添加到设备注册列表。
具体而言,设备注册列表表示智能家电网关设备支持的设备类型,其中所存储的每个列表元素表示一种设备类型,为设备注册表项结构体变量。可选的,设备注册列表名可定义为device_register_table。
步骤2:将设备通信协议注册表项结构体变量添加到设备通信协议注册列表。
具体而言,设备通信协议表列表表示智能家电网关设备支持的通信协议类型,其中所存储的每个列表元素表示一种通信协议类型,为设备通信协议表项结构体。可选的,设备通信协议注册列表名可定义为protocol_register_table。
本发明的智能家电网关设备的数据处理方法,在待添加的智能家电对应的设备结构体添加到设备列表时,即完成了智能家电网关设备对待添加的智能家电的支持和配置。将设备注册表项结构体添加到设备注册列表中,将设备通信协议注册表项结构体添加到设备通信协议注册列表中,由此,能够在添加新的设备时,可以根据设备注册列表以及设备通信协议注册列表中的数据,快速链接到设备列表中与相应的智能家电数据进行匹配,有效优化新设备的入网过程。
作为一优选的实施例,如图4所示,设备注册表中存储有各个设备注册表项元素,对应设备注册表项结构体,各元素包括待添加的智能家电的设备类型、设备常用操作集合以及设备私有操作集合。在设备通信协议注册列表中存储有各个设备通信协议注册表项元素,对应设备通信协议注册表项结构体,每个元素包括待添加的智能家电的通信协议类型、设备通信协议常用操作集合以及设备通信协议私有操作集合。进一步地,能够在添加新设备时,可以根据设备注册列表以及设备通信协议注册列表中的数据,快速链接到设备列表,优化新设备入网的过程。
作为一优选的实施例,本发明的智能家电网关设备的通用数据模型,可以为设备结构体,其中设备结构体可以包括设备通信协议注册表项结构体指针以及设备注册表项结构体指针,通过设备通信协议注册表项结构体指针的指向获取设备通信协议表项结构体,通过设备注册表项结构体指针的指向获取设备注册表项结构体。由此,能够减少内存空间的消耗,使得程序简洁明了,减少程序的冗余度。
在一个实施例中,如图5所示,提供了一种智能家电网关设备的数据处理方法的新设备入网方法,包括以下步骤:
步骤S510:获取新设备的待匹配设备类型信息以及待匹配通信协议信息。
具体而言,新设备可以为智能电灯、窗帘、厨房电器、电视机等智能家电, 待匹配设备类型信息可以包括设备型号、功能属性、设备名称以及设备ID等,待匹配通信协议信息可以为通信方式、通信协议类型等。
步骤S520:根据待匹配设备类型信息,在设备注册列表中进行匹配,得到新设备的设备类型信息。
具体而言,设备注册列表中存储有智能家电网关设备所能支持的智能家电的类型和设置信息。因此,在获取到新设备入网信号时,在设备注册列表中进行匹配,能够快速查找到与新设备的待匹配设备类型信息相对应的设备类型信息。
步骤S530:根据待匹配的通信协议信息,在设备通信协议注册列表中进行匹配,得到新设备的设备通信协议信息。
具体而言,设备通信协议注册列表中存储有智能家电网关设备所能支持的智能家电通信方式和通信协议类型。因此,在获取到新设备的入网信息时,在设备通信协议注册列表中进行匹配,能够快速查找到与新设备的待匹配通信协议信息相对应的设备通信协议信息。
步骤S540:根据设备类型信息和设备通信协议信息,链接到设备列表。
具体而言,设备列表为存储有已添加至智能家电网关设备中的各智能家电参数信息的数据库。将在设备注册列表和设备通信协议注册列表中匹配得到的设备类型信息和设备通信协议信息,链接至设备列表,进而能够调用设备列表中新设备对应的数据。
步骤S550:在设备列表中查找分别与设备类型信息、设备通信协议信息匹配的设备结构体变量,完成新设备的入网。
具体而言,在设备列表中查找分别与设备类型信息和设备通信协议信息匹配的设备结构体变量,可以调用该设备结构体变量中的数据模型,根据新设备的功能属性,对新设备进行初始化处理,完成新设备的入网。
本发明的新设备入网方法,能够基于智能家电的数据通用模型,结合设备注册列表以及设备通信协议注册列表,并快速链接至设备列表中,根据新设备的功能属性等设备信息,在设备列表中调用对应的设备结构体变量中的数据,进而完成新设备的入网。本发明优化了智能家电网关设备对应新设备入网的过程,高效、灵活。
在一个实施例中,在设备列表中查找分别与设备类型信息、设备通信协议信息匹配的设备结构体变量,完成新设备的入网步骤,包括:
步骤S1:调用设备结构体变量的初始化函数;
步骤S2:根据初始化函数,初始化新设备。
本发明的新设备入网方法,在设备列表中根据新设备的功能属性,调用设备结构体变量中的常用设备操作集合中的初始化函数,对新设备对应的设备结构体中的数据进行初始化。使得智能家电网关设备通过对应的设备结构体初始化新设备对象,实现对新设备的入网。
作为一优选的实施例,为了进一步说明本发明智能家电网关设备的数据处理方法的新设备入网方法,以智能窗帘为例进行说明。
在一智能家电系统中需要新增一款智能窗帘,其型号可以为GM30。在原智能家电网关设备中没有该设备信息,为使得该智能家电网关设备支持该设备,扩充智能家电网关设备的兼容性。优选的,GM30智能窗帘为多功能智能窗帘,支持RS485通讯方式。因此,需要嵌入本发明的智能家电网关设备中,基于本发明的数据通用模型,进行如下步骤:
步骤1:在设备信息结构体变量中,定义GM30的枚举量,如表示设备类型的DEV_TYPE_GM30枚举量,表示设备通信协议类型的PROTO_TYPE_GM30枚举量。
步骤2:定义GM30的设备状态结构体(struct gm30_status),包含GM30的当前运行状态、开合百分比、开合方向以及是否有手拉功能等设备状态功能信息,该结构体用于记录GM30的当前状态值。由于智能家电的当前状态所包含的参数各不相同,在此,需通过强制转换的算法将GM30的状态命令数组转换为设备状态结构体。
步骤3:实例化设备注册表项结构体变量,生成GM30的设备操作集合函数,在GM30的操作函数中,定义GM30_dev_operation全局变量,建立GM30的操作函数,包括初始化GM30_init、资源释放GM30_cleanup、联动检测GM30_check_linkage、定时回调GM30_timer、数据解释GM30_dev2stat以及命令转换GM30_stat2dev等函数。
步骤4:实例化设备通信协议注册表项结构体,生成GM30的设备通信协议操作函数集合,在设备通信协议常用操作集合中定义GM30_prot_operation全局变量,在设备通信协议私有操作集合中定义GM30_rs485_prot_operation全局变量。建立GM30的操作函数,包括设备通信协议常用操作集合中的定时回调(GM30_prot_timer)、数据发送(GM30_prot_send)、设备查询(GM30_prot_query)、设备控制(GM30_prot_ctrl)、设备配置(GM30_prot_config)等函数;包括设备通信协议私有操作集合中的串口初始化(GM30_rs485_prot_init)、接收字节的处理(GM30_rs485_prot_recv_byte)、接收完整帧的处理(GM30_rs485_prot_recv_frame)、缓冲区清空 (GM30_rs485_prot_clear)等函数。
步骤5:在设备注册列表(device_register_table)和设备通信协议注册列表(protocol_register_table)中追加GM30的定义,可选的,代码如下:
/*设备注册表:GM30*/
{
.dev_type=DEV_TYPE_GM30,
.dev_itf={
{.dev_prot=PROTO_TYPE_GM30,.dev_op=&GM30_dev_operation}
},
}
/*设备协议注册表:GM30*/
{
.prot=PROTO_TYPE_GM30,
.prot_op=&GM30_prot_operation,
.priv_op=(uint32_t)&GM30_rs485_prot_operation
}
综上,完成了智能家电网关设备对GM30智能窗帘的支持。
作为一优选的实施例,当检测到有GM30智能窗帘需要入网时,如图6所示,入网步骤如下:
步骤S610:调用设备列表提供的GM30对应的新增设备函数,启动新增设备程序。
步骤S620:查询设备注册列表,匹配GM30的设备类型。
步骤S630:查询设备通信协议注册列表,匹配GM30的设备通信协议类型。
步骤S640:保存GM30的设备类型和设备通信协议类型信息,并链接到设备列表。
步骤S650:在设备列表中初始化GM30对应的数据。
根据以上步骤,完成新设备GM30的入网。本发明智能家电网关设备的数据处理方法的新设备入网方法,能够提高智能家电网关设备入网程序软件框架的灵活性和通用性,减少程序的冗余度,使得基于该程序软件框架的智能家电网关设备在添加新设备时能够高效完成。
应该理解的是,虽然图1-6的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺 序执行。而且,图1-6中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
在一个实施例中,如图7所示,提供了一种智能家电网关设备的数据处理装置,包括分类模块710、定义模块720、封装模块730。
分类模块710,用于根据功能属性变量的数据信息类型,对各功能属性变量进行分类,得到若干个功能属性分类集合;功能属性变量为根据各智能家电的共同属性定义的变量。
定义模块720,用于根据功能属性分类集合,定义功能属性分类集合对应的功能属性结构体。
封装模块730,用于封装各功能属性结构体,得到智能家电网关设备的数据通用模型。
本发明根据若干类型的智能家电的功能属性变量进行分类,定义功能属性分类集合对应的功能属性结构体,并对各功能属性结构体进行封装,搭建智能家电网关设备的数据通用模型。进而能够提高智能家电网关设备入网程序软件框架的灵活性和通用性,减少程序的冗余,使得基于该程序软件框架的智能家电网关设备在添加新设备时能够高效完成。
关于智能家电网关设备的数据处理装置的具体限定可以参见上文中对于智能家电网关设备的数据处理方法的限定,在此不再赘述。上述智能家电网关设备的数据处理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
在一个实施例中,如图8所示,提供了一种新设备入网装置,包括获取信息模块810、第一匹配模块820、第二匹配模块830、链接模块840、入网模块850。
获取信息模块810,用于获取新设备的待匹配设备类型信息以及待匹配通信协议信息。
第一匹配模块820,用于根据待匹配设备类型信息,在设备注册列表中进行匹配,得到新设备的设备类型信息。
第二匹配模块830,用于根据待匹配的通信协议信息,在设备通信协议注册列表中进行匹配,得到新设备的设备通信协议信息。
链接模块840,用于根据设备类型信息和设备通信协议信息,链接到设备列表。
入网模块850,用于在设备列表中查找分别与设备类型信息、设备通信协议信息匹配的设备结构体变量,完成新设备的入网。
本发明的新设备入网装置,能够基于智能家电的数据通用模型,结合设备注册列表以及设备通信协议注册列表,并快速链接至设备列表中,根据新设备的功能属性等设备信息,在设备列表中调用对应的设备结构体变量中的数据,进而完成新设备的入网。本发明优化了智能家电网关设备对应新设备入网的过程,高效、灵活。
在一个实施例中,如图8所示,入网模块850还包括:
调用单元852,用于调用设备结构体变量的初始化函数;
初始化单元856,用于根据初始化函数,初始化新设备。
本发明的新设备入网装置,在设备列表中根据新设备的功能属性,调用设备结构体变量中的常用设备操作集合中的初始化函数,对新设备对应的设备结构体中的数据进行初始化。使得智能家电网关设备通过对应的设备结构体初始化新设备对象,实现对新设备的入网。
关于新设备入网装置的具体限定可以参见上文中对于智能家电网关设备的数据处理方法的新设备入网方法的限定,在此不再赘述。上述新设备入网装置置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图9所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种智能家电网关设备的数据处理方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。
本领域技术人员可以理解,图9中示出的结构,仅仅是与本申请方案相关 的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现智能家电网关设备的数据处理方法中的各步骤。
在一个实施例中,提供了一种智能家电网关,包括存储器和处理器,其中,存储器存储有计算机程序,计算机程序被处理器执行时能实现智能家电网关设备的数据处理方法的新设备入网方法中的各步骤。
本发明的智能家电网关,是基于本发明智能家电网关设备的数据处理方法对应的智能家电网关,由此,能够基于智能家电的数据通用模型,结合设备注册列表以及设备通信协议注册列表,并快速链接至设备列表中,根据新设备的功能属性等设备信息,在设备列表中调用对应的设备结构体变量中的数据,进而完成新设备的入网。本发明优化了智能家电网关设备对应新设备入网的过程,高效、灵活。
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时能实现新设备入网方法中的各步骤。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (10)

  1. 一种智能家电网关设备的数据处理方法,其特征在于,包括以下步骤:
    根据功能属性变量的数据信息类型,对各所述功能属性变量进行分类,得到若干功能属性分类集合;所述功能属性变量为根据各智能家电的共同属性定义的变量;
    根据所述功能属性分类集合,定义所述功能属性分类集合对应的功能属性结构体;
    封装各所述功能属性结构体,得到智能家电网关设备的数据通用模型。
  2. 根据权利要求1所述的智能家电网关设备的数据处理方法,其特征在于,各所述功能属性结构体包括以下结构体的任意组合:设备状态结构体、设备信息结构体、设备注册表项结构体以及设备通信协议注册表项结构体。
  3. 根据权利要求1或2所述的智能家电网关设备的数据处理方法,其特征在于,所述智能家电网关设备的数据通用模型为设备结构体;
    在封装各所述功能属性结构体,得到智能家电网关设备的数据通用模型的步骤之后,还包括步骤:
    根据所述智能家电网关设备的数据通用模型,实例化若干待添加的智能家电的所述设备结构体,得到各所述设备结构体对应的设备结构体变量;
    将各所述设备结构体变量添加到设备列表中。
  4. 根据权利要求3所述的智能家电网关设备的数据处理方法,其特征在于,将各所述设备结构体变量添加到设备列表中的步骤包括:
    分别根据各所述设备结构体变量,获取所述设备结构体变量对应的各功能属性结构体;
    实例化各所述功能属性结构体,得到各所述功能属性结构体对应的功能属性结构体变量;
    分别对各所述功能属性结构体变量进行赋值,完成所述设备列表的添加。
  5. 根据权利要求4所述的智能家电网关设备的数据处理方法,其特征在于,
    各所述功能属性结构体变量包括以下变量的任意组合:设备状态结构体变量、设备信息结构体变量、设备注册表项结构体变量以及设备通信协议注册表项结构体变量;
    分别对各所述功能属性结构体变量进行赋值,完成所述设备列表的添加的步骤包括:
    实例化所述设备信息结构体变量,获取所述设备信息结构体的成员,根据所述成员分别定义第一枚举量以及第二枚举量;所述第一枚举量为待添加的所 述智能家电的类型信息;所述第二枚举量为待添加的所述智能家电的通信协议信息;
    和/或
    实例化所述设备状态结构体变量,获取所述设备状态结构体的成员,根据待添加的所述智能家电的运行状态分别对所述成员进行赋值;
    和/或
    实例化所述设备注册表项结构体变量,生成待添加的所述智能家电的设备操作函数集合,并获取所述设备操作函数集合的各设备操作函数;
    和/或
    实例化所述设备通信协议注册表项结构体变量,生成待添加的所述智能家电的设备通信协议操作函数集合,并获取所述设备通信协议操作函数集合的各设备通信协议操作函数。
  6. 根据权利要求3至5任意一项所述的智能家电网关设备的数据处理方法,其特征在于,将各所述设备结构体变量添加到设备列表中的步骤之后,还包括步骤:
    将所述设备注册表项结构体变量添加到设备注册列表;
    将所述设备通信协议注册表项结构体变量添加到设备通信协议注册列表。
  7. 根据权利要求6所述的智能家电网关设备的数据处理方法的新设备入网方法,其特征在于,包括以下步骤:
    获取新设备的待匹配设备类型信息以及待匹配通信协议信息;
    根据所述待匹配设备类型信息,在所述设备注册列表中进行匹配,得到所述新设备的设备类型信息;
    根据所述待匹配的通信协议信息,在所述设备通信协议注册列表中进行匹配,得到所述新设备的设备通信协议信息;
    根据所述设备类型信息和所述设备通信协议信息,链接到所述设备列表;
    在所述设备列表中查找分别与所述设备类型信息、所述设备通信协议信息匹配的所述设备结构体变量,完成所述新设备的入网;
    其中,在所述设备列表中查找分别与所述设备类型信息、所述设备通信协议信息匹配的所述设备结构体变量,完成所述新设备的入网步骤,包括:
    调用所述设备结构体变量的初始化函数;
    根据所述初始化函数,初始化所述新设备。
  8. 一种智能家电网关设备的数据处理装置,其特征在于,包括:
    分类模块,用于根据功能属性变量的数据信息类型,对各所述功能属性变 量进行分类,得到若干个功能属性分类集合;所述功能属性变量为根据各智能家电的共同属性定义的变量;
    定义模块,用于根据所述功能属性分类集合,定义所述功能属性分类集合对应的功能属性结构体;
    封装模块,用于封装各所述功能属性结构体,得到智能家电网关设备的数据通用模型。
  9. 一种新设备入网装置,其特征在于,包括:
    获取信息模块,用于获取新设备的待匹配设备类型信息以及待匹配通信协议信息;
    第一匹配模块,用于根据所述待匹配设备类型信息,在所述设备注册列表中进行匹配,得到所述新设备的设备类型信息;
    第二匹配模块,用于根据所述待匹配的通信协议信息,在所述设备通信协议注册列表中进行匹配,得到所述新设备的设备通信协议信息;
    链接模块,用于根据所述设备类型信息和所述设备通信协议信息,链接到所述设备列表;
    入网模块,用于在所述设备列表中查找分别与所述设备类型信息、所述设备通信协议信息匹配的所述设备结构体变量,完成所述新设备的入网;
    其中,入网模块还包括:
    调用单元,用于调用所述设备结构体变量的初始化函数;
    初始化单元,用于根据所述初始化函数,初始化所述新设备。
  10. 一种智能家电网关,其特征在于,包括存储器和处理器,其中,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时能实现权利要求7所述的方法步骤。
PCT/CN2018/085160 2018-03-01 2018-04-28 智能家电网关设备的数据处理方法、装置及智能家电网关 WO2019165704A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810171814.XA CN108399245B (zh) 2018-03-01 2018-03-01 智能家电网关设备的数据处理方法、装置及智能家电网关
CN201810171814.X 2018-03-01

Publications (1)

Publication Number Publication Date
WO2019165704A1 true WO2019165704A1 (zh) 2019-09-06

Family

ID=63091434

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/085160 WO2019165704A1 (zh) 2018-03-01 2018-04-28 智能家电网关设备的数据处理方法、装置及智能家电网关

Country Status (2)

Country Link
CN (1) CN108399245B (zh)
WO (1) WO2019165704A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111245859A (zh) * 2020-01-19 2020-06-05 格尔软件股份有限公司 一种智能家居用网络链路访问控制方法

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109005094B (zh) * 2018-11-01 2021-02-02 上海顺舟智能科技股份有限公司 基于物联网的zigbee智能家居设备管理方法及装置
CN110909002B (zh) * 2019-11-25 2022-05-03 杭州行至云起科技有限公司 一种智能设备动态属性的存储方法及网关

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003076720A (ja) * 2001-08-31 2003-03-14 Hitachi Ltd パテントファミリ情報の提供方法およびシステム
CN105530317A (zh) * 2016-01-12 2016-04-27 广东瑞德智能科技股份有限公司 一种智能家居控制终端ui自动生成方法
CN106202218A (zh) * 2016-03-23 2016-12-07 四川长虹电器股份有限公司 一种数据处理方法及数据处理系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200411574A (en) * 2002-12-31 2004-07-01 Ind Tech Res Inst Artificial intelligent system for classification of protein family
CN105281998B (zh) * 2015-11-12 2019-01-18 安徽建筑大学 健康智能家居系统的管理方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003076720A (ja) * 2001-08-31 2003-03-14 Hitachi Ltd パテントファミリ情報の提供方法およびシステム
CN105530317A (zh) * 2016-01-12 2016-04-27 广东瑞德智能科技股份有限公司 一种智能家居控制终端ui自动生成方法
CN106202218A (zh) * 2016-03-23 2016-12-07 四川长虹电器股份有限公司 一种数据处理方法及数据处理系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111245859A (zh) * 2020-01-19 2020-06-05 格尔软件股份有限公司 一种智能家居用网络链路访问控制方法

Also Published As

Publication number Publication date
CN108399245B (zh) 2020-07-14
CN108399245A (zh) 2018-08-14

Similar Documents

Publication Publication Date Title
CN108234670B (zh) 一种基于zookeeper和netty的分布式远程调用方法
CN107239416B (zh) 为智能设备提供统一抽象表示的计算机系统及实现方法
WO2019165704A1 (zh) 智能家电网关设备的数据处理方法、装置及智能家电网关
CN109040200B (zh) 物联网设备的接入方法及装置
Aberer et al. Middleware support for the “Internet of Things”
US11366925B2 (en) Methods and apparatuses for chaining service data
TW201826869A (zh) 設備關聯方法、裝置、終端設備和作業系統
CN109495492B (zh) 用于智能水务行业的通信系统
US8849947B1 (en) IT discovery of virtualized environments by scanning VM files and images
US20070106770A1 (en) Managing a remote device by a communication element that does not specify an identifier for the management object
CN108345691B (zh) 数据源通用处理框架构建方法、数据源处理方法及装置
WO2022199283A1 (zh) 用于确定调用栈栈帧的对象的方法、装置、设备和介质
CN111061678A (zh) 业务数据处理方法、装置、计算机设备和存储介质
WO2020042973A1 (zh) 用于安全认证的数据处理方法、服务器、客户端设备和介质
WO2023169272A1 (zh) 基于云应用的处理方法、电子设备和存储介质
CN113176954A (zh) 应用程序的调用方法、装置、存储介质及电子设备
CN111740960A (zh) 物联网设备的通信方法、物联网设备及存储介质
CN108092959B (zh) 一种基于配置的BACnet协议解析方法
CN112910985B (zh) 基于智能合约的协议转换方法、装置、设备及存储介质
US11792269B2 (en) Method for generating application for controlling external electronic device and electronic apparatus for supporting the same
CN105991779A (zh) 一种物联网短距离通信的方法、装置及中间件
CN114860333A (zh) 一种服务编排方法和电子设备
CN112445811A (zh) 基于sql配置的数据服务方法、装置、存储介质及组件
CN115037639B (zh) 边缘数据平台接口信息的处理方法、装置、设备及介质
WO2014176954A1 (zh) 分布式存储系统的数据的处理方法、装置及系统

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18907966

Country of ref document: EP

Kind code of ref document: A1