CA2989654C - Method and apparatus for modifying behavior of code for a controller-based device - Google Patents

Method and apparatus for modifying behavior of code for a controller-based device Download PDF

Info

Publication number
CA2989654C
CA2989654C CA2989654A CA2989654A CA2989654C CA 2989654 C CA2989654 C CA 2989654C CA 2989654 A CA2989654 A CA 2989654A CA 2989654 A CA2989654 A CA 2989654A CA 2989654 C CA2989654 C CA 2989654C
Authority
CA
Canada
Prior art keywords
code
profile
controller
virtualization server
based device
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.)
Active
Application number
CA2989654A
Other languages
French (fr)
Other versions
CA2989654A1 (en
Inventor
Jean-Baptiste Leonelli
Trisala Chandaria
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.)
Ciambella Ltd
Original Assignee
Ciambella 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
Priority claimed from US15/063,764 external-priority patent/US10067490B2/en
Priority claimed from PCT/US2016/031217 external-priority patent/WO2016182913A1/en
Application filed by Ciambella Ltd filed Critical Ciambella Ltd
Publication of CA2989654A1 publication Critical patent/CA2989654A1/en
Application granted granted Critical
Publication of CA2989654C publication Critical patent/CA2989654C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30181Instruction operation extension or modification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)
  • Stored Programmes (AREA)

Abstract

A method and apparatus for remotely modifying behavior of code for a controller-based device is provided. The method comprises receiving a modified profile from a user device at a code virtualization server, the modified profile corresponding to a profile associated with the code for execution on the controller-based device, where the controller-based device is remote to the user device and the code virtualization server, and updating the profile with the modified profile. The code comprises a first code for execution on the controller-based device, and the first code comprises a remote call from the controller-based device to the code virtualization server to cause execution of a second code on the code virtualization server using the updated profile.

Description

METHOD AND APPARATUS FOR MODIFYING BEHAVIOR OF CODE FOR A
CONTROLLER-BASED DEVICE
BACKGROUND OF THE INVENTION
Field of the Invention [0ool] Embodiments of the present invention generally relate to a method and apparatus for modifying behavior of code for controller-based devices.
Description of the Related Art
[0002] The use of field programmable gate arrays (FPGAs) and other controller-based devices (e.g. microcontroller or microprocessor based), such as MCU, SoC, mobile phones, computers, etc. have grown considerably popular. Low manufacturing costs, availability, and customization of controllers have led to a proliferation of microcontrollers and Systems on a Chip (SoC) (e.g., PIC, ARDUINO, RASPBERRY PI

and the like) being used by commercial companies and hobbyists alike for creation of devices. Controller-based devices include a processor core and a memory, which are programmable for processing input/output data in communication with peripherals.
Program memory in the form of NOR FLASH or OTP ROM is also often included on such controller-based devices, as well as a small amount of random access memory (RAM). Several such controller-based devices are designed for embedded applications within larger devices.
[0003] Real world applications of such controller-based devices can potentially include connecting controller-based devices with conventional objects or systems as peripherals, thereby enabling digitization, connectivity and even remote control of such peripherals. However, several challenges exist in making such real world applications accessible to average users, particularly those with limited or no programming and hardware knowledge.
[0004] Configuring the peripherals (conventional objects or systems) for use with controller-based devices is, in general, quite complex. Further, in several applications of controller-based devices, ability to accommodate dynamic inputs and/or generate dynamic output may be desirable. Configuring and programming controller-based devices to accommodate dynamic inputs or outputs requires writing or rewriting the code for all controller-based devices, and is very challenging for average users because rewriting code or reprogramming the controller-based devices needs an understanding of hierarchies of the peripherals and suitable controller-based devices for the peripherals, coding commands, proper calling syntaxes, and other programming parameters. In the absence of accurate code, a program will fail to run or produce errors. Further, rewriting programs every time a modification in input, output, or any other change in code behavior is required, can be cumbersome and excessively time consuming, even in simple and small groups of such controller-based devices.
In several cases, reprogramming or rewriting code may be nearly as laborious as programming or writing the code for the first time.
[0005] Further, as the "Internet of Things (loT)" grows, more and more such controller-based devices are connected to one another and/or to the Internet, significantly increasing the complexity of reprogramming associated with achieving desired code behavior. Groups of such devices may communicate with one another and/or to a gateway such that the gateway becomes a proxy for the Internet communications for the so-called edge devices. The edge devices may communicate through one or more gateways, or directly as independent devices. Within a group, all the devices (gateway and edge) must be programmed in a compatible manner to facilitate interoperability. In addition to reprogramming according to the customization for achieving desired code behavior, managing compatibility every time a customization is implemented may also be excessively time consuming.
[0006] Thus, there is a need in the art for modifying behavior of code for a controller-based device efficiently, and reducing at least some of the problems described above.

