IOT-ENABLED DEVICE AND A METHOD FOR PROVIDING INTERNET CONNECTIVITY TO A DEVICE
20170347224 · 2017-11-30
Inventors
Cpc classification
H04L9/08
ELECTRICITY
H04L12/2836
ELECTRICITY
G06F21/445
PHYSICS
H04L12/2818
ELECTRICITY
H04L67/12
ELECTRICITY
H04L63/0876
ELECTRICITY
H04W4/70
ELECTRICITY
H04L12/2825
ELECTRICITY
International classification
H04W4/00
ELECTRICITY
H04L9/08
ELECTRICITY
Abstract
A device (110) comprising: an electronic module (111) comprising a control unit (112) communicatively connected via a communication bus (114) with a communication interface (113); a connectivity module (120) configured to provide Internet connectivity for the device (110) via a data interface (122) communicatively connected with electronic module (111); characterized in that the device (110) further comprises: a data proxy module (127) connected between the data interface (122) of the connectivity module (120) and the communication bus (114) for transmitting data between the data interface (122) and the communication bus (114).
Claims
1. A device (110) comprising: an electronic module (111) comprising a control unit (112) communicatively connected via a communication bus (114) with a communication interface (113); a connectivity module (120) configured to provide Internet connectivity for the device (110) via a data interface (122) communicatively connected with electronic module (111); characterized in that the device (110) further comprises; a data proxy module (127) connected between the data interface (122) of the connectivity module (120) and the communication bus (114) for transmitting data between the data interface (122) and the communication bus (114).
2. The device according to claim 1, wherein the data proxy module (127) comprises: a first sniffing module (311) configured to read data transmitted via the communication bus (114) from the control unit (112) to the communication interface (113); a second sniffing module (312) configured to read data transmitted via the communication bus (114) from the communication interface (113) to the control unit (112); and a multiplexer (321) configured to multiplex data read by the first sniffing module (311) and the second sniffing module (312) and to transmit the multiplexed data to the data interface (122).
3. The device according to claim 1, wherein the data proxy module (127) comprises; a first injecting module (331) configured to transmit data via the communication bus (114) to the control unit (112); a second injecting module (332) configured to transmit data via the communication bus (114) to the communication interface (113); and a demultiplexer (322) configured to read data from the data interface (122) and to demultiplex and transmit that data to the first injecting module (331) and to the second injecting module (332).
4. The device according to claim 1 wherein the data interface (122) is a wireless interface.
5. A method for providing Internet connectivity to a device (110) comprising an electronic module (111) with a control unit (112) communicatively connected via a communication bus (114) with a communication interface (113) by adding to the device (110) a connectivity module (120) with a data interface (122) configured to communicate the device with the Internet; the method being characterized by: providing a data proxy module (127) connected between the data interface (122) of the connectivity module (120) and the communication bus (114); and transmitting data between the data interface (122) and the communication bus (114).
6. The method according to claim 5, characterized by transmitting raw data between the data interface (122) and the communication bus (114).
7. A system comprising: at least one device (110) according to claim 1; and a back-end cloud server (160) comprising: a machine-to-machine server (140) configured to communicate with the connectivity module (120) of the device (110), an application enablement server (150) connected with the machine-to-machine server (140) and configured to handle communication between the device (110) and an end-user device (170); wherein the application enablement server (150) comprises a data mod& and protocol parser (152) configured to interpret device-specific data (110) transmitted via the data interface (122).
8. The system according to claim 5, wherein: the connectivity module (120) comprises a register (126) storing machine-to-machine (M2M) credentials; and the machine-to-machine server (140) comprises an authentication module (141) for authenticating the connectivity module (120) using the machine-to-machine credentials (126).
9. A method for providing access from an end-user device (170)10 an IoT device (110) of claim 1 via a system; the system comprising: at least one device (110) comprising: an electronic module (111) comprising a control unit (112) communicatively connected via a communication bus (114) with a communication interface (113); a connectivity module (120) configured to provide Internet connectivity for the device (110) via a data interface (122) communicatively connected with electronic module (111); characterized in that the device (110) further comprises: a data proxy module (127) connected between the data interface (122) of the connectivity module (120) and the communication bus (114) for transmitting data between the data interface (122) and the communication bus (114); and a back-end cloud server (160) comprising: a machine-to-machine server (140) configured to communicate with the connectivity module (120) of the device (110); an application enablement server (150) connected with the machine-to-machine server (140) and configured to handle communication between the device (110) and an end-user device (170); wherein the application enablement server (150) comprises a data model and protocol parser (152) configured to interpret device-specific data (110) transmitted via the data interface (122); and , the method comprising: in the application enablement server (150): identifying the model of the IoT device (110); and parsing data transmitted between the end-user device (170) and the IoT device (110) by a protocol parser (152) depending on the identified model.
Description
BRIEF DESCRIPTION OF FIGURES
[0047] The presented method and system are shown by means of example embodiments on a drawing, wherein:
[0048]
[0049]
[0050]
[0051]
[0052]
[0053]
[0054]
[0055]
NOTATION AND NOMENCLATURE
[0056] Some portions of the detailed description which follows are presented in terms of data processing procedures, steps or other symbolic representations of operations on data bits that can be performed on computer memory. Therefore, a computer executes such logical steps thus requiring physical manipulations of physical quantities.
[0057] Usually these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated in a computer system. For reasons of common usage, these signals are referred to as bits, packets, messages, values, elements, symbols, characters, terms, numbers, or the like.
[0058] Additionally, all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantifies. Terms such as “processing” or “creating” or “transferring” or “executing” or “determining” or “detecting” or “obtaining” or “selecting” or “calculating” or “generating” or the like, refer to the action and processes of a computer system that manipulates and transforms data represented as physical (electronic) quantities within the computer's registers and memories into other data similarly represented as physical quantities within the memories or registers or other such information storage.
[0059] A computer-readable (storage) medium, such as referred to herein, typically may be non-transitory and/or comprise a non-transitory device, in this context, a non-transitory storage medium may include a device that may be tangible, meaning that the device has a concrete physical form, although the device may change its physical state. Thus, for example, non-transitory refers to a device remaining tangible despite a change in state,
[0060] In the present disclosure, the term “video content” is to be understood more broadly as multimedia content comprising video data and associated audio data and associated additional data (such as content description, etc.). The term “video content” is used to distinguish the content from other content types, such as still images or raw data (e.g. files).
DETAILED DESCRIPTION
[0061] The structure of the improved device is shown in
[0062] Usually, the legacy electronics of a device are composed by different physical parts, such as a main control unit module 112 (e.g. working as power/motor controller), by a user interface module 113 for enabling the user in controlling the device settings (such as the control panel of a washing machine) and/or by a service port module 113 for enabling service debug (such as for a local repair service).
[0063] Usually, these electronics modules are connected through an internal communication bus 114 (usually, a digital bus such as UART or I2C or USB or others) for exchanging messages, such as data and command messages. This internal communication bus 114 can be physical/logical dissected in order to get the in and out messages and proxy all the messages to/from the cloud through the client, by incorporating therein a data proxy module 127.
[0064] For example, the data proxy module 127 can be connected with the electronic module 111 simply interconnecting the communication bus and rely on its multi node capabilities and configuring the data proxy module 127 as an additional bus node (such as for an I2C or other type of Wired-OR bus), or by dissecting the bus with ad-hoc bidirectional input/output ports of the data proxy module 127 able to get the data and replicate seamless (such as for UART or other point-to-point serial bus type) or by simply connecting the service port of the device also providing a second port reply.
[0065] The data proxy module 127 can be realized by means of embedded hardware and software capabilities of the connectivity module 120 itself or it can be Implemented as add-on interface module between the communication bus 114 and the connectivity module 120 in order to preserve the generic hardware and software implementation of connectivity module 120, that is primary designed in order to be reused for different communication bus technologies.
[0066] The messages transmitted via the internal bus 114 are usually binary frames, whose data-protocol and data-model are custom and device-specific.
[0067] The improved device as presented herein uses a pretty piggyback approach that does not need to modify the legacy hardware/software designs of the legacy electronics 111 of the device and requires just to insert the connectivity module 120 over the internal communication bus 114.
[0068] This piggyback approach does not need to have a local on-board knowledge of the messages data protocol and data-model, but it works as an agnostic proxy 127 sending/receiving transparently all the binary messages in a row format to/from the cloud in upstream and downstream direction, as shown in
[0069] The proxy module 127 comprises a first sniffing module 311 that monitors data transmission 301 from the control unit 112 to the communication interface 113 (UI or service port), and a second sniffing module 312 that monitors data transmission 302 from the communication interface 113 (UI or service port) to the control unit 112. Any data that is transmitted over the communication bus 114 is multiplexed by a multiplexer 321 and transmitted upstream by a data interface 122 via the Internet 130 to the M2M back-end server 140 in the cloud. The data interface 122 can be a wireless interface, e.g. a Wi-Fi interface.
[0070] A message parser 152 is located in the cloud, that knows the specific device data-protocol and data-model and can decode all the device data-protocol and model.
[0071] In case of a downstream direction, any data transferred downstream by a data interface from the cloud is demultiplexed by the demultiplexer 322, that may operate e.g. by analyzing the destination addresses (node addresses) of the messages. In that case the proxy module 127 utilizes a first injecting module 331 that inputs the data transmission 304 from the could to the control unit 112, and a second injecting module 332 that inputs the data transmission 303 from the cloud to the communication interface 113 (UI or service port).
[0072] This approach avoids the addition of specific hardware/software capabilities at the legacy electronics 111 of the device. There is no need to add capabilities to the control unit module 112 or to the user interface/service port module 113 for being able to manage the appropriate communication data (send/receive the appropriate data message) with the appropriate data-model and data-protocol.
[0073] This approach avoids having a custom software running locally on the device and able to recognize the specific data-protocol and data-model of the device.
[0074] The piggyback approach is based on a pure transparent software proxy 127 and the device-specific data-protocol and data-model intelligence is virtualised in the cloud.
[0075] The device described with reference to
[0076] Typically, for a device such as described with reference to
[0079] The improved activation procedure makes a specific use of the device M2M credentials 126 (such as the client ID and authentication ID) and device S/N ID and relates to the particular manner of how these IDs are provisioned locally on the device during the manufacturing phases and in the cloud for the M2M and application enablement servers usage.
[0080] The client ID is a unique physical ID related to the connectivity module 120, such as the MAC address of the connectivity module 120. It is stored on the connectivity module in an ad-hoc electronic register 126 and it is written during the connectivity module manufacturing in the connectivity manufacturing modules factory (Factory 1 401). The client ID must be unique for the connectivity module 120 (such as its MAC address) for serving the M2M connectivity. There is no need to store the list of client IDs of the produced connectivity modules 120 during the manufacturing procedure in Factory 1 and there is no need to provision the list of client IDs in the cloud.
[0081] The authentication ID is based on a unique client SSL/TLS (Secure Socket Layer/Transport Layer Security) certificate as specified in the mutual authentication procedure of the SSL/TLS standard based on a unique private key and related public key. The unique TLS/SSL client certificate is pre-generated and stored on the connectivity module 120 in an ad-hoc electronic register 126 and it is written during the connectivity module manufacturing in the connectivity manufacturing modules factory (Factory 1). There is no need to store the list of TLS/SSL certificates of the produced connectivity modules 120 during the manufacturing procedure in Factory 1 and there is no need to provision the list of the TLS SSL certificates in the cloud.
[0082] The device S/N ID is a unique production ID of the device, identifying e.g. the vendor, category, model and production unit. The device S/N ID does not have to be written in any electronic register (firmware/one-time programmable (FW/OTP) register), neither on the device legacy electronic module, nor on the connectivity module during any manufacturing procedure of the device manufacturing or connectivity module manufacturing. The device S/N ID can be printed as a string or OR code label 115A to be attached at the device chassis, even in the user-friendly format of an Activation code. There is no need to store the S/N IDs list of the produced devices during the manufacturing procedure in Factory 2 501 and no need to provision the list of the S/N IDs in the cloud.
[0083] The connectivity module 120 is stand-alone produced before the device assembly and can be produced in a different factory than the factory in which the device is assembled.
[0084]
[0092] The miniAP SSID and miniAP WPA2 are examples of implementation of the invention for communication over Wireless Protected Access (WPA, WPA2). Therefore, miniAP SSID is a specific example of a wireless client access point identifier, by which it can temporary work as an access point (mini Access Point), such as at the first power-on just for enabling the end-user device to connect and configure the client credentials for the user's wireless network. miniAP WPA2 is an example of a wireless encryption key. The Client WiFi credentials are the SSID and the WPA2 that are the name and the encryption key of the user's wireless network.
[0093] For every client unit produced, a label is printed in step 430 (both in a text and QR code forms) reporting the miniAP SSID and miniAP WPA2. Each label 115B should be included in each connectivity module 120 package for later assembly with device.
[0094]
[0095]
[0096] The wizard may request the user: [0097] to select the device miniAP SSID as written on the label or by QR code and to input the miniAP WPA2 as written on the label or by QR code, in step 611; [0098] to input the activation code as written on the label or by QR code in step 612; [0099] to input the in-home wireless network SSID and WPA (or WPA2).
[0100] The wizard transparently obtains the client ID of the connectivity module in step 613.
[0101] After having applied by the user, the wizard commands a device change state to STA (Station) mode.
[0102] Then, the mobile application initiates the first connection to the cloud system.
[0103] The mobile application disconnects the miniAP and connects to The Internet by the in-home wireless network (e.g. Wi-Fi) or in 3G/4G connection in step 620.
[0104] As soon as the mobile application is connected to the cloud server 160, it sends the “Add device” message, reporting the new client ID <-> activation code pair in step 621.
[0105] The cloud verifies in step 630 whether in the incoming “add device” message of the application: [0106] the user ID is valid and present in the users inventory database 655; [0107] the client ID is valid as it has been transported by a valid mutual SSL/TLS client certificate; [0108] the activation code is valid and present in the activation codes inventory database 502; [0109] the user ID, client ID and activation code have not yet been associated in an active identifiers inventory database 651;
[0110] If so, this new client ID—activation code (or device ID S/N) pair 652 is stored in the active identifiers inventory database 651 and associated to this user ID in step 650.
[0111] The message is discarded in step 640: [0112] if the User ID is not valid or not present in the users inventory database 655; [0113] if the client ID is not valid because it has been transported by a not valid mutual SSL/TLS client certificate; [0114] if the activation code is not valid or not present in the activation codes inventory database 502.
[0115] If the incoming pair of client ID—activation code (or Device ID S/N) is already present in the active identifiers inventory database 651 then: [0116] if the incoming user ID is the current user ID associated with that device in the active identifiers inventory database 651, then no action has to be done (the same user has launched again the activation procedure on a device that has been already activated by the same user); [0117] if the incoming user ID is different than the user ID currently associated in the active identifiers inventory database 651 with the device, then an error can be issued if no new additional User ID can be allowed to be associated with that device.
[0118] If the activation code and the user ID are valid and present in the activation codes inventory database 502, and already associated to a current client ID, then: [0119] if the incoming client ID is the same as the current client ID associated with that device in the active identifiers inventory database 651, then no action has to be done (the user has launched again the activation procedure on a device already activated by that user); [0120] if the incoming client ID is valid (as it has been transported by a valid mutual SSL/TLS client certificate) but different than the current client ID associated with that device in the active identifiers inventory database 651, then it means a client replacement has been performed'then the current client ID (old) is replaced by the incoming one (new) in the activation codes inventory database.
[0121] If the client ID and the user ID are valid and already associated to a current activation code in the active identifiers inventory database 651, then: [0122] If the incoming activation code is the same as the current activation code, then no action to do (the user has launched again the activation procedure on a device already activated by that user); [0123] If the incoming activation code ID is valid (present in the activation codes inventory database 502), but different than the activation code currently associated with the client ID, then the “add device” message is discarded (as it can relate to a case of use of many devices of the same vendor owned by the same user).
[0124] There are therefore two, three or four inventory databases that can be utilized in the system: [0125] Inv.1: activation codes 502—generated during manufacturing procedure in factory and then provisioned in the back-end server 160; [0126] inv.2: active identifiers inventory database 651—an internal database at the back-end server 160 that records which activation IDs have been already activated by the device activation procedure; [0127] Inv.3: user identifiers inventory database 655 (optional)—generated in the back-end server 160 before the device activation procedure; [0128] inv.4: client identifiers inventory database 656 (optional)—generated in the back-end server 160 before the device activation procedure.
[0129] The system does not require to generate a database of client identifiers during the manufacturing procedure in the factory nor in the back-end server: the validation of the client ID is done on the fly: the incoming client ID is valid if it is transported by a valid SSL/TLS client certificate. The database of client identifiers 656 can be generated optionally in the back-end server for valid client identifiers, i.e. those that have been transported by a valid mutual SSL/TLS client certificate.
[0130] The SSL/TLS client certificates stored on-board of the device during the manufacturing procedure in the factory do not need to be stored in any factory inventory database to be then provisioned in the back-end server: each SSL/TLS client certificate is validated by the SSL/TLS server in the back-end according to the SSL/TLS standard.
[0131]
[0132] First, during the SSL/TLS session in step 710: [0133] the connectivity agent 711 starts an SSL connection with the SSL server 712; [0134] the server requires the client certificate; [0135] the agent certificates the SSL server by receiving its certificate 714; [0136] the server certificates the SSL client of the agent by receiving its certificate 713.
[0137] If the authentication ID certificate is considered as valid in step 720, the MQTT session is initiated in step 740, and it is discarded otherwise in step 730.
[0138] During the MQTT (Message Queuing Telemetry Transport) session: [0139] the agent send its first Connect message 745 using client ID (MAC) as MQTT clientId and receive a connection acknowledgement (ConnArk) 746; [0140] the agent sends a publish (Pub) message 747 using a topic with a prefix and client ID.
[0141] The MQTT broker propagates to device API the payload 760 of the MQTT message along with the client ID 750 (e.g. the MAC address).
[0142] The device API checks 780 if the client ID exists as a registered pair 653 in an active identifiers inventory database 651 and has associated an activation code: [0143] If the client ID does not exist in the client identifiers database 656, the message is discarded in step 782; [0144] If the client ID exists in the client identifiers database 656, but the activation code is not yet associated with that client ID in the active identifiers inventory database 651, the message is discarded (the application has not sent yet the “add device” message) in step 782; [0145] if the client exists and has an activation code paired in the active identifiers inventory database 651, then the payload and activation code are passed to higher level (such as toward the Binary Parser) in step 781.
[0146]
[0147] This wizard requests to the user: [0148] to select the device rniniAP SSID as written on the new label 115C or by new QR code and to input the miniAP WPA2 as written on the new label 115C or by new OR code in step 811; [0149] to input the activation code as written on the old device label 115A or by old device OR code in step 812; [0150] to input the in-home wireless network SSID and WPA.
[0151] The wizard transparently gets the new client ID in step 813.
[0152] After having applied by the user the wizard commands a device change state into STA mode.
[0153] The mobile application disconnects the miniAP and connects to the Internet by the in-home wireless network or in 3G/4G connection in step 820.
[0154] As soon as the mobile application is connected to the cloud server 160, it reports the “Add device” message with the new client ID <-> old activation code pair 821.
[0155] The cloud server 160 verifies whether the User ID and client ID, activation code are valid (present in the databases) in step 830. If not, the message is discarded in step 832. If so, the cloud verifies whether the User ID and activation code is already coupled with an existing client ID and the existing client ID (old) is replaced by the new client ID 652A.
[0156] The presented solution, depending on the number of implemented functionalities as described above, has at least one of the following advantages.
[0157] The solution can be used to improve the functionality of devices that have a legacy electronic control unit without any Internet connectivity capability and based on approved and certified hardware and software, which does not have to be modified—only the new connectivity module 120A has to be added to the device.
[0158] The generic connectivity module does not have to store any data related to the hosting device and/or does not have to be able to exchange proprietary data with the device.
[0159] The connectivity module is universal and reusable for various types of devices.
[0160] There is no need to store the device ID S/N on the connectivity module or on the mother-board and no need to have device ID S/N exchanged between the mother-board and the connectivity module.
[0161] The connectivity module can get all the data from the mother-board in a transparent raw mode, that means the connectivity module does not have to know any communication protocol of the device mother-board, but just get the raw data (bit stream) and send to the cloud for later parsing and decoding.
[0162] In case of connectivity module replacement, there is no need to configure any ID parameter on-board.
[0163] An SSL/TLS client certificate can be used for on-the-fly authentication of the device by the back-end without the need of managing a connectivity ID inventory database during manufacturing and then provisioning to back-end.
[0164] The presented method and system avow to limit the legacy electronic module redesign and customization of the connectivity module design. This has been achieved by preserving a large portion of the legacy electronic module design of the device, and limiting the hardware/software modifications. There are no major modifications of the legacy control unit module or of the user interface/service port module.
[0165] There has been implemented a generic connectivity module hardware/software design, in order to be as much as possible agnostic to the legacy device and reusable in a multi-things approach. As a result, the same connectivity module can be reused for many categories of devices.
[0166] The piggyback board design of the connectivity module with simple messages software proxy in the cloud allows the device data-model and protocol to be parsed in the cloud.
[0167] The connectivity module is designed in order to proxy in the cloud the internal bus messages of the device in a blind way, without the need to know the device info. There is no need of using locally any device S/N ID and no need to know the legacy electronic module data model and data protocol.
[0168] Moreover, the connectivity module manufacturing and device assembly procedures have been simplified. There is no need to provide in factory the ad-hoc device S/N ID of the legacy device storing it in an electronic register on the legacy electronic module or on the connectivity module during manufacturing procedures. The connectivity module manufacturing and device assembly are decoupled. The connectivity module firmware/software is generic and does not have any custom info related to the hosting device. The connectivity module firmware/software is preloaded in the connectivity module factory (i.e. the first factory) with unique, but generic device M2M credentials not related to the hosting device. The connectivity module is designed to be single firmware/software device data-model and data-protocol agnostic. The connectivity module is assembled in the device factory (i.e. the second factory) in a passive way, without need to store ad-hoc data on-board and so without need to probe any in-factory programming tool during the manufacturing and assembly procedures of the device.
[0169] In addition, provisioning of the IDs inventories on the back-end side is simplified.
[0170] The manufacturing procedures have been simplified by: [0171] avoiding manufacturing step 1.c in the first factory; [0172] avoiding manufacturing step 1.d in the second factory and related inventories management in the cloud; [0173] avoiding manufacturing step 2.b in the second factory; [0174] avoiding manufacturing step 2.c in the second factory; [0175] avoiding manufacturing step 2.d in the second factory and related database inventory database management in the cloud.
[0176] The above is particularly useful when the connectivity module comprises a wireless client, e.g. a Wi-Fi client.
[0177] There is no need to change or modify the original electronics of the device, which is usually based on a legacy hardware/software design. Instead, the new connectivity module 120A with its add-on hardware/software connectivity features is added to the device. For example, a standard appliance (such as a legacy washing machine) can become smart-connected and able to exchange its data in the Internet (with the vendor back-end and with the user control application) just by assembling a wireless client (such as a Wi-Fi client module), without modifying the legacy electronics of the device.
[0178] It can be easily recognized, by one skilled in the art, that the aforementioned method for providing Internet connectivity to a device may be performed and/or controlled by one or more computer programs. Such computer programs are typically executed by utilizing the computing resources in a computing device. Applications are stored on a non-transitory medium. An example of a non-transitory medium is a non-volatile memory, for example a flash memory while an example of a volatile memory is RAM. The computer instructions are executed by a processor. These memories are exemplary recording media for storing computer programs comprising computer-executable instructions performing all the steps of the computers implemented method according the technical concept presented herein.
[0179] While the invention presented herein has been depicted, described, and has been defined with reference to particular preferred embodiments, such references and examples of implementation in the foregoing specification do not imply any limitation on the invention. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader scope of the technical concept. The presented preferred embodiments are exemplary only, and are not exhaustive of the scope of the technical concept presented herein.
[0180] Accordingly, the scope of protection is not limited to the preferred embodiments described in the specification, but is only limited by the claims that follow.