A data conversion apparatus, method and storage medium
By using data conversion devices and server intermediaries, unified control and status monitoring of smart devices from different manufacturers are achieved, solving the problem of users having difficulty controlling and understanding the status of devices and improving the ease of use of smart home systems.
Patent Information
- Application Number
- CN202411386192.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2044-09-30
AI Technical Summary
Because smart devices from different manufacturers use different protocols, it is difficult for users to control and understand the status of the devices in a unified manner, requiring them to download multiple apps.
A data conversion device is provided, including a main control unit, an interface unit, and a communication unit, which realizes data protocol conversion and unified control of different devices through a server as an intermediary.
This allows users to control smart devices from different manufacturers in a unified manner, understand device status, and improve user experience and system usability.
Smart Images

Figure CN119276952B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of home equipment control, and particularly relates to a data conversion device, method and storage medium. BACKGROUND
[0002] With the improvement of intelligence, more and more intelligent devices appear in our life, such as intelligent lamps, intelligent sound, intelligent household appliances, etc. Since the intelligent devices come from different manufacturers, the intelligent devices of different manufacturers may use different protocols, so that users are difficult to use and need to download different APPs to use. SUMMARY
[0003] The application provides a data conversion device, method and storage medium. The application establishes connection with an electrical device through an interface unit, and forwards data interacted between the electrical device and a master control unit. The master control unit establishes communication connection with an external device through a communication unit. When the electrical device is connected to the interface unit, the master control unit sends connection information of the electrical device to the external device through the communication unit, and determines a data protocol applied by the electrical device according to attribute information of the electrical device received by the communication unit. The attribute information of the electrical device is determined according to the connection information of the electrical device and is fed back by the external device. The interface unit converts data interacted between the electrical device and the master control unit according to the data protocol applied by the electrical device. The user can use intelligent devices with different protocols and standards, and devices of multiple different manufacturers can be uniformly controlled, so that the user can centrally control intelligent devices of different manufacturers.
[0004] According to a first aspect of the present application, the embodiments of the present application provide a data conversion device, comprising: a master control unit, and an interface unit and a communication unit connected to the master control unit; the interface unit is configured to establish a connection with an electrical device and forward data exchanged between the electrical device and the master control unit; the master control unit is configured to establish a communication connection with an external device through the communication unit; wherein the master control unit is further configured to send connection information of the electrical device to the external device through the communication unit when the electrical device is connected to the interface unit, and determine a data protocol applied by the electrical device according to attribute information of the electrical device received by the communication unit; the attribute information of the electrical device is determined according to the connection information of the electrical device and is fed back by the external device; the interface unit is further configured to perform data conversion on data exchanged between the electrical device and the master control unit according to the data protocol applied by the electrical device.
[0005] In some embodiments, further comprising a prompting unit connected to the master control unit, the prompting unit is configured to send prompt information according to control of the master control unit, the prompt information comprising information that the external device is successfully connected to the electrical device through the data conversion device.
[0006] In some embodiments, further comprising a power supply unit connected to the master control unit, the power supply unit is configured to supply power to other units in the data conversion device by using electrical energy provided by the electrical device when the electrical device is connected to the interface unit.
[0007] In some embodiments, the master control unit is configured to transmit and receive data according to a serial port protocol; the serial port protocol comprises an asynchronous receiver transmitter serial port protocol.
[0008] According to a second aspect of the present application, the present application further provides a data conversion method implemented by the data conversion device according to any one of the first aspect, comprising the following steps: in response to connection of an electrical device, sending connection information of the electrical device to an external device; receiving attribute information of the electrical device fed back by the external device; wherein the attribute information of the electrical device is determined according to the connection information of the electrical device; determining a data protocol applied by the electrical device based on the attribute information of the electrical device; and performing data conversion on data exchanged with the electrical device according to the data protocol applied by the electrical device.
[0009] In some embodiments, the step of sending the connection information of the electrical equipment to the external device comprises: sending the connection information of the electrical equipment to a server for forwarding to a user terminal device by the server, so that the user can select the attribute information of the electrical equipment through the connection information of the electrical equipment prompted by the user terminal device; and the step of receiving the attribute information of the electrical equipment fed back by the external device comprises: receiving the attribute information of the electrical equipment forwarded by the server, wherein the attribute information of the electrical equipment is fed back by the user terminal device.
[0010] In some embodiments, the method further comprises the step of: outputting prompt information including information that the external device is successfully connected with the electrical equipment through the data conversion device, in the case that the attribute information of the electrical equipment is received.
[0011] In some embodiments, the step of data conversion on the data interacting with the electrical equipment according to the data protocol applied by the electrical equipment comprises: converting the instruction sent by the master control unit into an instruction recognizable by the electrical equipment according to the data protocol applied by the electrical equipment, wherein the instruction sent by the master control unit comprises a control instruction sent by the external device; and sending the instruction recognizable by the electrical equipment to the electrical equipment.
[0012] In some embodiments, the step of data conversion on the data interacting with the electrical equipment according to the data protocol applied by the electrical equipment comprises: converting the received data of the electrical equipment into data recognizable by the master control unit according to the data protocol applied by the electrical equipment, and sending the data to the master control unit; and the master control unit extracts data of a specified flag bit from the received data based on the attribute information of the electrical equipment, and determines the type and state of the electrical equipment according to the data of the specified flag bit.
[0013] In a third aspect, the present application provides a computer readable storage medium, the computer readable storage medium stores a computer program, characterized in that the computer program is executed by a processor to implement the method of any one of the second aspect.
[0014] Compared with the prior art, the embodiment of the present application has the beneficial effects that: the user can use intelligent devices of different protocols and standards, and devices of different manufacturers can be uniformly controlled, so that the user can centrally control intelligent devices of different manufacturers. The user can easily understand the historical working state and the current working state of the electrical device, and the problem that the user cannot well understand the state of the intelligent device due to the use of different protocols by intelligent devices of different manufacturers in the prior art is solved. The user can control the electrical device without the manufacturer's protocol, and the problem that the user cannot well control the intelligent device due to the use of different protocols by intelligent devices of different manufacturers in the prior art is solved. BRIEF DESCRIPTION OF DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0016] Figure 1 A structural schematic diagram of a data conversion device provided by the embodiment of the present application is provided.
[0017] Figure 2 A working interaction diagram of a data conversion device provided by the embodiment of the present application is provided.
[0018] Figure 3 An implementation flowchart of a data conversion method provided by the embodiment of the present application is provided. DETAILED DESCRIPTION
[0019] In the following description, specific details are set forth in order to provide a thorough understanding of the embodiments of the present application. However, persons skilled in the art should understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary details.
[0020] It should be understood that when used in the specification and the appended claims of the present application, the term "comprising" indicates the presence of the described features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or sets thereof.
[0021] It should also be understood that the term "and / or" as used herein refers to any one of the associated listed items, or a combination of any of the associated listed items, and all possible combinations, and includes these combinations.
[0022] As used in the description of the application and the appended claims, the term "if' can be interpreted to mean "when" or "upon" or "in response to determining" or "in response to controlling," depending on the context. Similarly, the phrase "if determined" or "if controlled" can be interpreted to mean "upon determining" or "in response to determining" or "upon controlling" or "in response to controlling."
[0023] In addition, in the description of the application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0024] In the present application, the reference "one embodiment" or "some embodiments" and the like means that the specific features, structures or characteristics described in connection with the embodiment are included in one or more embodiments of the application. Therefore, the statements "in one embodiment", "in some embodiments", "in other some embodiments", "in additional some embodiments" and the like appearing in different places in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized.
[0025] As the intelligent degree improves, more and more intelligent devices appear in our life, such as intelligent lamps, intelligent sound, intelligent household appliances, etc. Since these intelligent devices come from different manufacturers, different protocols may be used by intelligent devices from different manufacturers, which makes it difficult for users to use, and different APPs need to be downloaded for use.
[0026] Based on the technical problems existing in the prior art, the embodiments of the present application provide a data conversion device, which comprises a main control unit 22, and an interface unit 21 and a communication unit 23 connected with the main control unit 22.
[0027] One end of the interface unit 21 is connected with the main control unit 22, and the other end is used to connect the electrical appliance 10. After the interface unit 21 is connected with the electrical appliance 10, the interface unit 21 can forward the data exchanged between the electrical appliance 10 and the main control unit 22. Wherein the external device includes a server 31 and a user terminal device 32.
[0028] The main control unit 22 is connected with the interface unit 21 and the communication unit 23 at the same time, and can establish a communication connection with the external device through the communication unit 23.
[0029] When the interface unit 21 is connected to the electrical appliance 10 for the first time, the interface unit 21 generates a connection information, which is sent to the server 31 through the master control unit 22 and the communication unit 23. The server 31 sends the connection information to the user terminal device 32, and an APP is installed on the user terminal device 32. When the user terminal device 32 receives the connection information, the APP can find the connected electrical appliance 10, and the user can set the attribute information of the electrical appliance 10 on the APP, wherein the attribute information at least includes the manufacturer information of the electrical appliance 10. The attribute information set by the user is sent to the server 31 through the APP, and the server 31 sends the attribute information to the conversion device according to the connection information, so that the attribute information set by the user can be associated with the electrical appliance 10 through the connection information.
[0030] Next, the server 31 sends the attribute information to the master control unit 22 through the communication unit 23 of the conversion device. After receiving the attribute information, the master control unit 22 determines the conversion protocol for data conversion of the electrical appliance 10 according to the attribute information, and notifies the interface unit 21 of the conversion protocol, so that the interface unit 21 can convert the data required to be output by the electrical appliance 10 into data in the asynchronous receiver-transmitter serial port protocol (UART serial port communication protocol) using the conversion protocol. At the same time, the interface unit 21 can also convert the data sent by the master control unit 22 to the electrical appliance 10 into data in a protocol format matched with the electrical appliance 10 according to the conversion protocol.
[0031] In the present application, the conversion direction of the data conversion device has two directions, one is to send the data required to be output by the electrical appliance 10 to the server 31 after conversion by the interface unit 21 and the master control unit 22. The other is to send instructions from the user terminal device 32 with the APP to the electrical appliance 10 or send data from the server 31 to the electrical appliance 10.
[0032] In the process of sending the data of the electrical appliance 10 to the server 31, the data output by the electrical appliance 10 is first converted into data in the UART serial port communication protocol type by the interface unit 21 according to the conversion protocol, and the data in the UART serial port communication protocol type is sent to the master control unit 22. After receiving the data in the UART serial port communication protocol type, the master control unit 22 extracts the key information from the data.
[0033] Since the data of the UART serial communication protocol type contains a specified flag bit, after receiving the UART serial communication protocol type data, the main control unit 22 will identify the specified flag bit in the data and extract the key information in the data according to the identified specified flag bit. The key data here includes: the type of electrical device 10 and the data that electrical device 10 needs to send out, etc.
[0034] In some embodiments, the main control unit 22 can send the extracted key data to the server 31, which in turn sends it to the APP on the user terminal device 32, enabling real-time monitoring of the electrical appliance 10 through the APP. Alternatively, the data can be stored on the server 31. When needed, the user terminal device 32 can retrieve historical data from the server 31, allowing the user to easily understand the historical and current operating status of the electrical appliance 10. This solves the problem in the prior art where users find it difficult to understand the status of smart devices due to the different protocols used by smart devices from different manufacturers.
[0035] During the process of a user issuing commands to the electrical appliance 10 via a user terminal device 32 equipped with an APP, or a server 31 sending data to the electrical appliance 10, the user can edit commands or other operation steps on the APP and send these edited contents to the server 31, which then sends them to the communication unit 23 of the conversion device. After receiving the data from the server 31, the communication unit 23 sends the data to the main control unit 22, which then sends the data to the interface unit 21. The interface unit 21 converts the data into data corresponding to the device type of the electrical appliance 10 according to the conversion protocol, thus enabling the user to control the electrical appliance 10 without relying on the manufacturer's protocol. This solves the problem in the prior art where users have difficulty controlling smart devices due to different protocols used by smart devices from different manufacturers.
[0036] Alternatively, control commands can be preset in server 31, and server 31 can send data to the conversion device through the preset control commands.
[0037] The data conversion device in this application can be configured as an independently powered device, meaning that the power consumption of the conversion device is supplied by itself. However, this method would increase the size of the conversion device and also present a battery life problem. Therefore, in some embodiments, the conversion device of this application is provided with a power supply unit 24. The power supply unit 24 is connected to the communication unit 23, the main control unit 22, and the interface unit 21. When the interface unit 21 is connected to the electrical device 10, the power supply unit 24 can draw power from the electrical device 10 and supply power to the main control unit 22, the interface unit 21, and the communication unit 23.
[0038] In order to allow users to better understand whether the connection between the conversion device and the electrical equipment 10 and the user terminal device 32 is successful, in some embodiments, the conversion device further includes a prompting unit 25.
[0039] The prompting unit 25 is connected to the main control unit 22. The prompting unit 25 is used to issue prompting information according to the control of the main control unit 22. The prompting information includes information that the external device has successfully connected to the electrical device 10 through the data conversion device.
[0040] When electrical device 10 successfully connects to user terminal device 32 via conversion equipment, main control unit 22 controls prompting unit 25 to issue a reminder message. Prompt unit 25 can be an LED light, and the reminder message can be different lighting states or flashing states of the LED light. Of course, communication unit 23 in this application can be WIFI, or 5G, Bluetooth, IoT, or other communication technologies; this application does not impose any limitations.
[0041] The data conversion device can convert data from electrical devices 10 from different manufacturers, making it convenient for users to use smart devices with different protocols and standards, and enabling unified control and use of devices from multiple different manufacturers, providing users with a more convenient and intelligent smart home experience.
[0042] By using server 31 as an intermediary to process and transmit connection information, users can select the manufacturer information of the connected electronic device 10 through the APP without directly operating the electronic device or appliance 10. This greatly improves the system's usability and user experience, and makes the smart home system more flexible and scalable.
[0043] like Figure 2 As shown, the interactions between the electrical equipment 10, the conversion device, the server 31, and the user terminal device 32 in this application are as follows:
[0044] When the conversion device and the electrical device 10 are connected for the first time, the conversion device will send connection information to the server 31. The connection information will be sent by the server 31 to the user terminal device 32. After the user terminal device 32 receives the connection information, it can find the connected electrical device 10 through the APP on the user terminal device 32. The user can then set the attribute information of the electrical device 10. The set attribute information will be sent to the server 31 and then sent to the conversion device by the server 31.
[0045] The main control unit 22 in the conversion device can determine the conversion protocol used by the interface unit 21 to implement data conversion based on the attribute information, and notify the interface unit 21 of the conversion protocol, so that the interface unit 21 can convert the data that the electrical device 10 needs to send into serial port protocol data through the conversion protocol, and can also convert the data that needs to be input into the electrical device 10 into the data of the electrical device 10's preset protocol.
[0046] After the conversion device is configured, data from electrical device 10 can be obtained through the conversion device or the electrical device 10 can be controlled through the conversion device.
[0047] During the process of transmitting data from electrical device 10, interface unit 21 acquires the data transmitted by electrical device 10, and then converts the data transmitted by electrical device 10 into serial port protocol data through conversion protocol. Main control unit 22 identifies the serial port protocol data by specifying the flag bit, extracts key data from the serial port protocol data according to the specified flag bit, and sends the key data to server 31.
[0048] When controlling electrical equipment through a conversion device, the user presets instructions or operation data on the user terminal device 32. The instructions or operation data are sent to the server 31, and then sent to the conversion device via the server 31. The interface unit 21 in the conversion device converts the instructions or operation data into data of the preset protocol of the electrical equipment 10 according to the conversion protocol, and sends it to the electrical equipment 10 to realize the control of the electrical equipment.
[0049] Example 2:
[0050] To address the problems existing in the current technology, such as Figure 3 As shown, this application provides a data conversion method. The method is implemented in electronic production equipment, which may include servers, mobile terminals, computers, cloud platforms, and conversion devices. The data processing functionality provided in this application can be achieved by the processor of the electronic production equipment calling program code, wherein the program code can be stored in a computer storage medium. The conversion method includes:
[0051] Step S1: In response to the access of electrical equipment, send the connection information of the electrical equipment to the external device.
[0052] In some embodiments, step S1, "sending the connection information of the electrical device to an external device," includes:
[0053] Step S11: Send the connection information of the electrical device to the server, so that the server can forward it to the user terminal device, so that the user can select the attribute information of the electrical device through the connection information of the electrical device prompted by the user terminal device.
[0054] When the interface unit first connects to the electrical device, it generates connection information, which is then sent to the server via the main control unit and communication unit. An app is installed on the user's device, allowing the user to configure the electrical device's properties, including at least the manufacturer. The user-configured properties are sent to the server via the app. Since connection information from the conversion device exists at this point, the user-configured properties can be linked to the electrical device using this connection information.
[0055] Step S2: Receive the attribute information of the electrical device fed back by the external device. The attribute information of the electrical device is determined based on the connection information of the electrical device.
[0056] In some embodiments, step S2, "receiving attribute information of the electrical device fed back by the external device," includes:
[0057] Step S21: Receive the attribute information of the electrical device forwarded by the server, wherein the attribute information of the electrical device is fed back by the user terminal device.
[0058] Step S3: Determine the data protocol used by the electrical appliance based on its attribute information.
[0059] The server sends attribute information to the main control unit via the communication unit of the conversion device. Upon receiving the attribute information, the main control unit determines the conversion protocol for data conversion of the electrical equipment and notifies the interface unit of this protocol. This allows the interface unit to use the conversion protocol to convert the data to be sent by the electrical equipment into data using the Asynchronous Receiver / Transmitter Serial Protocol (UART) serial communication protocol. Simultaneously, the interface unit can also convert the data sent by the main control unit to the electrical equipment into a protocol format compatible with the electrical equipment, based on the conversion protocol.
[0060] Step S4: Perform data conversion on the data interacting with the electrical equipment according to the data protocol of the electrical equipment application.
[0061] The data conversion device in this application has two conversion directions: one is to send the data that the electrical equipment needs to output to the server after conversion by the interface unit and the main control unit; the other is for the user to issue commands to the electrical equipment through a user terminal device equipped with an APP, or for the server to send data to the electrical equipment.
[0062] In some embodiments, step S4, "converting the data interacting with the electrical device according to the data protocol applied by the electrical device," includes:
[0063] Step S41: According to the data protocol used by the electrical equipment, convert the instructions sent by the main control unit into instructions that the electrical equipment can recognize. The instructions sent by the main control unit include control instructions sent by the external device.
[0064] Step S42: Send the instruction that the electrical device can recognize to the electrical device.
[0065] During the process of a user issuing commands to an electrical appliance via a user-end device equipped with an app, or a server sending data to the electrical appliance, the user can edit commands or other operation steps on the app and send these edits to the server. The server then forwards the edits to the communication unit of the conversion device. After receiving the data from the server, the communication unit sends the data to the main control unit, which in turn sends the data to the interface unit. The interface unit converts the data into data corresponding to the type of the electrical appliance according to the conversion protocol, thus enabling the user to control the electrical appliance without relying on the manufacturer's protocol. This solves the problem in existing technologies where users find it difficult to effectively control smart devices due to the different protocols used by smart devices from different manufacturers.
[0066] Alternatively, you can choose to preset control commands in the server, and the server will send data to the conversion device through the preset control commands.
[0067] In some embodiments, step S4, "converting the data interacting with the electrical device according to the data protocol applied by the electrical device," further includes:
[0068] Step S43: According to the data protocol of the electrical equipment, convert the received data from the electrical equipment into data that the main control unit can recognize, and send it to the main control unit.
[0069] Step S44: The main control unit extracts data of a specified flag bit from the received data based on the attribute information of the electrical device, and determines the type and status of the electrical device according to the data of the specified flag bit.
[0070] During the process of sending data from electrical equipment to the server, the data output by the electrical equipment is first converted into UART serial communication protocol type data by the interface unit according to the conversion protocol, and then sent to the main control unit. After receiving the UART serial communication protocol type data, the main control unit extracts key information from the data.
[0071] Because the data in the UART serial communication protocol type contains specified flag bits, the main control unit will identify the specified flag bits after receiving the UART serial communication protocol type data. Based on the identified special standard bits, the key information in the data will be extracted. The key data here includes: the type of electrical equipment and the data that the electrical equipment needs to send out, etc.
[0072] In some embodiments, the main control unit can send the extracted key data to the server, which then sends it to the user's mobile app, enabling real-time monitoring of the electrical equipment. Alternatively, the data can be stored on the server. When needed, the user's mobile device can retrieve historical data from the server, allowing the user to easily understand the historical and current operating status of the electrical equipment. This solves the problem in existing technologies where different manufacturers' smart devices use different protocols, making it difficult for users to understand the status of smart devices.
[0073] To allow users to better understand whether the connection between the conversion device, electrical equipment, and user-end equipment is successful, in some embodiments, the method further includes the following steps:
[0074] Step S5: Upon receiving the attribute information of the electrical device, output a prompt message, which includes information that the external device has successfully connected to the electrical device through the data conversion device.
[0075] When the electrical equipment successfully connects to the user terminal equipment via the conversion device, the main control unit controls the prompting unit to issue a reminder message. The prompting unit can be an LED light, and the reminder message can be different lighting states or flashing states of the LED light. Of course, the communication unit in this application can be WIFI, 5G, IoT, or other communication technologies; this application does not impose any limitations.
[0076] Data conversion methods can convert data from electrical devices from different manufacturers, making it easier for users to use smart devices with different protocols and standards, and enabling unified control and use of devices from multiple different manufacturers, providing users with a more convenient and intelligent smart home experience.
[0077] Example 3:
[0078] Thirdly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method as described in any one of the first aspects.
[0079] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0080] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0081] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0082] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0083] In the embodiments provided in this application, it should be understood that the disclosed apparatus / network devices and methods can be implemented in other ways. For example, the apparatus / network device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0084] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0085] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A data conversion device, characterized in that, include: A main control unit, and an interface unit and a communication unit connected to the main control unit; The interface unit is used to establish a connection with electrical equipment and to forward the data exchanged between the electrical equipment and the main control unit; The main control unit is used to establish a communication connection with external devices through the communication unit; The main control unit is further configured to, when the electrical device is connected to the interface unit, send the connection information of the electrical device to an external device through the communication unit, and determine the data protocol applied by the electrical device based on the attribute information of the electrical device received by the communication unit; the attribute information of the electrical device is determined based on the connection information of the electrical device and fed back by the external device, and the attribute information includes: the manufacturer information of the electrical device manufacturer; The main control unit is configured to send and receive data according to a serial port protocol; the serial port protocol includes an asynchronous transceiver serial port protocol. The data output by the electrical equipment is first converted into UART serial communication protocol type data by the interface unit according to the conversion protocol, and then the UART serial communication protocol type data is sent to the main control unit. After receiving data in the UART serial communication protocol type, the main control unit will extract key information from the data and send the extracted key data to the external device. The interface unit is also used to perform data conversion on the data exchanged between the electrical equipment and the main control unit according to the data protocol applied by the electrical equipment; The external devices include: servers and user terminal devices; During the process of a user issuing instructions to the electrical appliance through the user terminal device equipped with the APP or the server sending data to the electrical appliance, the user edits instructions or other operation steps on the APP and sends these edited contents to the server, which then sends them to the communication unit of the conversion device. After receiving data from the server, the communication unit sends the data to the main control unit; The main control unit then sends the data to the interface unit; The interface unit converts the data into data corresponding to the device type of the electrical device according to the conversion protocol.
2. The data conversion device according to claim 1, characterized in that, It also includes a prompting unit connected to the main control unit, the prompting unit being used to issue prompting information according to the control of the main control unit, the prompting information including information that the external device has successfully connected to the electrical equipment through the data conversion device.
3. The data conversion device according to claim 1, characterized in that, It also includes a power supply unit connected to the main control unit, which is configured to supply power to other units in the data conversion device using the electrical energy provided by the electrical device when the electrical device is connected to the interface unit.
4. A data conversion method implemented using the data conversion device according to any one of claims 1 to 3, characterized in that, Includes the following steps: In response to the connection of an electrical device, the connection information of the electrical device is sent to an external device; Receive attribute information of the electrical device fed back by the external device; wherein the attribute information of the electrical device is determined based on the connection information of the electrical device; The data protocol used by the electrical equipment is determined based on the attribute information of the electrical equipment. According to the data protocol used by the electrical equipment, the data interacting with the electrical equipment is converted.
5. The method according to claim 4, characterized in that, The step of sending the connection information of the electrical device to an external device includes: The connection information of the electrical appliance is sent to the server, which then forwards it to the user terminal device, allowing the user to select the attribute information of the electrical appliance based on the connection information provided by the user terminal device. The step of receiving the attribute information of the electrical device fed back by the external device includes: The system receives attribute information of the electrical appliance forwarded by the server, wherein the attribute information of the electrical appliance is fed back by the user terminal device.
6. The method according to claim 5, characterized in that, The method further includes the following steps: Upon receiving the attribute information of the electrical device, a prompt message is output, including information that the external device has successfully connected to the electrical device through the data conversion device.
7. The method according to claim 4, characterized in that, The step of converting the data interacted with the electrical device according to the data protocol applied by the electrical device includes: According to the data protocol used by the electrical equipment, the instructions sent by the main control unit are converted into instructions that the electrical equipment can recognize; wherein, the instructions sent by the main control unit include control instructions sent by the external device; Send instructions that the electrical device can recognize to the electrical device.
8. The method according to claim 4, characterized in that, The step of converting the data interacted with the electrical device according to the data protocol applied by the electrical device includes: According to the data protocol of the electrical equipment, the received data from the electrical equipment is converted into data that the main control unit can recognize and then sent to the main control unit; The main control unit extracts data of a specified flag bit from the received data based on the attribute information of the electrical device, and determines the type and status of the electrical device based on the data of the specified flag bit.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 4 to 8.
Citation Information
Patent Citations
Control method and device of intelligent home, storage medium, and robot
CN110618614A
Device network configuration method and apparatus, electronic device and storage medium
CN113412469A