SUMMARY OF THE INVENTION
moon Embodiments of the present invention generally relate to a method and apparatus for remotely modifying behavior of code for a controller-based device, substantially as shown in and/or described in connection with at least one of the figures.
[0008] These and other features and advantages of the present disclosure may be appreciated from a review of the following detailed description of the present disclosure, along with the accompanying figures in which like reference numerals refer to like parts throughout.
BRIEF DESCRIPTION OF THE DRAWINGS
[0009] So that the manner in which the above-recited features of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only typical embodiments of this invention and are therefore not to be considered limiting of its scope, for the invention may admit to other equally effective embodiments.
[0010] Figure 1 is a block diagram of a system 100 for modifying code behavior remotely, in accordance with an embodiment of the present invention;
[0011] Figure 2 is flow diagram of a method for modifying behavior of code for a controller-based device by changing a profile associated with a process as executed by the code virtualization server of Figure 1, in accordance with an embodiment of the invention;
[0012] Figure 3 is a flow diagram of a method 300 executed by various devices of the apparatus 100 of Figure 1, for modifying behavior of code for execution with a controller-based device, in accordance with an embodiment of the invention; and Date Recue/Date Received 2021-04-28 [0013] Figure 4 is a flow diagram of a method executed by at least one controller-based device and the code virtualization server of Figure 1 for controlling code behavior for the at least one controller-based device, in accordance with an embodiment of the invention.
DETAILED DESCRIPTION
[0014] Embodiments of the present invention relate to method and apparatus for remotely modifying behavior of code for edge and gateway devices (also referred to as "controller-based devices," or "CB devices" for brevity), and more specifically to modifying profile(s) associated with the code for the controller-based device, without changing the code itself. The code for the controller-based device is executed using the modified profile, thereby modifying the code behavior without requiring re-writing the entire code for the controller-based device. The code deployed on the controller-based device (a "first code") includes a call for executing a function (a "second code") on a remote device, e.g. a server. Code deployed on the controller-based device (the first code) and the remote function (the second code) together form the code for, or associated with, the controller-based device. Profiles are associated with and used for implementing such code for the controller-based device(s) (e.g., devices having a controller, such as microcontrollers, microprocessors, SoC, MCU, among others). The profiles are modified and stored on a device remote to controller-based devices, for example, a code virtualization server, which may also be the remote device executing the second code. Embodiments of the present invention, using a graphical user interface (GUI) on a user device, enable a user to select a controller-based device remote to the user device, access a profile associated with code for the controller-based device, modify the profile remotely, and initiate execution of the code with the modified profile. Implementing the code with the modified profile achieves desired modified code behavior, without requiring a modification of the code itself.
Consequently, behavior of code for execution a controller-based device is controlled or modified remotely without having to reprogram the controller-based device.

[0015] As used herein, the terms "code associated with a controller-based device,"
"code for a controller-based device" and "code for execution on a controller-based device," may be used interchangeably unless otherwise apparent from the context.
The code for the controller-based device includes the first code, which is executed on the controller-based device, and the second code, which is called by the first code for execution on a device remote to the controller-based device. The second code is executed using a profile, which is therefore associated with the second code.
The profile is also associated with the first code, which calls for executing the second code.
In this manner, the profile is also associated with the code for execution on the controller-based device.
[0016] Commonly assigned patent application serial numbers 11/853,137, filed September 2007, 11/853,143, filed 11 September 2007, and 12/931,292, filed 28 January 2011 (now US Patent 8,726,285) describe techniques for generating, deploying and executing workflows remotely. Commonly assigned patent application serial numbers 14/307,198, filed 17 June 2014, 14/307,208, filed 17 June, 2014, 14/307,227, filed 17 June 2014, 14/328,415, filed 10 July, 2014, 14/593,151, filed 9 January 2015, and 14/685,064, filed 13 April 2015, describe techniques for automatic generation of code and SDK, virtualization of code and SDK, generating remote process calls for code virtualization. The listed applications describe techniques for developing software automatically for a controller-based device incorporating a controller, mapping the use of hardware such as sensors or actuators to the controller remotely using a graphical user interface, and executing the software, e.g. remotely, to extend the capabilities of such a controller-based device via defined workflows.
[0017] These techniques function by placing a snippet of code and/or a library in the memory of the controller-based device, wherein the snippet, when executed, calls a function (or a portion of code) for being executed on a remote device, for example, a code virtualization server, and/or sends (directly, or via the code virtualization server) data to a remote service which is remote to the code virtualization server, and/or further Date Recue/Date Received 2021-04-28 calls a function to be remotely performed on the data by the remote service.
These techniques are used for creating and managing controller-based solutions comprising controller-based devices, including generating programs for the controller-based devices. Embodiments of the present invention use these techniques to modify code behavior of programs for a controller-based device. With such embodiments, code behavior can be modified in dynamic environments, for example, where inputs for the code need to be changed, or a different output is required, or both. Further, the embodiments enable modifying the code behavior remotely, for example, by a user using a user computer remote to a device on which the code is executed.
[0018] Figure 1 is a block diagram of a system 100 for modifying code behavior remotely, in accordance with one or more embodiments of the present invention.
The system 100 comprises multiple controller-based devices 1021 ... 102N
(collectively referred to as controller-based devices 102), multiple controller-based devices 1031 ...
103p (collectively referred to as controller-based devices 103), gateway 108, Internet 110, a user computer 112, a code virtualization server 114, an optional database 115, and a remote service 118.
[0019] The controller-based devices 102 and the gateway 108 form a group of devices (or device group 116) connected to the Internet 110. The device group 116 communicates between controller-based devices 102 and the gateway 108 along communications paths 1061 ... 106N. Although the communications paths are generally wireless paths, in some embodiments, the paths may be wired. In addition, in some embodiments, the controller-based devices 102 may be able to communicate amongst themselves along dashed paths 1041 ...104N. The controller-based devices 103 communicate directly with the Internet 110, and amongst themselves along dashed path 109. Although a single gateway 108 is depicted, a plurality of gateways 108 may be used within the group or spanning multiple groups, similar to the device group 116.
Each of controller-based devices 102, controller-based devices 103, and the gateway 108 comprises a controller, e.g., a microcontroller or a processor that can be programmed either remotely or through direct connection from the user device 112. In some embodiments, microcontroller of each of the controller-based devices 102, the controller-based devices 103 and the gateway 108 can be programmed by the code virtualization server 114.
[0020] Each controller-based device (edge devices 102, 103, and the gateway 108) includes a device controller (DC), peripheral electronics (PE), and a memory.
For example, and for the sake of brevity, only the controller-based device 103p is shown to include the device controller 120, peripheral electronics 122 and a memory 124, although each device (edge devices 102, 103 and the gateway 108) includes a device controller and a memory, and may include peripheral electronics. The device controller 120 includes one or more of a microcontroller (e.g., PIC, AVR type, ARM type, and the like), a system on chip (SoC, e.g., RASPBERRY PI), or a microprocessor as generally known in the art. The type of controller may differ from device to device, for example, based on the application of such device and the functionality required. The peripheral electronics 122 include, but are not limited to, sensors, lights, audio speakers, actuators, displays, printers, scanners, I/O devices and the like. The peripheral electronics 122 comprise components to manage or operate a conventional system, or the peripheral electronics 122 are themselves a conventional system, such as a music system, an alarm, household appliances, electrical devices, electro-mechanical devices, among several others. The memory 124 is any form of digital storage used for storing data and executable software. Such memory includes, but is not limited to, random access memory, read only memory, disk storage, optical storage, and the like.
The memory 124 stores computer readable instructions corresponding to an operating system (not shown), a first code 126, which further includes a call 128 to a second code on a device remote to the controller-based device 103p, for example, the code virtualization server 114. The first code 126 may include an automatically generated controller program (AGCP) code, and other code components (not shown) which include libraries necessary for executing the first code 126 and the call 128.
The code components are also capable of ensuring that a controller-based device can communicate to the code virtualization server 114 via or without a gateway 108, and
7 similar code components in the gateway 108 are capable of allowing such communications.
[0021] The user device 112 comprises a CPU 130, support circuits 132 and a memory 136. The CPU 130 may be any commercially available processor, microprocessor, microcontroller, and the like. The support circuits 132 comprise well-known circuits that provide functionality to the CPU such as a user interface, clock circuits, network communications, cache, power supplies, I/O circuits, and the like. The I/O
circuits include a display 134, for example, various standard or touch-based displays, such as computer monitors as generally known in the art. In some embodiments, the user interface comprises a keypad, electronic buttons, speaker, touchscreen, display, or other user interaction mechanism. The memory 136 is any form of digital storage used for storing data and executable software. Such memory includes, but is not limited to, random access memory, read only memory, disk storage, optical storage, and the like.
The memory 136 stores computer readable instructions corresponding to an operating system (not shown), a graphical user interface (GUI) 138, a list 140 of controller-based devices for which modification of code behavior is available using the present embodiments, and a profile store 142 for storing one or more profiles received from the code virtualization server 114, or modifications thereto. The user device 112 is coupled to the network 110 when selecting a controller-based device for modifying code behavior, generating and sending a modified profile for modifying code behavior, and receiving the results of execution of the modified code for display. The GUI

retrieves a list of controller-based devices (102, 103, 108) for modifying behavior of code (e.g. first code) installed on the controller-based devices (102, 103, 108) from the code virtualization server 114. The GUI 138 also retrieves profile(s) associated with code installed on one or more controller-based devices included in the list 140, and such retrieved profile(s) may be stored in the profile store 142 before and after modification. In some embodiments, the GUI 138 is a software resident on the code virtualization server, rendered on the user device via a browser on the user device 112.
8 In some embodiments (not shown), the list 140 and the profile store 142 reside on the code virtualization server 114, and is displayed on the user device 112 via the browser.
[0022] The GUI 138 (displayed directly or via the browser) is rendered on the display 134. The list 140 is displayed in the GUI 138 as a selectable list 144, from which one or more of controller-based devices (CBDi CBDx) may be selected. A selectable list of profiles 146, retrieved by the GUI 138 from the code virtualization server 114, includes one or more profiles (Profilei Profile) corresponding to the selected controller-based device. Each profile includes a list of parameters 148 (Parameteri Parameter). A user may request the list 140, which may be requested from the code virtualization server 114, and once retrieved, be displayed as the list 144, from which the user selects CBDi (or "CBD 145") for remotely modifying the behavior of the code for CBD 145. Upon receiving the selection of CBD 145, the GUI 138 retrieves profile(s) associated with the code for CBD 145 (code for being executed on the CBD, and/or code associated therewith) and presents the list of profiles 146 for selection by the user. The user selects Profilei (or "Profile 147"), and the GUI 138 displays the list of parameters 148 contained in the profile 147. The user selects Parameter] (or "parameter 149") for modifying the parameter 149 to modify behavior of code for CBD
145 as desired. The user may modify one or more parameters using the I/O
devices, as generally known in the art, and may similarly modify one or more parameters and profiles corresponding one or more controller-based devices included in the list 140.
The modified profiles are stored in the profile store 142, for example, using the "SAVE"
button 133, and sent to the code virtualization server 114, for example, using the "SEND" button 135. The above description only illustrates one possible GUI
layout scheme, and does not limit the techniques described herein to such illustration.
[0023] In some embodiments (not shown), the GUI 138 also displays results of modified code behavior on the display 134. In some embodiments (not shown), the GUI 138 includes an integrated development environment (IDE) for creating and/or modifying programs for the controller-based devices, and testing and deploying the programs to the controller-based devices 102, 103 and/or the gateways 108.
9 Alternative embodiments may use algorithms on a custom Application Specific Integrated Circuit (ASIC) to provide the functionality provided by the any combination of the CPU 130, the support circuits 132 and the memory 136. In some embodiments, the I/O devices include comprises a keypad, electronic buttons, speaker, touchscreen, display, or other user interaction mechanism.
[0024] The code virtualization server 114 may be a general-purpose computer or other electronic processing device that is programmed to be a specific purpose computer to perform functions related to embodiments of the present invention. The code virtualization server 114 comprises a CPU 150, support circuits 152, and a memory 154 containing instructions and algorithms. The CPU 150 may be any commercially available processor, microprocessor, microcontroller, and the like. The support circuits 152 comprise well-known circuits that provide functionality to the CPU such as a user interface, clock circuits, network communications, cache, power supplies, I/O
circuits, and the like. Alternative embodiments may use control algorithms on a custom Application Specific Integrated Circuit (ASIC) to provide the functionality provided by the any combination of the CPU 150, the support circuits 152 and the memory 154. In some embodiments, the user interface comprises a keypad, electronic buttons, speaker, touchscreen, display, or other user interaction mechanism. In some embodiments, the user interface may communicate with the controller-based devices 102, 103 and 108.
[0025] The memory 154 may be any form of digital storage used for storing data and executable software. Such memory includes, but is not limited to, random access memory, read only memory, disk storage, optical storage, and the like. The memory stores computer readable instructions corresponding to an interface 156, a profile updater 157, a process library 158, a software development kit (SDK) generator 160, a code generator 162, a profile database 164, an execution engine 166, and a device database 178.

