Secure wireless communication of robot safety status information
Through the use of dual microcontroller structure and unique error codes, the undetectable errors and bandwidth waste of secure information transmission in wireless communications are solved, and efficient and reliable transmission of secure information is achieved.
Patent Information
- Application Number
- JP2022552764
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-03-04
- Filing Date
- 2021-03-04
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-03-04
AI Technical Summary
In the prior art, when transmitting robot security status information, wireless communications are susceptible to random errors, resulting in undetectable errors in the security system, and existing systems have wasteful and unscalable problems in bandwidth and power consumption.
Using a dual microcontroller structure, by generating and verifying data packets with unique error codes, secure information is ensured to be transmitted at low error in wireless communications, including first generating data packets containing payload and first error codes, then adding their unique error codes by the second microcontroller and verifying them, and finally decoding the security status by the receiver.
It effectively reduces the undetectable error rate in wireless communication, improves the scalability and bandwidth efficiency of the system, and ensures the reliability and accuracy of secure information transmission.
Smart Images

Figure 0007544836000005 
Figure 0007544836000006 
Figure 0007544836000007
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims the benefit of U.S. Provisional Application No. 62 / 985,241, filed March 4, 2020, the disclosure of which is incorporated by reference in its entirety into this specification.
[0002]
[0002] The present disclosure relates generally to the field of robotics, and more specifically, to transmitting safety state information to a robot over a communication channel. [Background technology]
[0003]
[0003] Conventional systems use wired communication to transmit safety status information. For example, if the safety status indicates an emergency condition, this information is transmitted to the robot via wired communication lines, where a switch is flipped to cut off power or fuel to the robot, forcing the robot to stop. Wireless communication signals are susceptible to random errors, for example, due to Gaussian noise in the wireless communication channel, which in turn causes undetectable errors in the safety system. Regulatory standards bodies have established requirements to control the probability of undetectable errors in certain safety messages below a certain level. Existing systems that meet the requirements rely on mechanisms that are redundant and result in unnecessary bandwidth and power consumption. Furthermore, existing systems are not scalable in that as the size of the safety messages increases, the loss of bandwidth and power consumption in those systems becomes very large. Summary of the Invention
[0004]
[0004] Disclosed herein are systems and methods for generating, transmitting and verifying safety messages over a communication channel (e.g., wirelessly) in a bandwidth- and power-efficient and scalable manner. In one embodiment, a first source microcontroller generates a first data packet including a payload and a first error code (e.g., a cyclic redundancy check (CRC) code). The payload may indicate a safety status of the robot. The error code may be generated based on a first unique key used by the first source microcontroller to encode the data packet in a consistent manner. However, for efficiency and security, the key may be omitted from the data packet.
[0005]
[0005] A first source microcontroller transmits a data packet from the first source microcontroller to a second source microcontroller. The second source microcontroller generates a second data packet including a payload, a first error code, and a second error code, the second error code being derived based on the payload and a second key unique to the second microcontroller. Before generating the second data packet, the second source microcontroller may verify that its safety state matches the safety state of the first source microcontroller. If successfully generated, the second data packet is a safety message.
[0006]
[0006] A second source microcontroller transmits a second data packet over a communication channel (e.g., wirelessly) to a sink microcontroller that recovers the payload based on at least one of the first and second error codes. To recover the payload, the sink microcontroller may be pre-programmed with one or both of the first and second keys and may decode the encoded payload using the pre-programmed keys.
[0007]
[0007] The disclosed embodiments have other advantages and features that will become more readily apparent from the detailed description, the appended claims, and the accompanying figures (or drawings). A brief introduction of the figures is as follows: [Brief description of the drawings]
[0008] [Figure 1]
[0008] An embodiment of a system environment for communicating between a source device and a receiving device is illustrated. [Diagram 2]
[0009] 1 illustrates one embodiment of exemplary modules and databases used by a source microcontroller. [Diagram 3]
[0010] 1 illustrates one embodiment of exemplary modules and databases used by a receiving microcontroller. [Figure 4]
[0011] 1 illustrates one embodiment of a data flow for generating a secure packet from a first source microcontroller. [Diagram 5]
[0012] 1 illustrates one embodiment of a data flow for generating a secure packet from a second source microcontroller based on a packet received from a first source microcontroller. [Figure 6]
[0013] 1 illustrates one embodiment of a representation of a secure packet. [Figure 7]
[0014] 1 illustrates one embodiment of a payload of a safety packet. [Figure 8]
[0015] 4 illustrates a second embodiment of the payload of a safety packet. [Figure 9]
[0016] 1 illustrates one embodiment of information in a secure message header. [Figure 10]
[0017] FIG. 2 is a block diagram illustrating components of an example machine that can read instructions from a machine-readable medium and execute those instructions on a processor (or controller). [Figure 11]
[0018] 1 illustrates one embodiment of an exemplary process for generating and verifying a safety message. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009]
[0019] The drawings and the following description relate to preferred embodiments by way of example only. It should be noted that from the following discussion, alternative embodiments of the structures and methods disclosed herein will be readily recognized as viable alternatives that may be employed without departing from the principles of what is claimed.
[0010]
[0020] Reference will now be made in detail to several embodiments, examples of which are illustrated in the accompanying figures. It should be noted that, wherever practicable, similar or similar reference numerals may be used in the figures and may indicate similar or similar functionality. The figures depict embodiments of the disclosed system (or method) for illustrative purposes only. Those skilled in the art will readily recognize from the following description that alternative embodiments of the structures and methods illustrated herein may be employed without departing from the principles described herein.
[0011] System environment for source and receiving devices
[0021] The environment 100 includes a source device 110, a network 120, and a receiving device 130. The source device 110 may be any device that provides safety state information to the receiving device 130. The term safety state information, as used herein, may refer to information regarding whether the receiving device 130 should modify its operation due to a safety condition. For example, the safety state information may include whether an emergency stop (sometimes referred to herein as e-stop or Estop) button has been activated, in which case the power or fuel source of the receiving device must be deactivated. The safety state information may include other information, such as environmental information (e.g., camera information) from which nearby obstacles and hazards may be derived, which in turn may cause the receiving device 130 to modify its operation to avoid engaging with the obstacles and hazards. Although the source device 110 is depicted as a single device, it may include two or more devices. The source device 110 may include one or more sensors from which the safety state information is derived, and may include one or more controllers (e.g., controllers that control one or more aspects of the receiving device 130) that may change the safety state. As described in more detail below, source device 110 may include multiple safety microcontrollers that process signals into safety messages that include safety state information.
[0012]
[0022] The network 120 may be any data communication channel between the source device 110 and the receiving device 130. The communication channel may be a direct connection or may include intervening relay devices (e.g., electronic relays, routers, gateways, etc.). The communication channel may include two or more virtual channels. For example, if multiple safety microcontrollers are installed in the source device 110, each safety microcontroller may have a corresponding virtual channel within the communication channel over which its communications are transmitted. Optionally, the destination address of a packet transmitted over such a virtual channel may be dedicated to reach a particular microcontroller of the receiving device 130.
[0013]
[0023] The receiving device 130 may be any device programmed to modify its operating state based on the safety information. In general, the receiving device 130 is a robot, and when the robot performs operations, those operations involve some form of danger (e.g., to human safety, to destruction of objects, to the robot itself potentially being damaged by obstacles, to the robot damaging the load it is manipulating, etc.). However, the receiving device 130 is not limited to being a robot and may be any other device. Exemplary devices may include milling machines, conveyor belts, cranes, excavators, tractors, harvesters, forestry equipment, nuclear power plants (or subcomponents thereof), oil refineries (or subcomponents thereof), etc., where control of dangerous actions is required to reduce risk to humans or other losses. As used herein, the term "robot" may refer to any device having a physical machine controlled by a device controller.
[0014]
[0024] In one embodiment where the network 120 is a wireless communication channel, to ensure that the probability of undetectable errors in messages between the source device 110 and the receiving device 130 is less than a threshold maximum error value, the source device 110 may have two secure microprocessors, each transmitting one copy of a data payload describing the safety information. The copies may differ in that they may be inverted from each other. For example, each secure microprocessor may periodically (e.g., every 20 milliseconds) transmit a message describing the state of an e-stop button. The two messages may each be scrambled (e.g., using a salt or scrambling code unique to the secure microprocessor that is scrambling the copy). The two messages may be transmitted (e.g., separately or together) over the wireless communication channel. The receiving device 130 receives the messages, descrambles them, and determines whether the two messages are highly correlated (e.g., 100% correlated or within a threshold of 100% correlation, such as 99.9%, where the threshold is 0.1%). If the messages are highly correlated, the receiving device 130 determines that the safety state information is correct. If the messages are not highly correlated, the receiving device 130 determines that the safety state information is incorrect and modifies the operation of the receiving device 130 accordingly (e.g., puts the robot in a safe state). In one embodiment, the receiving device 130 may implement a time threshold to allow the source microcontroller to have out-of-sync safety messages and to synchronize (e.g., two message periods, such as 40-50 ms, if the expected message rate is 20 ms per message). In response to detecting that the safety messages are out of sync for a time exceeding the time threshold, the receiving device 130 may determine that the safety state information is incorrect and determine a fault and enter a safe state.
[0015]
[0025] Advantageously, by transmitting two messages over a wireless communication channel in this embodiment, it is ensured that there are no undetectable errors or that they are sufficiently small, considering that undetectable errors cause poor correlation between the two messages. However, transmitting two messages is bandwidth inefficient, and these inefficiencies hinder scalability to complex systems. For example, e-stop information is binary and therefore requires a small bandwidth so that transmitting two messages is technically practical. However, when analog values that may be several bytes long are transmitted, or when something more complex such as a point field with kilobytes of data is frequently transmitted, transmitting two copies of this information requires consuming an impractical amount of bandwidth. To address these issues, further embodiments that do not require the transmission of multiple copies of the safety message from the source device to the receiving device are described below with reference to Figures 2-11.
[0016] Exemplary Source and Receiving Microcontroller Architectures
[0026] FIG. 2 illustrates one embodiment of exemplary modules and databases used by a source microcontroller. As illustrated in FIG. 2, the source microcontroller 210 includes a signal input module 221, a packet generation module 222, an error code module 223, a state verification module 224, a packet correction module 225, an encryption module 226, a key storage 236, and an error code storage 237. The modules and databases illustrated in FIG. 2 are merely exemplary; more or fewer databases and modules may be used to achieve the functionality described herein. Additionally, although the modules and databases are described as part of the source microcontroller 210, these modules and / or databases may be instantiated elsewhere within the source device 110 that houses the source microcontroller 210. Multiple source microcontrollers 210 may be implemented in a single source device 110. While the term microcontroller is not limiting, an exemplary use case is a microcontroller, and whenever the term microcontroller is used herein, any controller or processor may be used instead.
[0017]
[0027] The signal input module 221 receives a signal based on sensor data received or generated by the source device 110 in which the source microcontroller 210 is housed. For example, when a user presses an e-stop button operably coupled to the source device 110, the signal input module 221 detects a signal indicating that the e-stop button has been pressed. As in the e-stop example, the signal may be binary. The signal may be analog (e.g., when the signal is received based on input from one or more joysticks of a remote controller of the receiving device 130 in which the source device 110 serves as a remote controller), and may include a multi-dimensional point cloud (e.g., based on LIDAR input and / or other camera or spectroscopic data).
[0018]
[0028] The packet generation module 222 generates data packets that include a header, a safety payload (also referred to interchangeably herein as simply a payload), and one or more error codes. Different safety microcontrollers may generate packets in different ways. Details of how the packet generation module 222 generates data packets are described below with reference to Figures 4 and 5. Details of the contents of the packet headers and payloads are described below with reference to Figures 6-9.
[0019]
[0029] The error code module 223 generates an error code (used interchangeably herein as an "error detection code"). In one embodiment, the error code is a CRC value. The error code module 223 generates the CRC value based on the payload. The CRC value may further be based on the length of a key specific to the source microcontroller 210 that is appended to the payload. Instead of using a CRC value, any other type of check sequence may be used, including a checksum algorithm (e.g., simple arithmetic, Fletcher's sum, XOR algorithm, etc.), a hash function, a cryptographic hash (e.g., MD5, HMAC, SHA, etc.), etc. Depending on which source microcontroller is being used, further details on how the error code is derived are described below with respect to Figures 4 and 5.
[0020]
[0030] In one embodiment, two different source microcontrollers 210 manipulate the data packets before they are sent from the source device 110 to the receiving device 130. First, the first source microcontroller 210 generates a packet with a payload and an error code, and then the second source microcontroller 210 receives the packet and adds its own error code to the packet. This process is described in more detail below with respect to Figures 4 and 5. The state verification module 224 is used by the second source microcontroller 210 in this embodiment to verify the state before adding its own error code to the packet.
[0021]
[0031] When the second source microcontroller 210 receives a packet from the first source microcontroller 210, the state verification module 224 examines the safe state information in the payload to determine the safe state of the first source microcontroller 210. The second source microcontroller 210 compares the safe state information with its own safe state information to determine whether there is a match. If there is no match, the second state verification module 224 determines that the second source microcontroller 210 is not synchronized with the first source microcontroller 210. In one embodiment, in response to determining that the second source microcontroller 210 is not synchronized with the first source microcontroller 210, the second source microcontroller 210 transmits a message that causes the receiving device 130 to enter a fault state. In another embodiment, in response to determining that the second source controller 210 is not synchronized with the first source microcontroller 210, the second source microcontroller 210 waits to generate a packet to transmit to the receiving device 130 until the two source microcontrollers are synchronized for a period of time. As an illustrative example, when the e-stop button is pressed, both the first and second source microcontrollers receive a signal that updates their safety state information to indicate that the e-stop button was indeed pressed. However, because only one of the two microcontrollers received the signal and updated their safety state information accordingly, there may be a length of time (e.g., milliseconds) during which the two states are out of sync due to latency. To ensure that accurate safety state information is passed downstream to the receiving device 130, the state verification module 224 ensures that the two source microcontrollers are synchronized before sending a safety message to the receiving device 130. In one embodiment, some discrepancy between the safety states of the two microcontrollers is tolerated (e.g., below a predefined discrepancy threshold or window) to account for differences in timing and noise, thereby determining a match despite a conditional discrepancy.If after the time interval it is determined that the source microcontroller remains out of sync, the source microcontroller 210 sends a message that causes the recipient device 130 to enter a fault state.
[0022]
[0032] The packet modification module 225 is executed by the second source microcontroller. The packet modification module 225 enables the second source microcontroller to generate a safety message by modifying the data packet received from the first source microcontroller. Further details about the packet modification module 225 are described in detail below with respect to FIG.
[0023]
[0033] The encryption module 226 optionally encrypts the secure message before transmission. Encryption provides a higher level of security than simple scrambling, which is typically performed using a unique key for each source microcontroller. In one embodiment, the encryption module 226 encrypts the payload of the packet before appending an error code to the payload. In one such embodiment, the error code module 223 appends the error code to the encrypted payload rather than to the scrambled or bare payload.
[0024]
[0034] The key storage 236 stores one or more keys that are unique to the source microcontroller 210. The keys are used by the packet generation module 222 to scramble the payload before transmitting it. The error code storage 237 stores the error code for later use. For example, the second microcontroller may strip an error code from the packet that the second microcontroller is going to correct and store the stripped error code in the error code storage 237. After performing some corrections, the second microcontroller retrieves the stripped error code from the error code storage 237 and re-applies it to the corrected data packet.
[0025]
[0035] The source microcontroller 210 may send the data packets directly to the receiving device 130 or may send the data packets to another processor in the source device 110, which in turn sends the data packets to the receiving device 130.
[0026]
[0036] FIG. 3 illustrates one embodiment of exemplary modules and databases used by the receiving microcontroller. As illustrated in FIG. 3, the receiving microcontroller 310 includes a payload extraction module 341, a key module 342, an error code verification module 343, a decoder module 344, a pre-programmed key storage 356, and an error code storage 357. The modules and databases illustrated in FIG. 3 are merely exemplary; more or fewer databases and modules may be used to achieve the functionality described herein. Additionally, although the modules and databases are described as part of the receiving microcontroller 310, these modules and / or databases may be instantiated elsewhere within the receiving device 130 that houses the receiving microcontroller 310. Multiple receiving microcontrollers 310 may be implemented within a single receiving device 310. While the term microcontroller is not limiting, an exemplary use case is a microcontroller, however, whenever the term microcontroller is used herein, any controller or processor may be used instead.
[0027]
[0037] The payload extraction module 341 extracts the payload from the received packet. The payload is scrambled, encrypted, or both. The payload extraction 341 may extract the payload by removing the appended error code from the payload and storing it in the error code storage 357. The key module 342 retrieves one or more pre-programmed keys corresponding to one or more of the first source microcontroller, the second source microcontroller, or both from the pre-programmed key storage 356. The key module 342 applies the retrieved key to decrypt the scrambled payload. The error code verification module 343 generates an error code for the descrambled payload and compares it with the appended error code stored in the error code storage 357. The error code verification module 343 determines that the security message is valid in response to determining that the generated error code matches the appended error code. The error code verification module 343 determines that the security message is invalid in response to determining that the generated error code does not match the appended error code. Because the key is unique to the source microcontroller, the error code is unique to the source microcontroller and therefore essentially serves as a signature of the source microcontroller that can be verified with the present method.
[0028]
[0038] In response to determining that the safety message is invalid, in one embodiment, the receiving microcontroller 310 may instruct the receiving device 130 to enter a safety mode. In response to determining that the safety message is valid, the receiving microcontroller 310 may determine from the safety message whether a modification of the operating mode of the receiving device 130 corresponds to the safety message, and may change the operating mode of the receiving device 130 accordingly.
[0029] Exemplary Data Flow for Generating Safety Messages
[0039] 4 illustrates one embodiment of a data flow for generating a safety packet from a first source microcontroller. FIG. 4 illustrates the activity of a source microcontroller 400, also referred to herein as SMCU0 (source microcontroller unit 0). The source microcontroller 400 generates a data packet (also referred to as a safety message) in response to detecting a trigger. Exemplary triggers include sensor information (e.g., an e-stop button being pressed) and detecting the lapse of a periodic (or non-periodic) time interval during which a safety message is periodically transmitted. Once a trigger is detected, the source microcontroller 400 packages the safety information into a safety payload 411 (e.g., using the packet generation module 222).
[0030]
[0040] The source microcontroller 400 appends the key 412 to the secure payload 411. The source microcontroller 400 then generates an error code (e.g., using the error code module 223) that has both the secure payload 411 and the key 412 based on the structure of the packet 410. After generating the error code, the source microcontroller 400 removes the key 412 from the packet and adds the error code 422 to the secure payload 411, thus resulting in the data packet 420. As discussed with reference to FIG. 5, the source microcontroller then transmits the data packet 420 to the source microcontroller 500 for further modification.
[0031]
[0041] 5 illustrates one embodiment of a data flow for generating a secure packet from a second source microcontroller based on a packet received from a first source microcontroller. The source microcontroller 500 (also referred to herein as SMCU1) receives a data packet 420 from the source microcontroller 400. In response to receiving the data packet 420, the source microcontroller 500 determines the secure state indicated in the secure payload 411 and verifies 520 the state with its own secure state (e.g., using the state verification module 224). The source microcontroller 500 modifies the data packet 420 into a data packet 530 by removing the error code 422 from the secure payload 411 and appending its own key 512. This allows the source microcontroller 500 to generate an error code 543 that is not affected by the error code from the source microcontroller 400. The source microcontroller 500 then generates the data packet 540 by removing the key 512 from the data packet 530, re-appending the error code 422 to the secure payload 411, and appending the error code 543 to the data packet. As shown, the error code 422 is appended first and the error code 543 is appended second. This is non-limiting and the error code may be appended to any error. Appending the error codes in a predefined order may be advantageous in that the receiving processor can be sure to know which error code to compare when decoding the secure message, thus preventing the waste of processing power in comparing against inapplicable error codes before comparing against the correct error code.
[0032]
[0042] Figures 4 and 5 use the term "CRC" where an error code is represented. This is merely exemplary and to aid in understanding; wherever represented, any error code may be used instead of a CRC value. The use of two source microcontrollers is merely exemplary; the process of Figure 5 may be repeated with any number of source microcontrollers, with the next source microcontroller removing the error code value from the previous microcontroller to calculate the error code value using its own key, and then re-adding the error code value from the previous microcontroller.
[0033]
[0043] The data flows shown in Figures 4-5 allow the system to keep undetectable errors below a threshold (e.g., a regulatory threshold) without the need to send two messages from the source device 110 to the receiving device 130. Specifically, the use of at least two messages (one from each source microcontroller), each with its own error detection mechanism (e.g., CRC), provides both redundancy (data is sent twice within the source device 110) and diversity (data comes from at least two independent sources, the source being the source microcontroller). The combination of proper error detection and redundancy for each safety message within the source device 110 greatly reduces the likelihood of undetectable errors in the messages, since the random noise that causes these errors is highly unlikely to repeat in the same pattern in both messages. The penalty of doubling the bandwidth required in sending two messages over the network 120 to the receiving device 130 is avoided by using a unique signature for each source microcontroller, which makes the resulting error checking code unique for each processor, thus allowing two unique checks on the same data (and each processor-specific signature).
[0034]
[0044] FIG. 6 illustrates one embodiment of a representation of a safety packet. As used herein, the term safety packet may refer to any packet (e.g., a packet generated using the modules and data flows of FIGS. 2-5) that includes safety information. In one variation, a safety message (e.g., 600) identifies a safety-critical state (safety state) of one or more input devices coupled to a given source microcontroller of source device 110. In one variation, the source microcontroller generates the safety message 600. The safety message may include a safety message header 610 and safety information 620. The contents of the safety message header 610 and safety information 620 are described in further detail in FIGS. 7-9. The term safety message may refer to any payload of a safety packet that includes safety information.
[0035]
[0045] FIG. 7 shows one embodiment of the payload of a safety packet, and FIG. 8 shows a second embodiment of the payload of a safety packet. In particular, FIG. 7 shows safety information in a safety packet that may be in the payload of a safety message. In a first variant, each safety processor (e.g., 400, 500) generates a respective part of the safety message 600 (e.g., message parts 711 and 712 shown in FIG. 7). In the first variant of generating a safety message, each safety processor independently passes its part (e.g., 711, 712 shown in FIG. 5B) of the safety message (e.g., data identifying the safety state generated by the safety processor in S210) to a processor of the source device 110, which combines the parts into a single message to be sent to the receiving device 130.
[0036]
[0046] In one implementation, for each message part (e.g., 711, 712) of a safety message generated by a respective safety processor (e.g., source microcontroller), a new sequence number (e.g., safety sequence) is generated for the message part, the safety processor's generated (or updated) safety state (e.g., e-stop state) (for at least one safety input device) is added to the message part, and an error detection code is generated. The error detection code may be a CRC (cyclic redundancy check). In one example, the error detection code is a CRC of the sequence number and the safety state. In one example, the CRC is an 8-bit CRC. However, any suitable type of error detection code may be used. In one example, the message part includes at least one of a sequence number, a safety state, and an error detection code. In one example, the message part includes a safety payload and an error detection code, and the safety payload includes the sequence number (safety sequence) and the safety state (e.g., local Estop state, input state, etc.). In one example, the message parts are scrambled (e.g., encrypted) by using a security key associated with the associated secure input device (e.g., 131), and the security key is known to the secure processor (e.g., 111) and to the secure processor (e.g., 121) included in the device (e.g., 120) that uses the secure message (e.g., 500). In some implementations, each message part (e.g., 511, 512) is 2 bytes. In some implementations, each message part is 3 bytes. However, each message part may be of any suitable size.
[0037]
[0047] In a second variant shown in FIG. 8, there may be a single safety payload (e.g., 810 shown in FIG. 8) of the safety message 800 generated by the safety microcontroller, and one or more safety microcontrollers verify the generated safety payload (e.g., by generating a respective error detection code). The verified safety payload (e.g., 810 shown in FIG. 8) can be sent for output to the receiving device 130. In one implementation, the safety processor passes the safety information (e.g., 800 shown in FIG. 5C) to the processor of the source device 110 continuously until the single safety information is processed. In one implementation, this single safety information (e.g., 800) includes one copy of the safety payload (e.g., 810). The safety payload identifies the safety state generated in S220. In addition to the safety payload, the single safety information (e.g., 810) includes error detection data (e.g., 821, 822) generated by each safety microcontroller using a unique key code. In some implementations, the safety payload (e.g., 810) includes various information related to one or more safety-critical inputs. In some implementations, the safety payload identifies at least one of: a frame type (specifying the format and length of the safety message); a sequence number (e.g., a monotonically increasing number that identifies the order of the safety messages); and a source identifier (e.g., a unique identifier for the associated safety input device). In some implementations, the sequence number can be used to detect repeated, out-of-sequence, and delayed messages. In some implementations, the safety payload identifies at least one of: a binary safety input state (e.g., emergency stop button, enabled / tri-state switch, safety enabled push button, etc.); an analog safety state (e.g., safety enabled joystick value, safety sensor value, etc.); a controller state (e.g., active fault, critical event, etc.); and a log entry (e.g., highly secure and / or safety critical event log information). However, the safety payload can identify any suitable type of information.
[0038]
[0048] 9 illustrates one embodiment of information in a safety message header. In one example, the safety message 600 includes a safety message header (e.g., 900). In one example, the header 900 includes an error detection code for the safety message 600. In one example, the header (e.g., 900) includes at least one of: a start of packet marker; a length of the safety message; an error detection code for the safety message; a source address (e.g., identifying a safety input device); an opcode; and a sequence number for the safety message 600. However, the header may include any suitable information. In one example, each safety message (e.g., 500) is 14 bytes. However, each safety message may have any suitable size.
[0039] Computing Machine Architecture
[0049] FIG. 10 is a block diagram illustrating components of an exemplary machine capable of reading instructions from a machine-readable medium and executing the instructions on a processor (or controller). In particular, FIG. 10 shows a schematic representation of a machine in the exemplary form of a computer system 1000 in which program code (e.g., software) may be executed to cause the machine to perform any one or more of the methodologies discussed herein. The program code may be comprised of instructions 1024 executable by one or more processors 1002. In alternative embodiments, the machine may operate as a stand-alone device or may be connected (e.g., networked) to other machines. In a networked deployment, the machine may operate in the capacity of a server machine or a client machine in a server-client network environment, or may operate as a peer machine in a peer-to-peer (or distributed) network environment.
[0040]
[0050] The machine may be a server computer, a client computer, a personal computer (PC), a tablet PC, a set-top box (STB), a personal digital assistant (PDA), a cell phone, a smart phone, a web appliance, a network router, a switch or bridge, a controller for robotics and other machines (fixed or mobile), or any machine capable of executing instructions 1024 (sequential or otherwise) that specify actions to be performed by the machine. Additionally, while only a single machine is illustrated, the term "machine" is intended to include any collection of machines that individually or collectively execute instructions 124 to perform any one or more of the methodologies discussed herein.
[0041]
[0051] The exemplary computer system 1000 includes a processor 1002 (e.g., a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), one or more application specific integrated circuits (ASICs), one or more radio frequency integrated circuits (RFICs), or any combination thereof), a main memory 1004, and a static memory 1006, which are configured to communicate with each other via a bus 1008. The computer system 1000 may further include a visual display interface. The visual interface may include software drivers that allow for displaying a user interface on a screen (or display). The visual interface may display the user interface directly (e.g., on a screen) or indirectly (e.g., via a visual projection unit) on a surface, window, or the like. For ease of discussion, the visual interface may be represented as a screen. The visual interface 1010 may include or interface with a touch-enabled screen. Computer system 1000 may also include an alphanumeric input device 1012 (e.g., a keyboard or touch screen keyboard), a cursor control device 1014 (e.g., a mouse, trackball, joystick, motion sensor, or other pointing device), a storage unit 1016, a signal generating device 1018 (e.g., a speaker), and a network interface device 1020, which are also configured to communicate via bus 1008.
[0042]
[0052] The storage unit 1016 includes a machine-readable medium 1022 that is stored instructions 1024 (e.g., software) that embody any one or more of the methodologies or functions described herein. The instructions 1024 (e.g., software) may also reside, completely or at least partially, within the main memory 1004 or within the processor 1002 (e.g., within a processor cache memory) during execution by the processor 1002 that constitutes the computer system 1000, the main memory 1004 and the machine-readable medium. The instructions 1024 (e.g., software) may be transmitted or received over a network 1026 via a network interface device 1020.
[0043]
[0053] Although the machine-readable medium 1022 is shown in the exemplary embodiment as being a single medium, the term "machine-readable medium" is taken to include a single medium or multiple media (e.g., a centralized or distributed database or associated caches and servers) capable of storing instructions (e.g., instructions 1024). The term "machine-readable medium" is also taken to include any medium that can store instructions (e.g., instructions 1024) for execution by a machine and that causes the machine to perform any one or more of the methodologies disclosed herein. The term "machine-readable medium" includes, but is not limited to, data repositories in the form of solid-state memories, optical media, and magnetic media.
[0044] Exemplary Safety Message Process
[0054] 11 illustrates one embodiment of an exemplary process for generating and verifying a safety message. Elements of process 100 may be performed by a processor (e.g., processor 1002 executing one or more modules of one or more source microcontrollers 210 of source device 110). Process 1100 begins with a first source microcontroller (e.g., source microcontroller 400) generating 1110 (e.g., using packet generation module 222) a first data packet (e.g., data packet 420) including a payload (e.g., safety payload 411) and a first error code (e.g., error code 422), where the payload indicates a safety status of the robot (e.g., as indicated in safety information 711 and / or safety information 800). The first source microcontroller 1120 transmits 1120 the data packet from the first source microcontroller to a second source microcontroller (e.g., source microcontroller 500).
[0045]
[0055] The second source microcontroller 1130 generates 1130 a second data packet (e.g., data packet 540) including a payload, a first error code, and a second error code (e.g., error code 543). The second source microcontroller transmits the second data packet over a communication channel (e.g., network 120, which may be wireless) to a receiving microcontroller (e.g., receiving microcontroller 310 of receiving device 130), which recovers the payload based on at least one of the first error code and the second error code.
[0046] Additional configuration considerations
[0056] Throughout this specification, multiple examples may implement components, operations, or structures that are described as a single example. Although individual operations of one or more methods are illustrated and described as separate operations, one or more of the individual operations may be performed simultaneously, and the operations need not be performed in the order illustrated. Structures and functions presented as separate components in example configurations may be implemented as combined structures or components. Similarly, structures and functions presented as a single component may be implemented as separate components. These and other variations, modifications, additions, and improvements are within the scope of the subject matter of this specification.
[0047]
[0057] Certain embodiments are described herein as including logic or multiple components, modules, or mechanisms. A module may constitute either a software module (e.g., code embodied on a machine-readable medium or in a transmission signal) or a hardware module. A hardware module is a tangible unit capable of performing certain operations and may be configured or arranged in a particular manner. In an exemplary embodiment, one or more computer systems (e.g., standalone, client, or server computer systems) or one or more hardware modules of a computer system (e.g., a processor or processors) may be configured by software (e.g., an application or application portion) as a hardware module that operates to perform certain operations described herein.
[0048]
[0058] In various embodiments, a hardware module may be implemented mechanically or electronically. For example, a hardware module may comprise dedicated circuitry or logic circuitry that is permanently configured (e.g., as a dedicated processor such as a field programmable gate array (FPGA) or application specific integrated circuit (ASIC)) to perform certain operations. A hardware module may comprise programmable logic or circuitry (e.g., contained within a general purpose processor or other programmable processor) that is temporarily configured by software to perform certain operations. It should be understood that the decision to implement a hardware module mechanically with dedicated permanently configured circuitry or with temporarily configured circuitry (e.g., configured by software) may be driven by cost and time considerations.
[0049]
[0059] Thus, the term "hardware module" should be understood to include a tangible entity that is physically configured, permanently configured (e.g., hardwired), or temporarily configured (e.g., programmed) to operate in a particular manner or to perform particular operations described herein. As used herein, "hardware-implemented module" refers to a hardware module. Given embodiments in which the hardware modules are temporarily configured (e.g., programmed), each of the hardware modules need not be configured or instantiated at any one time. For example, if the hardware modules comprise a general-purpose processor configured using software, the general-purpose processor may be configured as different hardware modules at different times. Thus, the software may, for example, configure the processor to configure a particular hardware module at one time and to configure a different hardware module at a different time.
[0050]
[0060] Hardware modules can provide information to and receive information from other hardware modules. Thus, the described hardware modules may be considered to be communicatively coupled. When multiple such hardware modules are present simultaneously, communication may be achieved through signal transmissions connecting the hardware modules (e.g., via appropriate circuits and buses). In embodiments in which multiple hardware modules are configured or instantiated at different times, communication between such hardware modules may be achieved, for example, through storage and retrieval of information in memory structures accessed by the multiple hardware modules. For example, one hardware module may perform an operation and store the output of that operation in a communicatively coupled memory device. An additional hardware module may then later access the memory device to retrieve and process the stored output. Hardware modules may initiate communication with input or output devices and may also operate on resources (e.g., information gathering).
[0051]
[0061] Various operations of the example methods described herein may be performed, at least in part, by one or more processors that are temporarily configured (e.g., by software) or permanently configured to perform the associated operations. Such processors, whether temporarily or permanently configured, may constitute processor-implemented modules that operate to perform one or more operations or functions. Modules referred to herein may, in certain example embodiments, comprise processor-implemented modules.
[0052]
[0062] Similarly, the methods described herein may be at least partially processor-implemented. For example, at least some of the operations of the methods may be performed by one or more processors or processor-implemented hardware modules. Performance of certain operations may not only reside within a single machine, but may also be distributed among one or more processors spread across multiple machines. In certain exemplary embodiments, one or more processors may be located in a single location (e.g., in a home environment, an office environment, or as a server farm), while in other embodiments, the processors may be distributed across several locations.
[0053]
[0063] One or more processors may operate to support performance of associated operations in a "cloud computing" environment or as a "software as a service" (SaaS). For example, at least some of the operations may be performed by a collection of computers (as examples of machines that include the processors), and these operations are accessible via a network (e.g., the Internet) and one or more suitable interfaces (e.g., application program interfaces (APIs)).
[0054]
[0064] Performance of a particular operation may be distributed among one or more processors that reside within a single machine, or may be spread across multiple machines. In some exemplary embodiments, one or more processors or processor-implemented modules may be located in a single geographic location (e.g., in a home environment, an office environment, or a server farm). In other exemplary embodiments, one or more processors or processor-implemented modules may be distributed across several geographic locations.
[0055]
[0065] Some portions of this specification are presented in terms of algorithms or symbolic representations of operations on data stored as bits or binary digital signals in a machine memory (e.g., computer memory). These algorithms or symbolic representations are examples of techniques used by those skilled in the data processing arts to convey the substance of their work to others skilled in the art. As used herein, an "algorithm" is a self-consistent sequence of operations or similar processes that lead to a desired result. In this context, algorithms and operations involve physical manipulations of physical quantities. Typically, though not necessarily, such quantities may take the form of electrical, magnetic or optical signals capable of being stored, accessed, transmitted, combined, compared or otherwise manipulated by a machine. It is sometimes convenient, primarily for reasons of common usage, to refer to such signals using terms such as "data," "content," "bits," "values," "elements," "symbols," "characters," "terms," "numbers," "digits," and the like. However, these terms are merely convenient labels and should be associated with the appropriate physical quantities.
[0056]
[0066] Unless otherwise specified, discussions herein using terms such as "processing," "computing," "calculating," "determining," "presenting," "displaying," and the like may refer to machine (e.g., computer) actions or operations that manipulate or transform data represented as physical (e.g., electronic, magnetic, or optical) quantities in one or more memories (e.g., volatile memory, non-volatile memory, or a combination thereof), registers, or other machine components that receive, store, transmit, or display information.
[0057]
[0067] As used herein, a reference to "one embodiment" or "one embodiment" means that a particular element, feature, structure, or characteristic described in connection with that embodiment is included in at least one embodiment. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment.
[0058]
[0068] Certain embodiments may be described using the terms "coupled" and "connected," along with their derivatives. It should be understood that these terms are not intended as synonyms for each other. For example, certain embodiments may be described using the term "connected" to indicate that two or more elements are in direct physical or electrical contact with each other. In another example, certain embodiments may be described using the term "coupled" to indicate that two or more elements are in direct physical or electrical contact with each other. However, the term "coupled" may also mean that two or more elements are not in direct contact with each other, but still cooperate or interact with each other. The embodiments are not limited in this context.
[0059]
[0069] As used herein, the terms "comprises," "comprising," "including," "including," "having," "having" or other variations thereof are intended to cover a non-exclusive inclusion. For example, a process, method, article, or apparatus that includes a list of elements is not necessarily limited to only those elements, but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Furthermore, unless expressly stated to the contrary, "or" refers to an inclusive or, not an exclusive or. For example, a condition A or B is satisfied by any one of: A is true (or present) and B is false (or absent), A is false (or absent) and B is true (or present), and both A and B are true (or present).
[0060]
[0070] Furthermore, the use of "a" or "an" is employed to describe elements and components of the embodiments herein. This is done merely for convenience and to give a general sense of the invention. This description should be read to include one or at least one, and the singular also includes the plural, unless otherwise clearly meant.
[0061]
[0071] Upon reading this disclosure, those skilled in the art will recognize still further alternative structural and functional designs for systems and processes for efficiently transmitting secure information from a source device to a receiving device through the principles disclosed herein. Thus, while specific embodiments and applications have been illustrated and described, it should be understood that the disclosed embodiments are not limited to the precise structures and components disclosed herein. Various modifications, changes and variations apparent to those skilled in the art may be made in the arrangement, operation and details of the methods and apparatus disclosed herein without departing from the spirit and scope as defined by the appended claims.
Claims
1. generating, by a first source microcontroller, a first data packet including a payload and a first error code; attaching a first key to the payload indicative of a safe state of the robot; generating the first error code based on a length of the payload and a first key; removing the first key from the first data packet; appending the first error code to the payload, thereby generating a first data packet; transmitting the first data packet from the first source microcontroller to a second source microcontroller; generating, by the second source microcontroller, a second data packet including the payload, the first error code, and a second error code; removing the first error code from the first data packet; appending a second key to the payload of the first data packet; generating the second error code based on a length of the payload and the second key; removing the second key from the first data packet; re-appending the first error code to the payload; appending the second error code to the first error code to generate a second data packet; transmitting the second data packet over a communications channel to a receiving microcontroller, the receiving microcontroller being pre-programmed with both the first key and the second key; recovering, by the receiving microcontroller, the payload based on at least one of the first error code and the second error code; extracting the payload from the second data packet; appending the second key to the payload; generating a third error code; verifying that the third error code matches the second error code; appending the first key to the payload; generating a fourth error code; verifying that the fourth error code matches the first error code; and recovering the payload by:
2. generating, by a first source microcontroller, a first data packet including a payload and a first error code; attaching a first key to the payload indicative of a safe state of the robot; generating the first error code based on a length of the payload and a first key; removing the first key from the first data packet; appending the first error code to the payload, thereby generating a first data packet; transmitting the first data packet from the first source microcontroller to a second source microcontroller; generating, by the second source microcontroller, a second data packet including the payload, the first error code, and a second error code; removing the first error code from the first data packet; appending a second key to the payload of the first data packet; generating the second error code based on a length of the payload and the second key; removing the second key from the first data packet; re-appending the first error code to the payload; appending the second error code to the first error code to generate a second data packet; transmitting the second data packet over a communications channel to a second receiving microcontroller, the second receiving microcontroller being pre-programmed with the second key; recovering, by the second receiving microcontroller, the payload based on at least one of the first error code and the second error code; extracting the payload from the second data packet; appending the second key to the payload; generating a third error code; verifying that the third error code matches the second error code; and recovering the payload by:
3. 3. The method of claim 1, wherein the step of generating, by the first source microcontroller, the first data packet comprises the step of encrypting the first data packet.
4. The method of claim 1 or 2, wherein the first error code and the second error code comprise cyclic redundancy check values.
5. 3. The method of claim 1 or 2, further comprising the step of verifying, by the second source microcontroller, in response to receiving the first data packet, a second safety state of the robot against the safety state indicated in the payload.
6. verifying the second safety state against the safety state indicated in the payload includes determining whether the second safety state detected by the second source microcontroller matches the safety state detected by the first source microcontroller; 6. The method of claim 5, further comprising, in response to determining that the second safety state does not match the safety state detected by the first source microcontroller, causing the second source microcontroller to wait to perform further processing until the second safety state is confirmed to be consistent with the safety state detected by the first source microcontroller.
7. A non-transitory computer-readable medium comprising a memory encoded with instructions that, when executed, cause one or more processors to perform operations, the instructions comprising: generating, by a first source microcontroller, a first data packet including a payload and a first error code; attaching a first key to the payload indicative of a safe state of the robot; generating the first error code based on a length of the payload and a first key; removing the first key from the first data packet; and generating a first data packet by appending the first error code to the payload; transmitting the first data packet from the first source microcontroller to a second source microcontroller; generating, by the second source microcontroller, a second data packet including the payload, the first error code, and a second error code; removing the first error code from the first data packet; appending a second key to the payload of the first data packet; generating the second error code based on a length of the payload and the second key; removing the second key from the first data packet; re-appending the first error code to the payload; generating a second data packet by appending the second error code to the first error code; transmitting the second data packet over a communications channel to a receiving microcontroller that is preprogrammed with both the first key and the second key; recovering, by the receiving microcontroller, the payload based on at least one of the first error code and the second error code; Extracting the payload from the second data packet; appending the second key to the payload; Generate a third error code; Verifying that the third error code matches the second error code; appending the first key to the payload; Generate a fourth error code; and verifying that the fourth error code matches the first error code, thereby recovering the payload.
8. A non-transitory computer-readable medium comprising a memory encoded with instructions that, when executed, cause one or more processors to perform operations, the instructions comprising: generating, by a first source microcontroller, a first data packet including a payload and a first error code; attaching a first key to the payload indicative of a safe state of the robot; generating the first error code based on a length of the payload and a first key; removing the first key from the first data packet; and generating a first data packet by appending the first error code to the payload; transmitting the first data packet from the first source microcontroller to a second source microcontroller; generating, by the second source microcontroller, a second data packet including the payload, the first error code, and a second error code; removing the first error code from the first data packet; appending a second key to the payload of the first data packet; generating the second error code based on a length of the payload and the second key; removing the second key from the first data packet; re-appending the first error code to the payload; generating a second data packet by appending the second error code to the first error code; transmitting the second data packet over a communications channel to a second receiving microcontroller preprogrammed with the second key; recovering, by the second receiving microcontroller, the payload based on at least one of the first error code and the second error code; Extracting the payload from the second data packet; appending the second key to the payload; Generate a third error code; a second receiving microcontroller configured to receive the payload from the first receiving microcontroller by transmitting the payload and the first error code to a first receiving microcontroller that is preprogrammed with the first key, and recovering the payload by the first receiving microcontroller by verifying that the third error code matches the second error code using the first key and the first error code.
9. 9. The non-transitory computer-readable medium of claim 7 or 8, wherein instructions for generating, by the first source microcontroller, the first data packet include instructions for encrypting the first data packet.
10. The non-transitory computer-readable medium of claim 7 or 8, wherein the first error code and the second error code comprise cyclic redundancy check values.
11. 9. The non-transitory computer-readable medium of claim 7 or 8, wherein the instructions further include instructions for, in response to receiving the first data packet, verifying, by the second source microcontroller, a second safety state of the robot against the safety state indicated in the payload.
12. instructions for verifying a second safety state of the robot against the safety state indicated by the payload include instructions for determining whether the second safety state detected by the second source microcontroller matches the safety state detected by the first source microcontroller and indicated by the payload; 12. The non-transitory computer-readable medium of claim 11, wherein the instructions further include instructions for, in response to determining that the second safety state is inconsistent with the safety state detected by the first source microcontroller, causing the second source microcontroller to wait to perform further processing until the second safety state is confirmed to be consistent with the safety state detected by the first source microcontroller.
13. a memory encoded with instructions; One or more processors that, when executing the instructions, are caused to perform operations, the operations being: generating, by a first source microcontroller, a first data packet including a payload and a first error code; attaching a first key to the payload indicative of a safe state of the robot; generating the first error code based on a length of the payload and a first key; removing the first key from the first data packet; generating a first data packet by appending the first error code to the payload; and transmitting the first data packet from the first source microcontroller to a second source microcontroller; generating, by the second source microcontroller, a second data packet including the payload, the first error code, and a second error code; removing the first error code from the first data packet; appending a second key to the payload of the first data packet; generating the second error code based on a length of the payload and the second key; removing the second key from the first data packet; re-appending the first error code to the payload; appending the second error code to the first error code to generate a second data packet; transmitting the second data packet over a communications channel to a receiving microcontroller, the receiving microcontroller being pre-programmed with both the first key and the second key; recovering, by the receiving microcontroller, the payload based on at least one of the first error code and the second error code; extracting the payload from the second data packet; appending the second key to the payload; generating a third error code; verifying that the third error code matches the second error code; appending the first key to the payload; generating a fourth error code; verifying that the fourth error code matches the first error code; and recovering the payload by: recovering the payload by:
14. generating, by a first source microcontroller, a first data packet including a payload indicative of a safety state of the robot and a first error code; transmitting the first data packet from the first source microcontroller to a second source microcontroller; verifying, by the second source microcontroller, a second safe state of the robot against the safe state indicated in the payload in response to receiving the first data packet; generating, by the second source microcontroller, a second data packet including the payload, the first error code, and a second error code; removing the first error code from the first data packet; appending a second key to the payload of the first data packet; generating the second error code based on a length of the payload and the second key; removing the second key from the first data packet; re-appending the first error code to the payload; appending the second error code to the first error code to generate a second data packet; transmitting the second data packet over a communications channel to a receiving microcontroller, the receiving microcontroller being pre-programmed with both the first key and the second key; recovering, by the receiving microcontroller, the payload based on at least one of the first error code and the second error code; extracting the payload from the second data packet; appending the second key to the payload; generating a third error code; verifying that the third error code matches the second error code; appending the first key to the payload; generating a fourth error code; verifying that the fourth error code matches the first error code; and recovering the payload by:
15. A non-transitory computer-readable medium comprising a memory encoded with instructions that, when executed, cause one or more processors to perform operations, the instructions comprising: generating, by a first source microcontroller, a first data packet including a payload indicative of a safety state of the robot and a first error code; verifying, by a second source microcontroller in response to receiving the first data packet, a second safety state of the robot against the safety state indicated in the payload; transmitting the first data packet from the first source microcontroller to the second source microcontroller; generating, by the second source microcontroller, a second data packet including the payload, the first error code, and a second error code; removing the first error code from the first data packet; appending a second key to the payload of the first data packet; generating the second error code based on a length of the payload and the second key; removing the second key from the first data packet; re-appending the first error code to the payload; generating a second data packet by appending the second error code to the first error code; transmitting the second data packet over a communications channel to a second receiving microcontroller preprogrammed with the second key; recovering, by the second receiving microcontroller, the payload based on at least one of the first error code and the second error code; Extracting the payload from the second data packet; appending the second key to the payload; Generate a third error code; a first receiving microcontroller that is preprogrammed with a first key, and a second receiving microcontroller that is preprogrammed with a first key and a first error code; and a second receiving microcontroller that is preprogrammed with a first key and a first error code, and a third error code that is preprogrammed with a first key and a first error code, thereby recovering the payload.
Citation Information
Patent Citations
Transmission data packet structure with improved header authentication
JP2007528160A
Multi-mode forward error correction
JP2010088120A
Remote control device for vehicle
JP2014114562A
Method and device for calculating CRC for multiple code block in communication system
JP2016007042A
Remote control system
JP2017022433A
