WB-MSx Consumer IR Manual/en: различия между версиями
(Новая страница: «==== Signal record in ROM with the remote control ==== '''Note:''' For more about work in command line mode, see the section #Control module from the command li…») |
(Новая страница: «To write the signal number <code>i</code> from the remote control to memory, write 1 to the flag register at <code>5300 + i</code>. Then point the remote control…») |
||
Строка 44: | Строка 44: | ||
'''Note:''' For more about work in command line mode, see the section [[#Control module from the command line|Control module from the command line]]. | '''Note:''' For more about work in command line mode, see the section [[#Control module from the command line|Control module from the command line]]. | ||
To write the signal number <code>i</code> from the remote control to memory, write 1 to the flag register at <code>5300 + i</code>. Then point the remote control at the IR receiver and press the button on the remote. After releasing the button, complete the signal recording by writing 0 to the flag register at <code>5300 + i</code>. | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
# | #Start recording signal number 1. The device connected to port /dev/ttyRS485-1 has Modbus 16 | ||
root@wirenboard:~# modbus_client --debug -m rtu -b9600 -s2 -pnone /dev/ttyRS485-1 -a16 -t5 -r5301 1 | root@wirenboard:~# modbus_client --debug -m rtu -b9600 -s2 -pnone /dev/ttyRS485-1 -a16 -t5 -r5301 1 | ||
# | #Direct the remote to the receiver window and press the button on the remote control | ||
root@wirenboard:~# modbus_client --debug -m rtu -b9600 -s2 -pnone /dev/ttyRS485-1 -a16 -t5 -r5301 0 | root@wirenboard:~# modbus_client --debug -m rtu -b9600 -s2 -pnone /dev/ttyRS485-1 -a16 -t5 -r5301 0 | ||
# | #Finish the entry signal number 1 | ||
</syntaxhighlight> | </syntaxhighlight> | ||