[0026] The interface 156 provides functionality for the user device 112 to interact with the code virtualization server 114. In some embodiments, the interface 156 may also include GUI software, for example, corresponding to the GUI 138, which may be sent by the code virtualization server 114 to the user device, or otherwise provided to a user for installation on the user device 112. In some embodiments, the interface includes software to render the GUI 138 through a browser on the user device 112. In addition, the interface 156 provides connections to the controller-based devices 102, 103, 108 and the remote service 118. The profile updater 157 updates the profile 168 using a modified profile, for example, received from the user device 112. The profile updater 157 modifies one or more parameter(s) of the profile 168 according to the corresponding parameter(s) of the modified profile. The profile updater 157 further stores the updated profile to, or as, the profile 168. In some embodiments, the profile updater 157 is included in the interface 156. The process library 158 comprises code (i.e. a second code 159, also referred to as "choreographs" or "choreos") that may be executed upon receiving a call from the controller-based device. According to some embodiments, the second code is executed using a profile updated based on a modified profile received from the user device 112. According to some embodiments, the second code performs certain off controller-based device functions that the device controller of the controller-based device would otherwise not be able to perform. The SDK generator 160 generates an SDK for supporting execution of the first code, the second code or both, for example, by providing necessary code libraries according to the hardware, software platform, communication infrastructure and other code execution parameters. The code generator 162 creates the first code for controller-based device, and the first code includes a call from a controller-based device to the code virtualization server 114 for executing the second 159 using a profile associated with the controller-based device. The profile database 164 comprises at least one profile 168 corresponding to at least one process (e.g. the second code 159) of the process library 158. The profile 168 includes process parameters 170 and a list thereof, connection profiles 172 including user data such as user names, identification information and passwords, connection parameters 174, and protocols 176 relating to execution of the second code 159. The profile 168 may also include parameters such as profile name, for example a name of a set of parameters (includes all sub-profiles), hardware profile parameters, such as Hardware type or Processor Type, and for example, Arduino Uno, Arduino Yun are examples of Hardware type, and AVR, ARM, PIC are examples of Processor type. Examples of profile parameters are illustrated, without limitation, in Table 1. The profile 168 is set up according to the desired behavior of the second code 159. The profile database 164 includes several profiles (not shown) similar to the profile 168. The device database 178 comprises a list 182 of controller-based devices 102, 103, 108 for which the code behavior may be modified, and an index 184 referencing profiles, for example, the profile 168, with one or more controller-based devices, for example, the controller-based device 103p.
The information included in the profile database 164 and the device database 178 may be distributed in one or more databases on the code virtualization server 114, or optionally on devices on the network 110, for example, a database 115.
[0027] According to embodiments of the present invention, the profile updater updates the profile 168 using a modified profile received from the user device 112 via the GUI 138. Executing the first code 126 on the controller-based device 103p places the call 128 to execute the second 159 on the code virtualization server 114 using the updated profile 168. The execution engine 166 executes the second code 159 using the updated profile 168, resulting in a code behavior according to the updated profile 168. In this manner, behavior of the code (i.e., the first code and the second code) associated with the controller-based device 103p is modified, for example, remotely from the code, without modifying the code itself.

