CN112565029A - Method, system, terminal and computer readable storage medium for accessing internet of things - Google Patents

Method, system, terminal and computer readable storage medium for accessing internet of things Download PDF

Info

Publication number
CN112565029A
CN112565029A CN202011299395.1A CN202011299395A CN112565029A CN 112565029 A CN112565029 A CN 112565029A CN 202011299395 A CN202011299395 A CN 202011299395A CN 112565029 A CN112565029 A CN 112565029A
Authority
CN
China
Prior art keywords
things
internet
equipment
networked
information
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.)
Granted
Application number
CN202011299395.1A
Other languages
Chinese (zh)
Other versions
CN112565029B (en
Inventor
邓学超
徐美林
陆正华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics 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 Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202011299395.1A priority Critical patent/CN112565029B/en
Publication of CN112565029A publication Critical patent/CN112565029A/en
Application granted granted Critical
Publication of CN112565029B publication Critical patent/CN112565029B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2869Operational details of access network equipments
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/80Homes; Buildings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computing Systems (AREA)
  • Automation & Control Theory (AREA)
  • Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Structural Engineering (AREA)
  • Civil Engineering (AREA)
  • Architecture (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses a method, a system, a terminal and a computer readable storage medium for accessing to the Internet of things, wherein the method for accessing to the Internet of things comprises the following steps: when the equipment to be networked is determined, visual configuration of parameter information is carried out based on a visual configuration tool, and a logic code is generated, wherein the parameter information is information required when the equipment to be networked is accessed to the Internet of things; and transplanting the logic code to the equipment to be networked so that the equipment to be networked accesses the Internet of things based on the logic code. The problem of when using SDK butt joint or interface agreement butt joint, can increase the butt joint degree of difficulty of thing networking device and communication module, and reduced the technical problem of the stability of thing networking device is solved, through using visual configuration tool to generate the code of thing networking device and communication module, transplant the code to thing networking device in, realized thing networking device quick access network.

Description

Method, system, terminal and computer readable storage medium for accessing internet of things
Technical Field
The present application relates to the field of networking technologies, and in particular, to a method, a system, a terminal, and a computer-readable storage medium for accessing an internet of things.
Background
At present, with the development of the internet and the internet of things, the technology of intelligent household appliances is continuously developed, and more household appliances realize intellectualization. Generally, household appliances realize the function of internet of things through an internal networking module, and generally adopt an SDK docking mode or an interface protocol docking mode (such as a UART serial port, IIC, SPI) in the process of docking the household appliances with the internet of things module, but some docking problems exist in the process of using the SDK docking, for example, MCUs of different platforms need different SDKs, or specified MCUs or CPU kernels are directly required in the docking process; a large amount of verification information, product information and the like are required to be set in the docking process and are completely realized by codes, so that the complexity of the codes is increased; in the docking process, a user is required to fill and write the communicated equipment attributes into the codes according to the code rules, wherein data and logic are often combined together, the development complexity is high, and bugs are easy to appear under the condition of incomplete test; in the butt joint process, the SDK cutting is complex or can not be cut, and the consumption of the MCU is high. The docking process using the interface protocol also has some problems, such as the protocol content is scattered and the code packaging difficulty is high; the development complexity is high, and bug easily occurs under the condition of incomplete test; a code structure developed according to a protocol is horizontally hooked with a designer, so that the development efficiency is limited; codes cannot be continuously integrated, and the bug cannot cooperatively eliminate the accumulated bug when being docked by different manufacturers. Therefore, when the SDK is used for butt joint or the interface protocol is used for butt joint, the butt joint difficulty of the Internet of things equipment and the communication module can be increased, and meanwhile, the stability of the Internet of things equipment is reduced.
Disclosure of Invention
The embodiment of the application provides a method, a system, a terminal and a computer readable storage medium for accessing to the internet of things, and aims to solve the problems that when SDK (software development kit) docking or interface protocol docking is used, the docking difficulty of internet of things equipment and a communication module is increased, and the stability of the internet of things equipment is reduced.
In order to achieve the above object, an aspect of the present application provides a method for accessing an internet of things, where the method for accessing an internet of things includes the following steps:
when equipment to be networked is determined, visual configuration of parameter information is carried out based on a visual configuration tool, and a logic code is generated, wherein the parameter information is information required when the equipment to be networked is accessed to the Internet of things;
and transplanting the logic code to the equipment to be networked so as to enable the equipment to be networked to access the Internet of things based on the logic code.
Optionally, the step of migrating the logic code to the device to be networked comprises:
determining an Internet of things module which is in butt joint with the equipment to be networked;
and transplanting the logic code to a main chip of the equipment to be networked based on the Internet of things module.
Optionally, the step of performing visual configuration of the parameter information based on the visual configuration tool includes:
determining a currently used microcontroller platform;
determining data information of a platform based on the microcontroller platform, wherein the data information comprises data type digits and an end mode.
Optionally, after the step of determining data information of the platform based on the microcontroller platform, the method includes:
setting a heartbeat function of a software development kit, and setting a callback function based on the equipment serial number;
and setting attribute types supported by the Internet of things equipment and supported extended functions.
Optionally, after the step of setting the attribute types supported by the internet of things device and the supported extended functions, the method includes:
acquiring equipment information of the equipment to be networked;
and setting equipment type identification information and communication attribute information based on the equipment information.
Optionally, after the step of setting the device type identification information and the communication attribute information based on the device information, the method includes:
when the storage space of the microcontroller is insufficient, modifying the circular buffer area;
and performing response setting according to response requirements, wherein the response device comprises a direct response and a delayed response.
Optionally, the response setting according to the response requirement, after the steps of the response device including the direct response and the delayed response, includes:
determining an output path;
the logic code is derived from the output path.
In addition, in order to achieve the above object, another aspect of the present application further provides an internet of things accessing system, where the system includes:
the configuration module is used for carrying out visual configuration on parameter information based on a visual configuration tool when equipment to be networked is determined, and generating a logic code, wherein the parameter information is information required when the equipment to be networked is accessed to the Internet of things;
and the transplantation module is used for transplanting the logic code to the equipment to be networked so as to enable the equipment to be networked to access the Internet of things based on the logic code.
In addition, in order to achieve the above object, another aspect of the present application further provides a terminal, where the terminal includes a memory, a processor, and an internet of things accessing program stored in the memory and running on the processor, and the processor implements the steps of the internet of things accessing method as described above when executing the internet of things accessing program.
In addition, to achieve the above object, another aspect of the present application provides a computer-readable storage medium, on which an internet of things accessing program is stored, and when the program is executed by a processor, the method for accessing the internet of things as described above is implemented.
In the embodiment, when the device to be networked is determined, visual configuration of parameter information is performed based on a visual configuration tool, and a logic code is generated, wherein the parameter information is information required when the device to be networked is accessed to the internet of things; and transplanting the logic code to the equipment to be networked so that the equipment to be networked accesses the Internet of things based on the logic code. The problem of when using SDK butt joint or interface agreement butt joint, can increase the butt joint degree of difficulty of thing networking device and communication module, and reduced the technical problem of the stability of thing networking device is solved, through using visual configuration tool to generate the code of thing networking device and communication module, transplant the code to thing networking device in, realized thing networking device quick access network.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a first embodiment of a method for accessing the internet of things according to the present application;
fig. 3 is a schematic flowchart of a second embodiment of the method for accessing the internet of things according to the present application;
fig. 4 is a schematic flow chart illustrating visual configuration of parameter information based on a visual configuration tool in the method for accessing the internet of things according to the present application;
fig. 5 is a schematic flow chart of the method for accessing the internet of things according to the present application after the step of determining the data information of the platform based on the microcontroller platform;
fig. 6 is a schematic flowchart of the method for accessing the internet of things according to the present application after the step of setting the attribute types supported by the internet of things device and the supported extended functions;
fig. 7 is a schematic flow chart illustrating a step of setting device type identification information and communication attribute information based on the device information in the method for accessing the internet of things according to the present application;
fig. 8 is a flow chart illustrating response setting according to response requirements in the method for accessing the internet of things according to the present application, where the response device includes steps of direct response and delayed response.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The main solution of the embodiment of the application is as follows: when equipment to be networked is determined, visual configuration of parameter information is carried out based on a visual configuration tool, and a logic code is generated, wherein the parameter information is information required when the equipment to be networked is accessed to the Internet of things; and transplanting the logic code to the equipment to be networked so as to enable the equipment to be networked to access the Internet of things based on the logic code.
In the process of the internet of things docking, one or more internet of things access modules are generally used, and the internet of things docking is performed in a mode of SDK docking or interface protocol docking (such as UART serial port, IIC and SPI). However, when the SDK is used for docking or the interface protocol is used for docking, the docking difficulty of the internet of things device and the communication module is increased, and meanwhile, the stability of the internet of things device is reduced. When equipment to be networked is determined, visual configuration of parameter information is carried out on the basis of a visual configuration tool, and a logic code is generated, wherein the parameter information is information required when the equipment to be networked is accessed to the Internet of things; and transplanting the logic code to the equipment to be networked so that the equipment to be networked accesses the Internet of things based on the logic code. The codes of the Internet of things equipment and the communication module are generated by using the visual configuration tool, and the codes are transplanted into the Internet of things equipment, so that the Internet of things equipment is rapidly accessed into a network.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present application.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, a remote controller, an audio circuit, a WiFi module, a detector, and the like. Of course, the terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer and a temperature sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 does not constitute a limitation of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and an access internet-of-things program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the memory 1005 to access the internet of things program, and perform the following operations:
when equipment to be networked is determined, visual configuration of parameter information is carried out based on a visual configuration tool, and a logic code is generated, wherein the parameter information is information required when the equipment to be networked is accessed to the Internet of things;
and transplanting the logic code to the equipment to be networked so as to enable the equipment to be networked to access the Internet of things based on the logic code.
Referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of a method for accessing the internet of things according to the present application.
The embodiments of the present application provide an embodiment of a method for accessing an internet of things, and it should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that here.
The method for accessing the Internet of things comprises the following steps:
step S10, when the device to be networked is determined, visual configuration of parameter information is carried out based on a visual configuration tool, and a logic code is generated, wherein the parameter information is information required when the device to be networked is accessed to the Internet of things;
at present, a large number of electrical equipment which is not networked exists in the market, and in the process of upgrading the electrical equipment, the electrical equipment is required to be in butt joint with a built-in internet of things module so as to realize network access. After the intelligent terminal determines the equipment to be networked, visual configuration of parameter information is carried out on the basis of a visual configuration tool, and a logic code is generated; the parameter information is information required when the equipment to be networked accesses the Internet of things, and comprises attribute information, parameters, a system platform, optimization attributes and the like; the equipment to be networked comprises equipment such as a refrigerator, a washing machine, an electric fan, a desk lamp, a switch, a humidifier, a water purifier and the like; the intelligent terminal can be one of a mobile phone, a tablet computer, an intelligent wearing device and the like. Specifically, a rapid configuration tool runs in the intelligent terminal, visual configuration of parameter information is performed through the tool, five aspects of configuration are mainly performed, including platform configuration, function configuration, attribute configuration, optimization setting and export setting, and a Software Development Kit (SDK) of the internet of things device is generated based on the five aspects of configuration. The software development kit comprises a core SDK, a self-defined docking interface and an attribute table of equipment configuration, wherein the core SDK comprises system configuration attributes, a system docking function library, a communication function library, MCU platform configuration codes and docking module configuration codes. The user-defined docking interface comprises an equipment attribute input callback interface, an output callback interface, an equipment communication hardware docking interface and a system configuration function interface. The attribute table of the device configuration comprises a device support attribute list, a device index data type list, a device hardware platform configuration information table, a device networking function configuration information table and a device brand information table. After the intelligent terminal is configured in the five aspects, a software development kit and corresponding logic codes are generated.
Further, referring to fig. 4, the step of performing visual configuration of the parameter information based on the visual configuration tool includes:
step S11, determining the currently used microcontroller platform;
step S12, determining data information of the platform based on the microcontroller platform, wherein the data information comprises data type digit and end mode.
When the intelligent terminal enters the visual UI configuration page, firstly, preparation work of configuration parameters is carried out, for example, product functions and docking attributes are defined, new products are registered in a platform, and related information is filled in. The product function refers to a specific function of the product, namely, the function or the use of the product as a whole, such as the function of replacing the steps of an automobile, the function of keeping food fresh of a refrigerator, the function of adjusting air temperature of an air conditioner and the like. After completing the preparation work, the platform is set, and the main functions of the platform setting are to distinguish different MCUs (microcontrollers) from each other: the problem of the size end, the bit number of the integer (int), the problem of the memory addressing area of the C51 platform and the like, and a user can configure relevant settings according to the used MCU platform; wherein, the default Arm Cortex-M family of the configuration tool uses small end + int32, and the C51 and its compatible chip use large end + int 16. Specifically, when a user enters a platform setting UI interface of the configuration tool, bit number selection can be performed, that is, the number of bits of an int type of the platform is selected, including int (16bit) and int (32 bit); and (4) performing Endian selection, namely selecting a Big-end mode (storage mode), wherein the Big-end mode comprises arm-little-end (little-Endian) and 51-Big-end (Big-Endian), and a user can perform digit selection and Big-end mode selection through a tab set by the platform. In addition, the selection of C language platforms, such as xdata, idata, and data, is also required. For the C51 language, it is necessary to pay attention to the selection of the addressing area of the cache area, and after each operation, the software records the last setting, and if it needs to be changed, the selection needs to be performed again.
Further, referring to fig. 5, after the step of determining the data information of the platform based on the microcontroller platform, the method includes:
step S13, setting the heartbeat function of the software development kit, and setting a callback function based on the equipment serial number;
and step S14, setting the attribute types supported by the Internet of things equipment and the supported extended functions.
After the intelligent terminal completes the platform setting, the function setting is performed, the main purpose of the function setting is to optimize the functions required by the SDK, for example, only int8(Byte) variables are used in the communication protocol, so all codes for services such as int16, int32, float and the like are redundant, and the function setting can visually assist the user in code cutting. In the process of function setting, the method mainly comprises the steps of supporting intelligent screen function setting, attribute type setting and optional extended function setting, wherein the intelligent screen function is supported, and the method is used for adding a heartbeat automatic reply function to the SDK and setting a related callback function based on an SN (serial number) code. The automatic heartbeat reply function is set to detect whether the connection is normal, for example: the server sends a data packet to the client at regular time in a Timer event, then starts a low-level thread, continuously detects the response of the client in the thread, and if the response of the client is not received within a certain time, the client is considered to be disconnected; similarly, if the client does not receive the heartbeat packet of the server within a certain time, the connection is considered unavailable.
The support attribute type is set to change the default support attribute type and is linked with the attribute setting, wherein the data types related in the selected attribute comprise uint8, uint16, int32, float and string, a check box is arranged in front of each data type, and a user can select the corresponding support attribute type by clicking the check box. If some types are closed in the options of the data type, even if there are left-over property items in the property settings, no interface related to the type is exported, for example: if the uint8 data type is currently turned off, then the interface associated with the uint8 type will not be exported.
The optional expansion function is an exclusive function of the WiFi module, the intelligent screen does not support the intelligent screen, a user can select the optional expansion function according to requirements, for example, the monitoring module state, UTC time acquisition support, SSID acquisition support, signal strength acquisition support, IP address acquisition support and MAC address acquisition support are monitored, and a check frame is arranged in front of each option.
Further, referring to fig. 6, after the step of setting the attribute types supported by the internet of things device and the supported extended functions, the method includes:
step S15, acquiring the device information of the device to be networked;
step S16, setting the device type identification information and the communication attribute information based on the device information.
After the intelligent terminal completes the function setting, the attribute setting is carried out, and the main function of the attribute setting is to set a product 'triple' (product type, product model and manufacturer code) and set the product communication attribute; the specific attributes and the triples can be acquired through an open platform or from a docking engineer. When the triplet is set, the triplet includes a product type id, a product model (character string), a manufacturer id, and a type number of a device to be filled, where the type number refers to a type to which the product belongs, such as a washing machine, a desk lamp, and the like; filling a brand number of the equipment, wherein the brand number refers to a brand code, for example, the brand code of the creative dimension is 1; fill out the product model of the device, which refers to the model of the product itself, such as water purifier: T5A, the character length of the product type number name can not exceed 8 characters, and the product type number name can not have a semicolon. It should be noted that: the data types in the added communication attributes are linked through function setting, if the support attributes are modified after the added partial attributes, the attributes of the cancelled types will not be embodied in the final code, even if the attributes are written into the attribute list, the attributes will not be embodied in the code.
The attribute added in the communication attribute setting refers to information needing to be interacted with an APP terminal, the attribute name needs to select a data type, the number of the attributes is at most 31, the attribute name is at most 8 characters, and note information of the attributes can be filled in for facilitating communication with a partner. For example: the name of the attribute is POW-S, the type of the attribute is uint8, and the remarks of the attribute are as follows: 1 is power on and 2 is power off. After the corresponding attribute information is written, the attribute can be edited again and deleted.
Further, referring to fig. 7, after the step of setting the device type identification information and the communication attribute information based on the device information, the method includes:
step S17, when the memory space of the microcontroller is insufficient, the circular buffer area is modified;
in step S18, response setting is performed according to response requirements, and the response device includes a direct response and a delayed response.
After the attribute setting is completed, the intelligent terminal performs the optimized setting, and when the RAM (random access memory) or the ROM (read only memory) of the MCU is insufficient, the system consumption can be reduced by modifying or closing the circular buffer, wherein closing the circular buffer can reduce the consumption of code and data, but can increase the interruption time. After opening the circular buffer, the size of the buffer can be set, for example, to 128 sub-sections, and the maximum byte (sub-section) in the option can support 4 bits.
When the reply setting is carried out, the direct reply setting or the delayed reply setting can be carried out, wherein the direct reply is triggered when a sending function is called, and the reply is carried out after the manual setting of 200ms is needed; the delayed reply is sent 200ms after it has been set. When the direct reply is selected, each reply action will automatically add an interval when executing a plurality of commands for updating the attributes, so as to ensure that the module buffer can not overflow.
Further, referring to fig. 8, the reply setting according to the reply requirement, after the steps of the reply directly and the delayed reply, the reply device includes:
step S19, determining an output path;
and step S190, deriving the logic code according to the output path.
After the intelligent terminal completes the optimized setting, the intelligent terminal conducts export setting, selects an output path comprising an output file, an output position and the like, and exports a logic code based on the output path. After the logical code is exported by using an object side docking tool (iot-tools), a folder named as "swap" is generated in an export folder, and the directory structure of the folder comprises: product _ config.xlsx file, iot _ receive _ handler.c file, iot _ user _ config.h file, and lib folder, under which a plurality of subfiles are also included. product _ config.xlsx file: an information list is set for internal docking and data archiving. iot _ receive _ handle.c file: and the callback function is automatically generated and used for processing the instruction issued by the module or the intelligent screen. iot _ user _ config.h file: the automatically generated function interface internally comprises all available function interfaces. lib folder: the internet protocol relies on folders, which need to be added to the include path, but do not need to be read.
Step S20, transplanting the logic code to the device to be networked, so that the device to be networked accesses the internet of things based on the logic code.
After the intelligent terminal acquires the docking logic code, the logic code is transplanted to the equipment to be networked, and the logic code at the moment realizes logic and configuration of all communication with the Internet of things module, so that the equipment to be networked can be rapidly adapted to the Internet of things module through the logic code, and common electrical appliances are rapidly upgraded into intelligent Internet of things equipment. Specifically, when a migration request of a user is received, a logic code is divided into independent code segments with complete functions according to a slicing rule file, each code segment is migrated to a main chip of the device to be networked, and the main chip controls the device to be networked to perform networking operation.
In the embodiment, when the device to be networked is determined, visual configuration of parameter information is performed based on a visual configuration tool, and a logic code is generated, wherein the parameter information is information required when the device to be networked is accessed to the internet of things; and transplanting the logic code to the equipment to be networked so that the equipment to be networked accesses the Internet of things based on the logic code. The codes of the Internet of things equipment and the communication module are generated by using the visual configuration tool, and are transplanted to the Internet of things equipment, so that the coding difficulty of the MCU terminal is reduced, and the Internet of things equipment is rapidly accessed to a network.
Further, referring to fig. 3, a second embodiment of the method for accessing to the internet of things is provided.
The second embodiment of the method for accessing the internet of things is different from the first embodiment of the method for accessing the internet of things in that the step of migrating the logic code to the device to be networked comprises the following steps:
step S21, determining an Internet of things module in butt joint with the equipment to be networked;
step S22, the logic code is transplanted to the main chip of the device to be networked based on the Internet of things module.
The equipment to be networked is butted through a built-in Internet of things module to complete network access operation, and therefore when the equipment to be networked is butted, the butted Internet of things module needs to be determined, wherein the Internet of things module comprises a WiFi module, a ble-mesh module, an intelligent tablet computer and the like, the Internet of things module is used for receiving Internet of things data sent by terminal equipment or a server through an Internet of things communication protocol matched with the Internet of things module, format conversion is further carried out on the Internet of things data according to a conversion rule between a preset standard protocol and the Internet of things communication protocol matched with the Internet of things module, the Internet of things data conforming to the standard protocol is sent to a main chip of the equipment to be networked, and the main chip controls the equipment to be networked to carry out network access operation. It is understood that the module of the internet of things supports a plurality of interface types, such as one or more communication module interfaces, for example, a TCP/IP type module interface, a bluetooth module interface, and a 485 module interface.
In the embodiment, the logic code is transplanted to the main chip of the device to be networked based on the internet of things module, so that the device to be networked can be quickly adapted to the internet of things module, and common devices can be quickly upgraded into intelligent internet of things devices.
The application further provides an access internet of things system, in an embodiment, the access internet of things system includes a memory, a processor, and an access internet of things program stored on the memory and operable on the processor, and when executed by the processor, the access internet of things program implements the following steps:
when equipment to be networked is determined, visual configuration of parameter information is carried out based on a visual configuration tool, and a logic code is generated, wherein the parameter information is information required when the equipment to be networked is accessed to the Internet of things;
and transplanting the logic code to the equipment to be networked so as to enable the equipment to be networked to access the Internet of things based on the logic code.
In one embodiment, the system for accessing internet of things includes: a configuration module and a migration module;
the configuration module is used for carrying out visual configuration on parameter information based on a visual configuration tool when equipment to be networked is determined, and generating a logic code, wherein the parameter information is information required when the equipment to be networked is accessed to the Internet of things;
the migration module is configured to migrate the logic code to the device to be networked, so that the device to be networked accesses the internet of things based on the logic code.
Further, the migration module comprises a determination unit and a migration unit;
the determining unit is used for determining an internet of things module which is in butt joint with the equipment to be networked;
the transplanting unit is used for transplanting the logic code to a main chip of the equipment to be networked based on the Internet of things module.
Further, the configuration module comprises a determination unit;
the determining unit is used for determining the currently used microcontroller platform;
the determining unit is further used for determining data information of the platform based on the microcontroller platform, and the data information comprises data type digits and an end mode.
Further, the determination unit includes a setting subunit;
the setting subunit is used for setting the heartbeat function of the software development kit and setting a callback function based on the equipment serial number;
the setting subunit is further configured to set attribute types and extended functions supported by the internet of things device.
Further, the setting subunit is further configured to acquire device information of the device to be networked;
the setting subunit is further configured to set device type identification information and communication attribute information based on the device information.
Furthermore, the setting subunit is further configured to modify the circular buffer when the storage space of the microcontroller is insufficient;
the setting subunit is further configured to perform answer setting according to the answer requirement, and the answer device includes a direct answer and a delayed answer.
Further, the setting subunit is further configured to determine an output path;
the setting subunit is further configured to derive the logic code according to the output path.
The implementation of the functions of each module accessing the internet of things system is similar to the process in the method embodiment, and is not described in detail here.
In addition, the application still provides a terminal, the terminal includes memory, treater and stores on the memory and the access thing networking program of operation on the treater, the terminal is when confirming present equipment of treating networking, carries out the visual configuration of attributes such as butt joint "platform", "parameter", "attribute", "optimization" through visual configuration tool, simultaneously according to above-mentioned parameter, the equipment end thing networking butt joint code that can be "cross compilation" is generated automatically. Because the docking code realizes all logics and configurations for communicating with the Internet of things module, when the docking code is transplanted to the equipment to be networked, the Internet of things module can be rapidly adapted, so that common equipment can be rapidly upgraded into intelligent Internet of things equipment. And secondly, the terminal enables the equipment to be networked to be rapidly accessed into the Internet of things through the hardware Internet of things module and the user-defined code which is rapidly generated. By dynamically configuring the information of the equipment of the Internet of things, the complex configuration process of the development equipment in the development work of the Internet of things is shielded. And a control interface of any Internet of things equipment is realized through dynamic attribute configuration. And optimizing the communication function of any Internet of things equipment by dynamically configuring the optimization parameters. Through the continuous maintenance of the core SDK, the stability and consistency of the Internet of things equipment are improved. By transplanting the generated logic code, the development speed of the Internet of things equipment is improved, and the test pressure is reduced.
In addition, the present application also provides a computer readable storage medium, on which an access internet of things program is stored, and when being executed by a processor, the method for accessing the internet of things as described above is implemented.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While alternative embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following appended claims be interpreted as including alternative embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method for accessing an Internet of things, the method comprising:
when equipment to be networked is determined, visual configuration of parameter information is carried out based on a visual configuration tool, and a logic code is generated, wherein the parameter information is information required when the equipment to be networked is accessed to the Internet of things;
and transplanting the logic code to the equipment to be networked so as to enable the equipment to be networked to access the Internet of things based on the logic code.
2. The method for accessing internet of things as claimed in claim 1, wherein the step of migrating the logic code to the device to be networked comprises:
determining an Internet of things module which is in butt joint with the equipment to be networked;
and transplanting the logic code to a main chip of the equipment to be networked based on the Internet of things module.
3. The method for accessing the internet of things as claimed in claim 1, wherein the step of visually configuring the parameter information based on the visual configuration tool comprises:
determining a currently used microcontroller platform;
determining data information of a platform based on the microcontroller platform, wherein the data information comprises data type digits and an end mode.
4. The method for accessing the internet of things as claimed in claim 3, wherein the step of determining the data information of the platform based on the microcontroller platform is followed by:
setting a heartbeat function of a software development kit, and setting a callback function based on the equipment serial number;
and setting attribute types supported by the Internet of things equipment and supported extended functions.
5. The method for accessing the internet of things as claimed in claim 4, wherein the step of setting the attribute types supported by the internet of things device and the supported extended functions is followed by the steps of:
acquiring equipment information of the equipment to be networked;
and setting equipment type identification information and communication attribute information based on the equipment information.
6. The method for accessing the internet of things as claimed in claim 5, wherein the step of setting the device type identification information and the communication attribute information based on the device information is followed by the steps of:
when the storage space of the microcontroller is insufficient, modifying the circular buffer area;
and performing response setting according to response requirements, wherein the response device comprises a direct response and a delayed response.
7. The method for accessing internet of things as claimed in claim 6, wherein the response setting according to the response requirement, and the response device comprises the steps of directly responding and delaying response, and then comprises:
determining an output path;
the logic code is derived from the output path.
8. An access internet of things system, the system comprising:
the configuration module is used for carrying out visual configuration on parameter information based on a visual configuration tool when equipment to be networked is determined, and generating a logic code, wherein the parameter information is information required when the equipment to be networked is accessed to the Internet of things;
and the transplantation module is used for transplanting the logic code to the equipment to be networked so as to enable the equipment to be networked to access the Internet of things based on the logic code.
9. A terminal, characterized in that the terminal comprises a memory, a processor and an access internet of things program stored on the memory and run on the processor, the processor implementing the steps of the method according to any one of claims 1 to 7 when executing the access internet of things program.
10. A computer-readable storage medium, having stored thereon an access internet of things program that, when executed by a processor, performs the steps of the method of any of claims 1-7.
CN202011299395.1A 2020-11-18 2020-11-18 Method, system, terminal and computer readable storage medium for accessing internet of things Active CN112565029B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011299395.1A CN112565029B (en) 2020-11-18 2020-11-18 Method, system, terminal and computer readable storage medium for accessing internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011299395.1A CN112565029B (en) 2020-11-18 2020-11-18 Method, system, terminal and computer readable storage medium for accessing internet of things

Publications (2)

Publication Number Publication Date
CN112565029A true CN112565029A (en) 2021-03-26
CN112565029B CN112565029B (en) 2022-10-14

Family

ID=75044137

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011299395.1A Active CN112565029B (en) 2020-11-18 2020-11-18 Method, system, terminal and computer readable storage medium for accessing internet of things

Country Status (1)

Country Link
CN (1) CN112565029B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259155A (en) * 2021-04-21 2021-08-13 京东数字科技控股股份有限公司 Access method, device, gateway, medium and electronic equipment of Internet of things equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847093A (en) * 2016-02-04 2016-08-10 四川长虹电器股份有限公司 Internet-of-things based interconnecting and internetworking system, networking method and communication method
US20180018082A1 (en) * 2016-07-15 2018-01-18 Cisco Technology, Inc. Interface for network configuration via graphical representations of network topology and internetworking services
US20180205793A1 (en) * 2015-05-18 2018-07-19 Interdigital Technology Corporation Automated profiling and context dependent cooperative iot management operations
CN108810086A (en) * 2018-04-27 2018-11-13 电子科技大学中山学院 Intelligent equipment communication platform based on MQTT message protocol
CN109327551A (en) * 2018-12-04 2019-02-12 浩云科技股份有限公司 By the method and device of internet of things equipment access platform of internet of things, server
CN109739471A (en) * 2017-10-27 2019-05-10 北京一骑当千网络科技股份有限公司 Computer network game development system and method based on internet B/S structure
CN110430075A (en) * 2019-07-31 2019-11-08 安徽华速达电子科技有限公司 Management method for supporting logic configuration of support networking controller
CN110971614A (en) * 2019-12-17 2020-04-07 软通动力信息技术(集团)有限公司 Internet of things adaptation method and system, computer equipment and storage medium
CN111541576A (en) * 2020-05-13 2020-08-14 珠海迈科智能科技股份有限公司 Zigbee network-based equipment visualization method and system
CN111666126A (en) * 2020-06-09 2020-09-15 中亿丰建设集团股份有限公司 Building Internet of things integration system and method based on 3d visualization code-free development technology
CN111953587A (en) * 2020-08-11 2020-11-17 深圳市蓝科迅通科技有限公司 Intelligent Internet of things gateway, gateway equipment and management method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180205793A1 (en) * 2015-05-18 2018-07-19 Interdigital Technology Corporation Automated profiling and context dependent cooperative iot management operations
CN105847093A (en) * 2016-02-04 2016-08-10 四川长虹电器股份有限公司 Internet-of-things based interconnecting and internetworking system, networking method and communication method
US20180018082A1 (en) * 2016-07-15 2018-01-18 Cisco Technology, Inc. Interface for network configuration via graphical representations of network topology and internetworking services
CN109739471A (en) * 2017-10-27 2019-05-10 北京一骑当千网络科技股份有限公司 Computer network game development system and method based on internet B/S structure
CN108810086A (en) * 2018-04-27 2018-11-13 电子科技大学中山学院 Intelligent equipment communication platform based on MQTT message protocol
CN109327551A (en) * 2018-12-04 2019-02-12 浩云科技股份有限公司 By the method and device of internet of things equipment access platform of internet of things, server
CN110430075A (en) * 2019-07-31 2019-11-08 安徽华速达电子科技有限公司 Management method for supporting logic configuration of support networking controller
CN110971614A (en) * 2019-12-17 2020-04-07 软通动力信息技术(集团)有限公司 Internet of things adaptation method and system, computer equipment and storage medium
CN111541576A (en) * 2020-05-13 2020-08-14 珠海迈科智能科技股份有限公司 Zigbee network-based equipment visualization method and system
CN111666126A (en) * 2020-06-09 2020-09-15 中亿丰建设集团股份有限公司 Building Internet of things integration system and method based on 3d visualization code-free development technology
CN111953587A (en) * 2020-08-11 2020-11-17 深圳市蓝科迅通科技有限公司 Intelligent Internet of things gateway, gateway equipment and management method

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
刘宝华: "基于BIM的3D可视化智能管控平台的研究和应用", 《软件》 *
刘红义等: "基于可配置协议的智慧管网物联接入***", 《软件》 *
徐茂江等: "基于SSM和WebSocket的云电脑时延可视化***", 《工业控制计算机》 *
戴骏炜等: "物联网中间件的多行业解决方案", 《信息技术与标准化》 *
陈昊等: "基于REST风格的物联网应用开发模式探究", 《计算机与现代化》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259155A (en) * 2021-04-21 2021-08-13 京东数字科技控股股份有限公司 Access method, device, gateway, medium and electronic equipment of Internet of things equipment
CN113259155B (en) * 2021-04-21 2022-07-05 京东科技控股股份有限公司 Access method, device, gateway, medium and electronic equipment of Internet of things equipment

Also Published As

Publication number Publication date
CN112565029B (en) 2022-10-14

Similar Documents

Publication Publication Date Title
US7917232B2 (en) Building automation system data management
CA2996130C (en) Building automation system data management
CN104111827B (en) Application matches method and device
EP3709227A1 (en) System and method for interoperable communication of an automation system component with multiple information sources
CN105704234A (en) Control method and apparatus for intelligent device
CN108563579B (en) White box testing method, device and system and storage medium
CN111010317A (en) Bluetooth production and test method and system based on serial port and Bluetooth low-energy consumption dual protocol
WO2021115177A1 (en) Application installation method and apparatus, terminal device, server and storage medium
CN112565029B (en) Method, system, terminal and computer readable storage medium for accessing internet of things
CN108345449A (en) A kind of information processing method, device, storage medium and computer equipment
US20230214243A1 (en) One-machine multi-control method, apparatus, system and electronic device
CN107391408A (en) The creation method and equipment of EtherCAT main websites
CN110119282A (en) A kind of internet-of-things terminal and system based on general-purpose built-in type computer
CN109885332A (en) Image quality chip software upgrade method, device, display equipment and storage medium
CN111007733B (en) Method and device for integrating smart home terminal APP with smart device
CN114019817A (en) Control method and control device of intelligent household equipment and Internet of things system
CN113656005B (en) Application component library construction method, application component configuration method and related devices
CN110794773A (en) Click-type scene creating method and device
CN104572280B (en) A kind of Android applications method for switching theme
CN113449031A (en) Data synchronization management method and device and server
CN116431546B (en) Parameter configuration method, electronic device, storage medium, and program product
CN106648805A (en) Intelligent device, intelligent system, and method for intelligently installing application
CN108989117B (en) Configuration method of communication protocol, wireless communication device and household appliance
US10341451B2 (en) Cloud oriented stream scheduling method based on android platform
CN106656777A (en) Object-based smart home gateway communication interface framework

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant