Operation device
11093421 · 2021-08-17
Assignee
Inventors
Cpc classification
International classification
Abstract
An operation device includes a transmission interface and a control circuit. The transmission interface is coupled to the bus. The control circuit outputs a switching command to the first slave device at the first transmission rate and via the transmission interface, to control the first slave device to operate in an update mode, and outputs update data to the first slave device at the second transmission rate and via the transmission interface, so as to update a program code of the first slave device. The second transmission rate is higher than the first transmission rate.
Claims
1. An operation device, comprising: a transmission interface coupled to a bus; and a control circuit configured to output a switching command to a first slave device at a first transmission rate and via the transmission interface, to control the first slave device to operate in an update mode, and output update data to the first slave device at a second transmission rate and via the transmission interface, to update a program code of the first slave device, wherein the second transmission rate is higher than the first transmission rate, and wherein: the control circuit outputs the switching command to a second slave device at the first transmission rate and via the transmission interface, to control the second slave device to operate in the update mode, and outputs the update data to the second slave device at the second transmission rate and via the transmission interface, to update the program code of the second slave device, the control circuit receives, at the second transmission rate, a first checksum provided by the first slave device and a second checksum provided by the second slave device, and responsive to each of the first checksum and the second checksum matching a preset value, the control circuit outputs the switching command to the first slave device and the second slave device at the first transmission rate and via the transmission interface, so as to control the first slave device and the second slave device to operate in a normal mode.
2. The operation device according to claim 1, wherein responsive to the first slave device being updated completely, the control circuit outputs the switching command to the first slave device at the first transmission rate and via the transmission interface, to control the first slave device to operate in the normal mode, and in the normal mode, the first slave device is operated according to the program code.
3. The operation device according to claim 1, wherein the transmission interface is a general-purpose input-output (GPIO) interface, and comprises a first pin configured to transmit the switching command and the update data.
4. The operation device according to claim 1, wherein the transmission interface comprises: a general-purpose input-output (GPIO) interface comprising a first pin configured to transmit the switching command; and a serial transmission interface comprising a second pin configured to transmit the update data.
5. The operation device according to claim 4, wherein the serial transmission interface comprises a UART.
6. The operation device according to claim 4, wherein the serial transmission interface is an inter-integrated circuit (I2C) bus.
7. The operation device according to claim 1, wherein the bus is a digital addressable lighting interface (DALI) bus.
8. The operation device according to claim 1, further comprising: a modulator coupled between the transmission interface and the bus, and configured to convert a signal of the transmission interface, to generate an output signal to the bus.
9. An operation system, comprising: a first slave device coupled to a bus and comprising a first storage medium to store a first program code; a second slave device coupled to the bus and comprising a second storage medium to store a second program code; and an operation device comprising: a transmission interface coupled to the bus; and a control circuit configured to output a switching command to the first slave device at a first transmission rate and via the transmission interface, to control the first slave device to operate in a first update mode, and output update data to the first slave device at a second transmission rate and via the transmission interface, to update the first program code, wherein: the control circuit outputs the switching command to the second slave device at the first transmission rate and via the transmission interface, to control the second slave device to operate in a second update mode, and outputs the update data to the second slave device at the second transmission rate and via the transmission interface, to update the second program code, the control circuit receives, at the second transmission rate, a first checksum provided by the first slave device and a second checksum provided by the second slave device, responsive to each of the first checksum and the second checksum matching a preset value, the control circuit outputs the switching command to the first slave device and the second slave device at the first transmission rate and via the transmission interface, so as to control the first slave device and the second slave device to operate in a normal in the normal mode, the first slave device is operated according to the first program code, and the second slave device is operated according to the second program code.
10. The operation system according to claim 9, wherein the transmission interface is a general-purpose input-output (GPIO) interface comprising a first pin configured to receive the switching command and the update data.
11. The operation system according to claim 9, wherein the transmission interface comprises: a general-purpose input-output (GPIO) interface comprising a first pin configured to receive the switching command; and a serial transmission interface comprising a second pin configured to receive the update data.
12. The operation system according to claim 11, wherein the serial transmission interface comprises a universal asynchronous receiver/transmitter (UART).
13. The operation system according to claim 11, wherein the serial transmission interface is an inter-integrated circuit (I2C) bus.
14. The operation system according to claim 9, wherein the bus is a digital addressable lighting interface (DALI) bus.
15. The operation system according to claim 9, further comprising: a modulator coupled between the bus and the transmission interface, and configured to convert signals of the bus to provide the switching command and the update data to the transmission interface.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The structure, operating principle and effects of the present invention will be described in detail by way of various embodiments which are illustrated in the accompanying drawings.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
(11) The following embodiments of the present invention are herein described in detail with reference to the accompanying drawings. These drawings show specific examples of the embodiments of the present invention. These embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. It is to be acknowledged that these embodiments are exemplary implementations and are not to be construed as limiting the scope of the present invention in any way. Further modifications to the disclosed embodiments, as well as other embodiments, are also included within the scope of the appended claims. These embodiments are provided so that this disclosure is thorough and complete, and fully conveys the inventive concept to those skilled in the art. Regarding the drawings, the relative proportions and ratios of elements in the drawings can be exaggerated or diminished in size for the sake of clarity and convenience. Such arbitrary proportions are only illustrative and not limiting in any way. The same reference numbers are used in the drawings and description to refer to the same or like parts.
(12) It is to be acknowledged that, although the terms ‘first’, ‘second’, ‘third’, and so on, can be used herein to describe various elements, these elements should not be limited by these terms. These terms are used only for the purpose of distinguishing one component from another component. Thus, a first element discussed herein could be termed a second element without altering the description of the present disclosure. As used herein, the term “or” includes any and all combinations of one or more of the associated listed items.
(13) It will be acknowledged that when an element or layer is referred to as being “on,” “connected to” or “coupled to” another element or layer, it can be directly on, connected or coupled to the other element or layer, or intervening elements or layers can be present. In contrast, when an element is referred to as being “directly on,” “directly connected to” or “directly coupled to” another element or layer, there are no intervening elements or layers present.
(14) In addition, unless explicitly described to the contrary, the word “comprise”, “include” and “have”, and variations such as “comprises”, “comprising”, “includes”, “including”, “has” and “having” will be acknowledged to imply the inclusion of stated elements but not the exclusion of any other elements.
(15)
(16) The power supply device 110 can provide differential power to the bus 120. For example, the power supply device 110 can provide a voltage V1 to a transmission line B+ of the bus 120, and provides a voltage V2 to a transmission line B− of the bus 120; however, the values of the voltages V1 and V2 of the present invention are not limited to these examples, and in an embodiment, the voltage V1 can be higher than the voltage V2; for example, the voltage V1 can be about 16V, the voltage V2 can be about 0V.
(17) The operation devices OD.sub.1˜OD.sub.N are coupled to the bus 120. In this embodiment, the operation device OD.sub.1 is used as a master device configured to control the operation devices OD.sub.2-OD.sub.N. The operation devices OD.sub.2-OD.sub.N are used as slave devices. In an embodiment, all of the operation devices OD.sub.2-OD.sub.N are lighting devices. In this example, the operation device OD.sub.1 can control brightness of the operation devices OD.sub.2-OD.sub.N and update program codes of the operation devices OD.sub.2-OD.sub.N, respectively, via the bus 120.
(18) In other embodiment, the operation device OD.sub.1 is coupled to an electronic device 130. In this example, the user can give a command to the operation device OD.sub.1 through an application of the electronic device 130, and the operation device OD.sub.1 can control the operation devices OD.sub.2˜OD.sub.N according to the command given by the user. For example, the user can request, via the electronic device 130, the operation device OD.sub.1 to change the brightness of at least one of the operation devices OD.sub.2˜OD.sub.N, or request the operation device OD.sub.1 to capture states of the operation devices OD.sub.2˜OD.sub.N.
(19) In some embodiments, the user can request, via the electronic device 130, the operation device OD.sub.1 to update a program code of at least one of the operation devices OD.sub.2˜OD.sub.N. In this example, the operation device OD.sub.1 sends a switching command at a first transmission rate, to control the at least one specific operation device of the operation devices OD.sub.2˜OD.sub.N to enter an update mode, and the operation device OD.sub.1 then transmits update data at a second transmission rate. At this time, only the specific operation device, operating in the update mode, can receive the update data and then update the program code thereof according to the received update data. After the specific operation device is updated completely, the operation device OD.sub.1 can control, at a first transmission rate, the specific operation device to leave from the update mode and enter the normal mode. In the normal mode, the operation devices OD.sub.2˜OD.sub.N are operated according to the program codes thereof.
(20) Since the user can update the plurality of specific operation devices by using the operation device OD.sub.1, it is not necessary to connect the electronic device 130 to each of the plurality of specific operation devices one-to-one, so that the speed of the update operation can be improved. Furthermore, the user does not need to remove or open the case of the specific operation device to connect the electronic device 130 to the connection port reserved inside the specific operation device, thereby simplifying the update step.
(21) The type of the electronic device 130 of the present invention is not limited to the examples described herein. In an embodiment, the electronic device 130 can be a portable electronic device, such as a notebook or a smartphone. In some embodiments, the operation device OD.sub.1 can have a USB port, not shown in
(22) The bus 120 comprises transmission lines B+ and B−. In this embodiment, signals of the transmission line B+ and B− form a differential signal pair. In an embodiment, the bus 120 can be a digital addressable lighting interface (DALI) bus.
(23)
(24) The transmission interface 210 is coupled to the bus 120. In this embodiment, the transmission interface 210 comprises a pin TX1 which is configured to output a switching command CMD.sub.SW and update data DT.sub.UP to the transmission line B+ of the bus 120. In other embodiment, the transmission interface 210 comprises a pin RX1 which is configured to receive a message from the transmission line B− of the bus 120. The type of the transmission interface 210 of the present invention is not limited to the examples described herein. In an embodiment, the transmission interface 210 can be a general-purpose input-output (GPIO) interface. In some embodiments, when the pin TX1 transmits the switching command CMD.sub.SW and the update data DT.sub.UP, the pin RX1 can be maintained at a low voltage level.
(25) The control circuit 220 can generate the switching command CMD.sub.SW and the update data DT.sub.UP according to an update command CMD.sub.UP. The source of the update command CMD.sub.UP is not limited in the present invention, for example, in an embodiment, the update command CMD.sub.UP can be from an electronic device, such as the electronic device 130. In this example, the user outputs the update command CMD.sub.UP through the electronic device, to request the operation device OD.sub.1 to update at least one of the operation devices OD.sub.2˜OD.sub.N.
(26) In another embodiment, the update command CMD.sub.UP can be from a storage medium, such as a SD card. In this example, the operation device OD.sub.1 comprises an insertion slot 230. When the storage medium having the update command is inserted into the insertion slot 230, the control circuit 220 can read and execute the program code stored in the storage medium, so as to generate the switching command CMD.sub.SW and the update data DT.sub.UP.
(27) The switching command CMD.sub.SW is used to switch the operation modes of the operation devices OD.sub.2˜OD.sub.N. In an embodiment, the switching command CMD.sub.SW comprises short address information configured to change the operation mode of the specific operation device. In a condition that the operation devices OD.sub.2˜OD.sub.N are operated in the normal mode, when the switching command CMD.sub.SW is directed to the operation device OD.sub.2, the operation device OD.sub.2 leaves from the normal mode and enters the update mode, and the operation devices OD.sub.3˜OD.sub.N stay in the normal mode. In this example, when the switching command CMD.sub.SW is directed to the operation device OD.sub.2 again, the operation device OD.sub.2 leaves from the update mode and returns to the normal mode. On the contrary, when the switching command CMD.sub.SW is directed to the operation device OD.sub.3, the operation device OD.sub.3 leaves from the normal mode and enter the update mode; at this time, the operation device OD.sub.2 stays in the update mode, and the operation devices OD.sub.4˜OD.sub.N maintain in the normal mode.
(28) In another embodiment, the switching command CMD.sub.SW comprises group address information which is configured to change the operation modes of the plurality of operation devices. For example, in a condition that the operation devices OD.sub.2˜OD.sub.N are operated in the normal mode, and when the switching command CMD.sub.SW is directed to the operation devices OD.sub.2˜OD.sub.15, the operation devices OD.sub.2-OD.sub.15 leave from the normal mode and enter the update mode, the operation devices OD.sub.16˜OD.sub.N stay in the normal mode. In this example, when the operation devices OD.sub.2˜OD.sub.N receive the switching command CMD.sub.SW again and the switching command CMD.sub.SW assigns at least one of the operation devices OD.sub.2-OD.sub.15, the assigned operation device of the operation devices OD.sub.2-OD.sub.15 leaves from the update mode and enters the normal mode. Similarly, when the switching command CMD.sub.SW assigns at least one of the operation devices OD.sub.16 to OD.sub.N, the assigned operation device leaves from the normal mode and enters the update mode.
(29) In some embodiments, the switching command CMD.sub.SW comprises the broadcast information, configured to direct to all operation devices. For example, it is assumed that, the operation devices OD.sub.2˜OD.sub.N are operated in the normal mode. When the operation devices OD.sub.2˜OD.sub.N receive the switching command CMD.sub.SW, and when the switching command CMD.sub.SW comprises the broadcast information, the operation device OD.sub.2 to OD.sub.N leave from the normal mode, and enter the update mode.
(30) The update data DT.sub.UP can be used to update the program codes of the operation devices OD.sub.2˜OD.sub.N. When at least one specific operation device of the operation devices OD.sub.2˜OD.sub.N is operated in the update mode, the specific operation device can perform an update operation according to the update data DT.sub.UP. During the update operation, the original program code of the specific operation device can be replaced by the update data DT.sub.UP. For example, in a condition that the operation device OD.sub.2 is operated in the update mode according to the switching command CMD.sub.SW, and the operation devices OD.sub.3˜OD.sub.N are operated in the normal mode, only the program code of the operation device OD.sub.2 is replaced by the update data DT.sub.UP, and the program codes of the operation devices OD.sub.3˜OD.sub.N are not changed. In another embodiment, when the operation devices OD.sub.2-OD.sub.15 are operated in the update mode, and the operation devices OD.sub.16˜OD.sub.N are operated in the normal mode, the operation devices OD.sub.2˜OD.sub.15 perform the update operations, and the operation devices OD.sub.16˜OD.sub.N do not perform the update operation. In other embodiment, when all of the operation devices OD.sub.2˜OD.sub.N are operated in the update mode, the operation devices OD.sub.2˜OD.sub.N execute the update operation.
(31) In this embodiment, the control circuit 220 outputs, at the first transmission rate, the switching command CMD.sub.SW to the at least one specific operation device of the operation devices OD.sub.2˜OD.sub.N via the transmission interface 210, so as to control the specific operation device to operate in the update mode. The control circuit 220 can output, at the second transmission rate, the update data DT.sub.up via the transmission interface 210, to the specific operation device, so as to update the program code of the specific operation device. After the program code of the specific operation device is updated, the control circuit 220 outputs, at the first transmission rate again, the switching command CMD.sub.SW via the transmission interface 210, to control the specific operation device to leave from the update mode and enter the normal mode. In the normal mode, the specific operation device is operated according to the updated program code. The second transmission rate is higher than the first transmission rate. The values of the first transmission rate and the second transmission rate are not limited in the present invention. In an embodiment, the first transmission rate can be about 1200 bps, and the second transmission rate can be about 12000 bps; however, the present invention is not limited to above-mentioned examples.
(32) In other embodiment, when the control circuit 220 wants to update the program code of the operation devices OD.sub.2 and OD.sub.3, the control circuit 220 can update the program code of the operation device OD.sub.2 first, and then update the program code of the operation device OD.sub.3. For example, the control circuit 220 can output, at the first transmission rate, the switching command CMD.sub.SW to control the operation device OD.sub.2 to operate in the update mode. In this example, the operation device OD.sub.3 stays in the normal mode. Next, the control circuit 220 can output, at the second transmission rate, the update data DT.sub.UP. At this time, since the operation device OD.sub.2 is operated in the update mode, the operation device OD.sub.2 can receive the update data DT.sub.up and update the program code thereof according to the update data DT.sub.UP. After the update operation is completed, the operation device OD.sub.2 can send a completion reply. The control circuit 220 receives the completion reply at the second transmission rate via the pin RX, and then outputs, at the first transmission rate, the switching command CMD.sub.SW to control the operation device OD.sub.2 to return to the normal mode. Next, the control circuit 220 outputs again, at the first transmission rate, the switching command CMD.sub.SW to control the operation device OD.sub.3 to enter the update mode; at the same time, the operation device OD.sub.2 stays in the normal mode. The control circuit 220 can output, at the second transmission rate, the update data DT.sub.up; at this time, since the operation device OD.sub.3 is operated in the update mode, the operation device OD.sub.3 receives the update data DT.sub.UP, and updates the program code thereof according to the update data DT.sub.UP. After the update operation is completed, the operation device OD.sub.3 can send a completion reply. After receiving the completion reply at the second transmission rate and via the pin RX, the control circuit 220 can output, at the first transmission rate, the switching command CMD.sub.SW to control the operation device OD.sub.3 to return to the normal mode.
(33) In another embodiment, the control circuit 220 can send, at the first transmission rate, the switching command CMD.sub.SW carrying the group address information, to control the operation devices OD.sub.2 and OD.sub.3 to enter the update mode. Next, the control circuit 220 can output, at the second transmission rate, the update data DT.sub.UP; since the operation devices OD.sub.2 and OD.sub.3 are operated in the update mode, the operation devices OD.sub.2 and OD.sub.3 can perform the update operation according to the update data DT.sub.UP. After the update operations are completed, each of the operation devices OD.sub.2 and OD.sub.3 can generate a checksum. The control circuit 220 can receive, at the second transmission rate, the checksums of the operation devices OD.sub.2 and OD.sub.3, and determine whether each of the checksums of the operation devices OD.sub.2 and OD.sub.3 matches a preset value. When each of the checksums of the operation devices OD.sub.2 and OD.sub.3 matches the preset value, it indicates that the operation devices OD.sub.2 and OD.sub.3 complete the update operations already. Next, the control circuit 220 can output, at the first transmission rate, the switching command CMD.sub.SW, which carries the group address information, to control the operation devices OD.sub.2 and OD.sub.3 to return to the normal mode.
(34)
(35)
(36) The transmission interface 310 comprises pins TX1 and RX1. The pin TX1 is coupled to the transmission line B+ of the bus 120 and configured to transmit the switching command CMD.sub.SW to the transmission line B+. The pin RX1 is coupled to the transmission line B− of the bus 120 and configured to receive the message from the transmission line B−. In an embodiment, the transmission interface 310 can be a general-purpose input-output (GPIO) interface.
(37) The transmission interface 305 comprises pins TX2 and RX2. The pin TX2 is coupled to the transmission line B+ of the bus 120 and configured to transmit the update data DT.sub.UP to the transmission line B+. The pin RX2 is coupled to the transmission line B− of the bus 120 and configured to receive a message from the transmission line B−. In this embodiment, the transmission interface 305 is used to transmit the update data DT.sub.up at a high speed. In an embodiment, the transmission interface 305 can be a serial transmission interface, for example, an I2C bus. In other embodiment, the transmission interface 305 comprises a UART.
(38) The control circuit 320 can generate the switching command CMD.sub.SW and the update data DT.sub.up according to the update command CMD.sub.UP. Since the characteristic of the control circuit 320 is similar to that of the control circuit 220 of
(39)
(40) The modulator 330 is coupled between the transmission interfaces 305 and 310, and the bus 120, and configured to convert the signal, such as the switching command CMD.sub.SW, of the transmission interface 310, and the signal, such as the update data DT.sub.UP, of the transmission interface 305, so as to generate a waveform appropriate to be transmitted on the bus 120. Since the characteristic of the modulator 330 is similar to that of the modulator 240 of
(41) The operation device OD.sub.1 switches the operation modes of the external slave devices, such as the operation devices OD.sub.2˜OD.sub.N, through the switching command CMD.sub.SW, so as to control the specific operation device to enter the update mode, and then provides the update data DT.sub.up at a higher transmission rate, so that the specific operation device can be updated quickly and the update efficiency can be increased. Furthermore, the user can just use the operation device OD.sub.1 to update the operation devices OD.sub.2˜OD.sub.N, so that convenience of the update operation is improved.
(42) The circuit architectures of slave devices, such as operation devices OD.sub.2˜OD.sub.N, will be described with reference to
(43) The transmission interface 410 comprises the pins TX3 and RX3. The pin TX3 is coupled to the transmission line B− of the bus 120 and configured to provide a message (such as a completion reply RP.sub.F) to the transmission line B−. According to the message on the transmission line B−, the operation device OD.sub.1 can obtain the state of the operation device OD.sub.2, such as brightness, temperature or update process. The pin RX3 is coupled to the transmission line B+ of the bus 120 and configured to receive the switching command CMD.sub.SW and the update data DT.sub.UP. In an embodiment, the transmission interface 410 can be a GPIO interface.
(44) The operation mode of the control circuit 420 can be changed according to the switching command CMD.sub.SW, for example, the control circuit 420 can leave from the normal mode and enter the update mode, or can leave from the update mode and enter the normal mode. In the normal mode, the control circuit 420 receives the external command, including the switching command CMD.sub.SW, at the first transmission rate and via the transmission interface 410; in the update mode, the control circuit 420 receives the update data DT.sub.UP at the second transmission rate and via the transmission interface 410. The second transmission rate is higher than the first transmission rate.
(45) In an embodiment, the microcontroller 400A comprises a storage medium 430 configured to store the program code. In the normal mode, the control circuit 420 reads and executes the program code stored in the storage medium 430. In the update mode, the control circuit 420 updates the program code in the storage medium 430, according to the update data DT.sub.UP. When the control circuit 420 enters the normal mode, the control circuit 420 is operated according to the updated program code. Therefore, the operation device OD.sub.2 does not need a connection port to couple an external electronic device, such as the electronic device 130.
(46) The type of the storage medium 430 of the present invention is not limited to the examples described herein. In an embodiment, the storage medium 430 can be a programmable read-only memory (PROM). In this example, the control circuit 420 can directly program the program code of the storage medium 430, so that it does not need the operations of replacing the storage medium 430, detaching the storage medium 430, using a compiler to update the program code of the storage medium 430, and inserting the storage medium 430 back the operation device OD.sub.2. In some embodiments, the storage medium 430 can be disposed outside the microcontroller 400A.
(47) After the update operation is completed, the control circuit 420 generates and outputs a completion reply RP.sub.F to the transmission line B− at the second transmission rate. In other embodiment, the completion reply RP.sub.F can be a checksum. The external master device, such as the operation device OD.sub.1, can determine, according to the checksum, whether the operation device OD.sub.2 completes the update operation already. For example, when the checksum matches the preset value, it indicates that the operation device OD.sub.2 is updated completely already. The master device can output the switching command CMD.sub.SW at the first transmission rate, to control the control circuit 420 to enter the normal mode.
(48) In other embodiment, the operation device OD.sub.2 can comprise a lighting device 435. The lighting device 435 can have at least one lamp tube. In this example, the control circuit 420 executes the program code stored in the storage medium 430, to generate a control signal S.sub.C. The lighting device 435 can be operated according to the control signal S.sub.C.
(49) In some embodiments, the operation device OD.sub.2 comprises a sensor 445. In some embodiments, the control circuit 420 can request, according to a query command (not shown in figures) received by the transmission interface 410, the sensor 445 to detect and reply the state of the lighting device 435, such as brightness or temperature of the lamp tube. In this example, the control circuit 420 can output a detection result of the sensor 445 to the bus 120 via the pin TX3 of the transmission interface 410.
(50) In other implementations, the operation device OD.sub.2 can include the sensor 445 only, and does not include the lighting device 435. In this example, the control circuit 420 can request, according to the query command (not shown in figure) received by the transmission interface 410, the sensor 445 to detect the state of the ambient environment, for example, the brightness or temperature of the ambient environment of the operation device OD.sub.2, and output the detection result to the bus 120 via the pin TX3 of the transmission interface 410.
(51)
(52) In an embodiment, the modulator 440 can be integrated in the microcontroller 400B. In this embodiment, the modulator 440 is coupled between the bus 120 and the transmission interface 410, and can convert signal on the transmission line B+, to generate and output the switching command CMD.sub.SW and the update data DT.sub.UP to the pin RX3 of the transmission interface 410. For example, the modulator 440 can lower the voltage level of the transmission line B+. In another embodiment, the modulator 440 can convert the signal on the pin TX3, such as the completion reply RP.sub.F, to generate the signal appropriate to be transmitted on the bus 120. For example, the modulator 440 can rise the voltage level of the completion reply RP.sub.F.
(53)
(54) The transmission interface 510 comprises the pins TX3 and RX3. The pin TX3 is coupled to the transmission line B− of the bus 120 and configured to transmit message to the transmission line B−. The pin RX3 is coupled to the transmission line B+ of the bus 120 and configured to receive the switching command CMD.sub.SW. In this embodiment, the transmission interface 510 can transmit command or message at the first transmission rate. In other embodiment, the transmission interface 510 can be a general-purpose input-output (GPIO) interface.
(55) The transmission interface 505 comprises the pins TX4 and RX4. The pin TX4 is coupled to the transmission line B− of the bus 120 and configured to output the completion reply RP.sub.F to the transmission line B−. The pin RX4 is coupled to the transmission line B+ and configured to receive the update data DT.sub.UP. In this embodiment, the transmission interface 505 can transmit message between the bus 120 and the control circuit 520 at the second transmission rate. In an embodiment, the transmission interface 505 can be a serial transmission interface, such as an I2C bus. In other embodiment, the transmission interface 310 can comprise a UART.
(56) The control circuit 520 can receive the switching command CMD.sub.SW at the first transmission rate, and change the operation mode thereof according to the switching command CMD.sub.SW, for example, leave from the normal mode and enter the update mode; at this time, the switching command CMD.sub.SW also enters the pin RX4, but the control circuit 520 ignores the change of the voltage level of the pin RX4. In the update mode, the control circuit 520 receives the update data DT.sub.UP the second transmission rate, and updates the program code of the storage medium 530 according to the update data DT.sub.UP; at this time, the update data DT.sub.UP enters the pin RX3, but the control circuit 520 ignores the change of the voltage level of the pin RX3. After the update operation is completed, the control circuit 520 generates and outputs the completion reply RP.sub.F at the second transmission rate and via the pin TX4. Since the characteristic of the control circuit 520 is similar to that of the control circuit 420 of
(57)
(58) In this embodiment, the modulator 540 is independent of the microcontroller 500B, but the present invention is not limited to above-mentioned examples. In other embodiment, the modulator 540 can be integrated in the microcontroller 500B. The modulator 540 is coupled between the bus 120 and the transmission interfaces 505 and 510. In this embodiment, the modulator 540 converts signal on the transmission line B+ and configured to generate and output the switching command CMD.sub.SW to the pin RX3 of the transmission interface 510, and generate and output the update data DT.sub.UP to the pin RX4 of the transmission interface 505. In an embodiment, the modulator 540 can lower the voltage level of the transmission line B+. In other embodiment, the modulator 440 further converts signal on the pins TX3 and TX4, to generate the signal appropriate to be transmitted on the bus 120. For example, the modulator 440 can rise the voltage level on the pins TX3 and TX4.
(59) The operation device OD.sub.2 can operate according to the command on the bus 120, for example, can adjust brightness or report brightness thereof, and also can update the program code thereof according to the update data DT.sub.UP on the bus 120, so that the operation device OD.sub.2 does not need to include a connection port for receiving an update code from an electronic device, such as the electronic device 130. As a result, update efficiency can be significantly improved.
(60) The present invention disclosed herein has been described by means of specific embodiments. However, numerous modifications, variations and enhancements can be made thereto by those skilled in the art without departing from the spirit and scope of the disclosure set forth in the claims.