Type Parameter Example/Comments General Profile Name of a set of parameters (includes all sub-profiles) name Hardware Hardware Arduino Uno, Arduino Yun, Samsung Artik, Raspberry Profile type PI, etc.
Hardware Processor AVR, ARM, PIC, etc.
Profile type Hardware Network Arduino Wifi Shield, Built-in Ethernet, Ethernet Shield, Profile Hardware BLE Shield, Built-in BLE
Credential Username Username for a webservice like Facebook,...
Profile Credential Password Password for a webservice like Facebook,...
Profile Credential API Key Developer API key given by webservices like Profile Facebook,... There can be several API keys Credential API Secret Developer API secret given by webservices like Profile Facebook,... There can be several API secrets Connection Connection Allows to select different Connection profiles Profile Profile name Connection Type Wifi, Bluetooth, Zigbee,...
Profile Connection Security WPA, WEP, unsecured,...
Profile Type Connection SSID Wifi network identifier Profile Connection Password Network password Profile Connection Transport MQTT, CoAP, HTTP/S,...
Profile Protocol Connection Role Gateway or Edge Profile Setup Output Pin Indicates which Output Pin is selected on the Profile processor (multiple Output Pins can be selected) Setup Input Pin Indicates which Input Pin is selected on the processor Profile (multiple Input Pins can be selected) Setup Pin Rule Specifies what rule is applied to a given Pin (Input or Profile Output). For example: If Temperature = 19 then write High to Pin 12 Type Parameter Example/Comments Input Required Also called variable. Can be any parameter a choreo Profile Input needs to be executed. Can be multiple Input Parameter Parameters. For example, a choreo sending an email will need Input Parameters like: Email address, Subject, Body, Attachment,...
Input Optional Optional Input parameters are used to add Parameters Profile Input that are not necessary. Multiple Optional Input Parameter Parameters are possible. For example, a choreo sending an email has optional Input Parameters like:
CC, BCC or encryption type [0028] The execution engine 166 supports all the foregoing functions to facilitate interoperability between the various components of the apparatus 100. The execution engine utilizes each of the functional blocks described above to enable a user to program controller-based devices to control and modify their functionality through a GUI on the user device.
[0029] The remote service 118 includes private or public services provided by third party servers or databases (i.e., devices) that are remote to the user device 112, the code virtualization server 114, and the controller-based devices (102, 103, 108). For example, the remote service 118 includes third party databases and services (e.g., AMAZON, EBAY, FACEBOOK, APPLE PUSH NOTIFICATION servers, text message servers, email servers, and the like), or an internal data source (e.g., DB, noSQL DB, files and the like). The remote service 118 is accessible to the code virtualization server 114 via the network 110 or another network. According to some embodiments, the remote service 118 is provisioned by executing, using the execution engine 166, the second code 159 using the updated profile 168.
[0030] The network 110 comprises the Internet, or a wide area network (WAN) or a combination, and may include one or more such networks. All the components of the apparatus 100 are connected to the network 110 or to each other as illustrated in Figure 1, using known methods and components.
[0031] Figure 2 depicts a flow diagram of a method 200 executed by the code virtualization server 114 for modifying behavior of code associated with a controller-based device, remotely, by updating a profile used for execution of the code associated with the controller-based device, in accordance with embodiments of the present invention. The method 200 begins at step 202 and proceeds to step 204. At step 204, the code virtualization server 114 receives, from the user device 112, a modified profile corresponding to a profile used for execution of code (e.g. a first code 126 and/or a second code 159) associated with a controller-based device, for example, the controller-based device 103p. In some embodiments, the profile updater 157 receives the modified profile from the GUI 138. The method 200 proceeds to step 206, at which the method 200 updates the profile used for execution of the code with the modified profile. According to some embodiments, the profile updater 157 modifies at least one parameter of the profile 168 to the same value as a corresponding parameter of the modified profile. The method 200 proceeds to step 208, at which, upon receiving a call from the controller-based device 103p to execute a second code (e.g. the second code 159) on the code virtualization server 114, the method 200 executes the second code using the updated profile. According to some embodiments, the execution engine executes the second code 159 using the updated profile 168, resulting in a modification of behavior of the code associated with the controller-based device 103p. The method 200 then proceeds to step 210, at which, the method 200 ends.
[0032] Figure 3 depicts a flow diagram of a method 300 executed by various devices of the apparatus 100 of Figure 1, for modifying behavior of code for execution with a controller-based device, by changing a profile associated with the code, in accordance with embodiments of the present invention. The user device 112 executes a method 302, the code virtualization server 114 executes a method 330, the controller-based device 130p executes a method 350 and the remote service 118 executes a method 360, and the methods 302, 330, 350 and 360 combine to provide the functionality of the method 300. Hereon, reference will be made to various steps described herein as the steps of method 300, although it is apparent that each step is also one of the methods 302, 330, 350 and 360.
[0033] At step 304, the method 300 displays a list 140 of controller-based devices, for example using the GUI 138 on the display 134, as discussed above. The list may be a list (e.g. the list 182) of controller-based devices 102, 103, 108 sent by the code virtualization server in response to a request by the user device 112, or the list may be otherwise provided to the user device 112. In some embodiments, the user device 112 stores the list as the list 140. At step 306, the method 300 receives a selection of a controller-based device, for example, the controller-based device 130p, via the GUI
138, which is sent, at step 308, to the code virtualization server 114.
[0034] Execution of the method 300 shifts to the code virtualization server 114 at step 332, at which the method 300 retrieves one or more profile(s), for example, the profile 168 and other profiles associated with code for execution on the controller-based device 103p. The method 300 proceeds to step 334, at which, the profile 168 and other profiles are sent to the user device 112 for modification.
[0035] Execution of the method 300 shifts to the user device at step 310, at which the method 300 displays the received profiles including the profile 168, for example, using the GUI 138. At step 312, the method 300 receives a selection of a profile, for example, the profile 168 (e.g. as an input entered by a user at the user device 112, or an input from another file or database selected by the user) to modify the profile 168.
At step 314, the method 300 displays one or more parameter(s) included in the profile 168 for being modified or updated. At step 316, the method 300 receives an input to modify a parameter of the profile 168, and at step 318, the method 300 generates a modified profile with the parameter modified at step 316. The method 300 may receive multiple inputs associated with multiple parameters, and generate the modified profile accordingly. According to some embodiments, the method 300 generates the modified profile using the GUI 138. Further, the method 300 optionally stores the modified profile, for example, in the profile store 142. At step 320, the method 300 sends the modified profile to the code virtualization server 114.
[0036] Execution of the method 300 shifts to the code virtualization server 114 at step 336, at which the method 300 updates the profile 168 using the modified profile. The method 300 updates the profile 168 using the profile updater 157 by updating each parameter according to a corresponding parameter of the modified profile, or replaces the profile 168 with the modified profile, and at step 338, the method 300 stores the modified profile as the profile 168. In this manner, steps 304-320 and steps achieve updating the profile 168 using a modified profile. For brevity, discussion of the method 300 is made with reference to a single profile, for example, the profile 168, although the steps of the method 300 can be extended to incorporate multiple profiles, as would occur readily to those skilled in the art. Further steps relate to executing code associated with the controller-based device 103p using the updated profile to modify the behavior of the code.
[0037] At step 352, the method 300 executes the first code 126 on the controller-based device 103p. The method 300 proceeds to step 354, at which the first code 126 calls, via the call 128, the code virtualization server 114 for executing the second code 159 on the code virtualization server 114.
[0038] Execution of the method 300 shifts to the code virtualization server 114 at step 340, at which the method 300 receives the call 128 from the user device 112.
At step 342, the code virtualization server 114 executes the second code 159 using the profile 168, which has been updated using a modified profile, as described above.
Execution of the second code 159 using the updated profile 168 causes a difference in the behavior of the second code 159, and thereby, the behavior of the first code 126.
However, neither the first code 126, nor the second code 159 requires modification. In some embodiments, the method 300 includes an optional step 344 to provision the remote service 118 as part of executing the second code 159. By updating the profile 168, the code behavior related to provisioning of the remote service 118 is modified.

For example, the profile modification may result in change of the remote service (FACEBOOK, AMAZON, etc.) used, the account used, text displayed, among several other parameters, as desired.
[0039] If the optional step 344 is executed, execution of the method 300 shifts to the remote service 118, which may be provided by one or more servers remote to the controller-based device 103p, the code virtualization server 114, or the user device 112. At step 362, the method 300 executes remote service 118 in accordance with the second code 159, and, for example, according to the modified profile 168 parameters.
At step 364, the method 300 sends data resulting from execution of the remote service 118 to the code virtualization server 114. Data resulting from the execution of the remote service 118 may include a status update on whether the provisioning of the remote service was successful, or any output of the remote service 118.
[0040] Execution of the method 300 shifts to the code virtualization server 114 at step 346, at which the method 300 sends the data resulting from provisioning of the remote service 118 to the controller-based device 103p, and optionally, the user device 112.
[0041] Execution of the method 300 shifts to the controller-based device 103p at step 356, at which the method 300 continues to execute the first code 126. If the optional step 344 is not executed, then the execution of the method 300 shifts to the controller-based device 103p at step 356 after the step 342. Further, in some embodiments, execution of the first 128 on the controller-based device 103p terminates after step 354, and in such embodiments, the method 300 does not execute the step 356.
[0042] If at step 346, the data is sent to the user device 112, execution of the method 300 shifts to the user device step 322, at which the method 300 receives and displays the data, for example, via the GUI 138 on the display 134.
[0043] Advantageously, all other processes associated with the code, for example, development, testing, deployment of the code are preserved, that is, no modification is required to such processes. Therefore, modifying the profile in accordance with the disclosed embodiments allow to modify the code behavior without requiring to modify the code itself, and without requiring to re-execute the steps of development, testing and deployment.
[0044] Figure 4 is a flow diagram of a method 400, executed by at least one controller-based device (102, 103, 108), for example, the controller-based device 103p and the code virtualization server 114, for controlling code behavior for the at least one controller-based device of Figure 1 in accordance with an embodiment of the invention.
The method 400 starts at step 402 on the controller-based device, and proceeds to step 404 at which the method 400 begins executing code (e.g. the first code 126) on the controller-based device 103p. The first code 126 includes predefined program code or process associated with the controller-based device 103p. The first code includes one or more call(s) 128 to a function provided by the code virtualization server 114. At step 406, the call is made from the controller-based device 103p to the code virtualization server 114, and the method 400 switches to the code virtualization server 114. The method 400 proceeds to step 408, at which the method 400 executes code corresponding to the called function (e.g. the second code 159) on the code virtualization server 114, using a first profile (or PROFILE 1) stored on the code virtualization server 114. Upon executing the step 408 on the code virtualization server 114, at step 410, the method 400 returns execution of the code to the controller-based device 103p. At step 412, the method 400 completes the execution of the first code 126 on the controller-based device 103p. In some embodiments, the first code execution may complete at the step 410 on the code virtualization server 114, and no additional execution of code may take place at step 412. The method 400 proceeds to step 414, where the method 400 ends.
[0045] Steps 402-414 describe execution of the code for the controller-based device 103p using PROFILE 1 which is stored as the profile 168. For example, in an embodiment, the controller-based device 103p is a temperature sensor configured to turn on heating when temperature drops below a predetermined value. When the temperature drops below the predetermined value, the code is executed using PROFILE 1. Specifically, upon a condition being met (the temperature dropping below the predetermined value) the first code 128 is configured to turn on the heating, and call (via the call 128) the code virtualization server 114 for provisioning a remote service 118 (e.g. posting a predefined text on FACEBOOK). Upon receiving the call 128, the code virtualization server 114, executes the second 159 using the PROFILE 1, which include a user's login credentials and predefined text. Executing the second 159 results in generating a FACEBOOK post from the user's account stating, "Heating has been turned on." This outcome is a first behavior of the code (the first code 128 and the second code 159) for the controller-based device 103p.
[0046] According to some embodiments of the invention, the first profile (PROFILE 1) is modified or updated by the user to a second profile (PROFILE 2), for example, using the method 200 described with respect to Figure 2, or steps 304-320 and steps 338 described in the method 300 of Figure 3. Thereby, the profile 168 is updated to PROFILE 2. The method 400 is then executed using the second profile, PROFILE
2, in a similar manner as steps 402-414, and for example, as described below with respect to steps 422-434.
[0047] The method 400 starts at step 422 on the controller-based device 103p, and proceeds to step 424 at which the method 400 begins executing code (e.g. the first code 126) on the controller-based device 103p. The first code 126 includes predefined program code or process associated with the controller-based device 103p. The first code 126 includes one or more call(s) 128 to a function provided by the code virtualization server 114. At step 426, the call 128 is made from the controller-based device 103p to the code virtualization server 114, and the method 400 switches to the code virtualization server 114. The method 400 proceeds to step 428, at which the method 400 executes code corresponding to the called function (e.g. the second code 159) on the code virtualization server 114 using an updated profile (or PROFILE 2) stored on the code virtualization server 114. Upon executing the step 428 on the code virtualization server 114, at step 430, the method 400 returns execution to the controller-based device 103p. At step 432, the method 400 completes the execution of the first code 126 on the controller-based device 103p. In some embodiments, the first code 126 execution may complete at the step 430 on the code virtualization server 114, and no additional execution of code may take place at step 432. The method 400 proceeds to step 434, where the method 400 ends.
[0048] Steps 422-434 describe execution of the code for the controller-based device 103p using PROFILE 2, which is stored as the profile 168 after modification of the profile 168 using the techniques described above. Continuing the example in which the controller-based device 103p is a temperature sensor configured to turn on heating when temperature drops below a predetermined value. When the temperature drops below the predetermined value, the code is now executed using PROFILE 2.
Specifically, upon a condition being met (the temperature dropping below the predetermined value) the first code 128 is configured to turn on the heating, and call (via the call 128) the code virtualization server 114 for provisioning a remote service 118 (e.g., posting a different text on TWITTER). Upon receiving the call 128, the code virtualization server 114, executes the second 159 using the PROFILE 2, which include a user's login credentials for TWITTER and predefined text. Executing the second 159 results in generating a TWITTER post from the user's account stating, "It is really cold out here!" This outcome is a second behavior of the code (the first code 128 and the second code 159) for the controller-based device 103p. In this manner, the described embodiments enable modifying behavior of the code for the controller-based device 103p, without having to rewrite or modify the code itself.
[0049] Further, while the described example only changes the behavior with respect to provisioning of a different service and posting a different text, the combination of the code and profiles may be configured to provide a wide-ranging modification of code behavior. Such variations in configuring the code and the profiles will occur readily to those skilled in the art. Techniques illustrated by various embodiments discussed herein make controlling or modifying the code behavior quick and easy for a user, by avoiding the need to reprogram each controller-based device Date Recue/Date Received 2021-04-28 individually. In some embodiments, the code virtualization server 114 is implemented as a service (not shown) that provides access to code generation, deployment, remote reprogramming through a web interface by default, or any GUI (e.g., a smartphone app or a computer application). While the embodiments are described with respect to Internet of things (loT) devices, those skilled in the art will readily appreciate that the techniques exemplified by the disclosed embodiments are applicable to several other programming environments.
[0050] The methods described herein may be implemented in software, hardware, or a combination thereof, in different embodiments. In addition, the order of methods may be changed, and various elements may be added, reordered, combined, omitted or otherwise modified. All examples described herein are presented in a non-limiting manner. Various modifications and changes may be made as would be obvious to a person skilled in the art having benefit of this disclosure. Realizations in accordance with embodiments have been described in the context of particular embodiments.

These embodiments are meant to be illustrative and not limiting. Many variations, modifications, additions, and improvements are possible. Accordingly, plural instances may be provided for components described herein as a single instance.
Boundaries between various components, operations, and data stores are somewhat arbitrary, and particular operations are illustrated in the context of specific illustrative configurations.
Other allocations of functionality are envisioned. Finally, structures and functionality presented as discrete components in the example configurations may be implemented as a combined structure or component. These and other variations, modifications, additions, and improvements may fall within the scope of embodiments.
[0051] While the foregoing is directed to embodiments of the present invention, other and further embodiments of the invention may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow.

Date Recue/Date Received 2021-04-28

Claims (18)

What is claimed is:
1. A computer-implemented method for remotely modifying behavior of code for a controller-based device, comprising:
receiving a modified profile from a user device at a code virtualization server, the modified profile being a modification of a profile associated with a code for the controller-based device, the code for the controller-based device comprising a first code for execution on the controller-based device and a second code for execution on the code virtualization server, the first code comprising a remote call from the controller-based device to the code virtualization server, the remote call configured to cause execution of the second code on the code virtualization server, the profile comprising at least one parameter for being used to execute the second code, and where the controller-based device is remote to the user device and the code virtualization server;
updating the profile with the modified profile on the code virtualization server; and executing the second code on the code virtualization server using the updated profile upon receiving the remote call at the code virtualization server from the controller-based device, the execution of the second code using the updated profile causing a modification of the behavior of the code for the controller-based device.
2. The method of claim 1, wherein the updating comprises modifying the at least one parameter of the profile according to a corresponding parameter of the modified profile.
3. The method of claim 1, further comprising:
sending a list of a plurality of controller-based devices from the code virtualization server to a user device, the list for display on the user device; and receiving, from the user device, a selection of the controller-based device from the plurality of controller-based devices for modifying behavior of the code for the controller-based device.
4. The method of claim 3, further comprising:
retrieving the profile for being updated using the modified profile; and sending the profile to the user device for display.
5. The method of claim 4, wherein the list is sent for display at a graphical user interface (GUI) of the user device, the selection is received via the GUI, and the modified profile is received via the GUI.
6. The method of claim 1, further comprising storing the profile after being updated using the modified profile.
7. The method of claim 1, wherein the execution of the second code initiates provisioning of at least one remote service using the profile, the remote service being provisioned on devices remote to the controller-based device, the user device and the code virtualization server.
8. The method of claim 7, further comprising sending data related to the provisioning of the at least one remote service, after the provisioning of the at least one remote service, to at least one of the user device or the controller-based device.
9. An apparatus for remotely modifying behavior of code for a controller-based device, the apparatus comprising a code virtualization server comprising:
a processor; and a memory comprising executable instructions, which when executed using the processor, cause execution of a method comprising:
receiving a modified profile from a user device at the code virtualization server, the modified profile being a modification of a profile associated with a code for the controller-based device, the code for the controller-based device comprising a first code for execution on the controller-based device and a second code for execution on the code virtualization server, the first code comprising a remote call from the controller-based device to the code virtualization server, the remote call configured to cause execution of the second code on the code virtualization server, the profile comprising at least one parameter for being used to execute the second code, and where the controller-based device is remote to the user device and the code virtualization server updating the profile with the modified profile on the code virtualization server, and executing the second code on the code virtualization server using the updated profile upon receiving the remote call at the code virtualization server from the controller-based device, the execution of the second code using the updated profile causing a modification of the behavior of the code for the controller-based device.
10. The apparatus of claim 9, further comprising an index cross-referencing the controller-based device with at least one profile including the profile.
11. The apparatus of claim 9, wherein the updating comprises modifying the at least one parameter of the profile according to a corresponding parameter of the modified profile.
12. The apparatus of claim 9, wherein the method further comprises:
sending a list of a plurality of controller-based devices from the code virtualization server to a user device for display on the user device; and receiving, from the user device, a selection of the controller-based device from the plurality of controller-based devices for modifying behavior of the code for with the controller-based device.
13. The apparatus of claim 12, wherein the method further comprises:
retrieving the profile for being updated using the modified profile; and sending the profile to the user device for display.
14. The apparatus of claim 13, wherein the list is sent for display at a graphical user interface (GUI) of the user device, the selection is received via the GUI, and the modified profile is received via the GUI.
15. The apparatus of claim 9, wherein the method further comprises storing the profile after being updated using the modified profile.
16. The apparatus of claim 9, wherein the execution of the second code initiates provisioning of at least one remote service using the profile, the remote service being provisioned on devices remote to the controller-based device, the user device and the code virtualization server.
17. The apparatus of claim 16, wherein the method further comprises sending data related to the provisioning of the at least one remote service, after the provisioning of the at least one remote service, to at least one of the user device or the controller-based device.
18. A non-transitory computer readable media for storing computer instructions for remotely modifying behavior of code for a controller-based device, that when executed by at least one processor cause the at least one processor to perform a method comprising:
displaying a list of controller-based devices on a graphical user interface (GUI) on a user device;
receiving, on the GUI, a selection of a controller-based device from the list;

sending the selection from the user device to a code virtualization server;
receiving, on the user device, from the code virtualization server, a profile comprising at least one parameter for being used to execute the code for the controller-based device;
displaying the profile via the GUI;
receiving via the GUI, an input to modify the at least one parameter of the profile;
generating, at the user device, a modified profile using the input, the modified profile being a modification of the profile; and sending the modified profile from the user device to the code virtualization server.
CA2989654A 2015-07-09 2016-07-08 Method and apparatus for modifying behavior of code for a controller-based device Active CA2989654C (en)

Applications Claiming Priority (9)

Application Number Priority Date Filing Date Title
US201562190408P 2015-07-09 2015-07-09
US62/190,408 2015-07-09
US201562270107P 2015-12-21 2015-12-21
US62/270,107 2015-12-21
US15/063,764 2016-03-08
US15/063,764 US10067490B2 (en) 2015-05-08 2016-03-08 Method and apparatus for modifying behavior of code for a controller-based device
PCT/US2016/031217 WO2016182913A1 (en) 2015-05-08 2016-05-06 Method and apparatus for automatic software development for a group of controller-based devices
USPCT/US2016/031217 2016-05-06
PCT/US2016/041573 WO2017008036A1 (en) 2015-07-09 2016-07-08 Method and apparatus for modifying behavior of code for a controller-based device

Publications (2)

Publication Number Publication Date
CA2989654A1 CA2989654A1 (en) 2017-01-12
CA2989654C true CA2989654C (en) 2021-12-14

Family

ID=57686194

Family Applications (1)

Application Number Title Priority Date Filing Date
CA2989654A Active CA2989654C (en) 2015-07-09 2016-07-08 Method and apparatus for modifying behavior of code for a controller-based device

Country Status (6)

Country Link
EP (1) EP3320426A4 (en)
JP (1) JP6626956B2 (en)
KR (1) KR102567780B1 (en)
CN (1) CN107851009B (en)
CA (1) CA2989654C (en)
WO (1) WO2017008036A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995462B (en) * 2019-10-31 2022-06-07 北京浪潮数据技术有限公司 Cloud host function expansion method, system, equipment and computer storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09160847A (en) * 1995-12-08 1997-06-20 Hitachi Ltd Client server-type distribution processing system
JP2001325237A (en) * 2000-05-16 2001-11-22 Hitachi Ltd Program execution method and device in distributed processing system
JP4263387B2 (en) * 2000-08-25 2009-05-13 四国電力株式会社 Remote control server, center server, and system including them
US20020194608A1 (en) * 2001-04-26 2002-12-19 Goldhor Richard S. Method and apparatus for a playback enhancement system implementing a "Say Again" feature
JP2003052093A (en) * 2001-08-08 2003-02-21 Matsushita Electric Ind Co Ltd Remote controller of apparatus and remote control system of apparatus
US7457815B2 (en) * 2003-03-27 2008-11-25 Apple Inc. Method and apparatus for automatically providing network services
US7481361B2 (en) * 2005-09-29 2009-01-27 International Business Machines Corporation Method and system for identifying unsafe synthetic transactions and modifying parameters for automated playback
US20090198770A1 (en) * 2008-02-04 2009-08-06 Universal Scientific Industrial Co., Ltd. System and method of updating codes in controller
WO2013152431A1 (en) * 2012-04-12 2013-10-17 Absolute Software Corporation Configuration of third party applications in a sandboxed environment
DK3011442T3 (en) * 2013-06-18 2021-01-04 Ciambella Ltd METHOD AND DEVICE FOR GENERATING A CUSTOM SOFTWARE DEVELOPMENT KIT (SDK)
JP2015121887A (en) * 2013-12-20 2015-07-02 キヤノン株式会社 Information processing device and control method thereof, and program

Also Published As

Publication number Publication date
CA2989654A1 (en) 2017-01-12
KR20180027529A (en) 2018-03-14
EP3320426A1 (en) 2018-05-16
JP2018519611A (en) 2018-07-19
EP3320426A4 (en) 2019-04-24
WO2017008036A1 (en) 2017-01-12
KR102567780B1 (en) 2023-08-18
CN107851009B (en) 2021-11-09
CN107851009A (en) 2018-03-27
JP6626956B2 (en) 2019-12-25

Similar Documents

Publication Publication Date Title
US10067490B2 (en) Method and apparatus for modifying behavior of code for a controller-based device
EP3295649B1 (en) Method and apparatus for automatic software development for a group of controller-based devices
EP3596593B1 (en) Method and apparatus for automatically generating and incorporating code in development environments
US10798780B2 (en) Method and apparatus for creating and managing controller based remote solutions
US10338904B2 (en) Specialized app development and deployment system and method
CA3009166A1 (en) Method and apparatus for creating and managing controller based remote solutions
US9619122B2 (en) Method and apparatus for automatic device program generation
CN107003836B (en) Flexible device template for connected consumer devices
US20160098284A1 (en) Dynamic device drivers
US9361432B2 (en) Configuring a security setting for a set of devices using a security policy
US10666683B2 (en) User interface for low-touch security policy provisioning
CA2989654C (en) Method and apparatus for modifying behavior of code for a controller-based device
US20140372928A1 (en) Common dashboard framework for creating a mashup dashboard
US11483221B2 (en) Launcher application with connectivity detection for shared mobile devices
WO2013083656A2 (en) Systems and methods for configuring and using automated systems in buildings
EP3501160B1 (en) Method and apparatus for creating and managing controller based remote solutions
JP5956679B2 (en) Control device
US20150201003A1 (en) System and method for utilizing script logic in connection with an installed enterprise service application

Legal Events

Date Code Title Description
EEER Examination request

Effective date: 20210412