Dit is een oude revisie van het document!
Tascam RC-10
https://old.ghielectronics.com/community/codeshare/entry/1062
by iamin Nov. 25, 2015 | Snippet | Licensed as Apache 2.0 | 1577 views
You can use this code to emulate Tascam RC-10 wired remote control with a NETMF device. It can be useful if you need to control such Tascam portable audio recording devices as DR-40, DR-100MKII, DR-60DMKII, DR-70D and DR-701D.
The hardest part was to figure out the communication protocol it is using. As far as I know, it is not publicly documented.
- It turns out it is an async serial (9600, 8/E/1).
- Data is sent over 2.5mm TRS connector, where sleeve is GND, ring is 3.3V and tip is signal (internal 10K pull-up is installed, at least in my DR-100MKII).
- If a button is released quickly there will be two bytes sent with a 150 ms sleep period between them (see Short.png). I am attaching a summary of bytes for each button. However, if you keep a button depressed for a longer period of time a repeat byte will be sent multiple times in between those two bytes (see Long.png).
- The data sequence will look like this:
- 1st byte, 99.5 ms sleep time,
- repeat byte, 99.5 ms sleep time,
- repeat byte, 99.5 ms sleep time,
- repeat byte …
- 10.5 ms sleep time, 2nd byte.
- Only 1st and 2nd bytes need to be sent in order to emulate a button press, i. e. you do not need to send repeat byte(s), but you can if you want to.
You can use either SignalGenerator or SerialPort class to send data, either one has its own advantages and disadvantages.
Voorbeeldcode
' Emulate Play button using SignalGenerator Thread.Sleep(3000) Dim sg As New SignalGenerator(DirectCast(64, Cpu.Pin), True) sg.SetBlocking(True, New UInteger() {104, 104, 104, 104 * 2, 104, 104 * 3, 104 * 2 + 150 * 1000, 104, 104, 104 * 2, 104, 104 * 5})
' Emulate Play button using SerialPort Dim uart As New SerialPort("COM1", 9600) uart.Parity = Parity.Even uart.Open() Thread.Sleep(3000) uart.WriteByte(137) ' First byte Thread.Sleep(150) uart.WriteByte(9) ' Second byte
github.com/abbrev/tascam-rc-10-remote
TASCAM RC-10 remote control
https://github.com/abbrev/tascam-rc-10-remote
TASCAM RC-10 remote control
This is a replacement for a TASCAM RC-10 remote control running on Arduino.
Protocol
The RC-10 communicates over a 2.5mm stereo headphone plug. The tip is the signal from the remote control to the device under control (such as an audio recorder), the ring is 3.3V DC from the device, and the sleeve is ground.
The protocol is standard TTL-level UART (mark is 3.3V, space is 0V) running at 9600 baud, 8 data bits, even parity, and 1 stop bit.
The RC-10 sends a start byte when a button is pressed, a repeat byte every 100ms afterward while the button is held down, and an end byte when the button is released. The lower 5 bits of the byte is the command, while the upper 2 bits indicate whether it's a start, repeat, or end byte. A start byte has bit 7 set and bit 6 cleared, a repeat byte has both bits 7 and 6 set, and an end byte has both bits 7 and 6 cleared.
Button command values
Button | Value |
---|---|
Stop | 8 |
Play | 9 |
Record | 11 |
Forward | 14 |
Back | 15 |
Mark | 24 |
F1 | 28 |
F2 | 29 |
F3 | 30 |
F4 | 31 |
Note: F3 is marked (+) and F4 is marked (-).
Features
This replacement software also supports a “turbo” mode which increases the repeat rate of buttons to 2x the normal rate. This is useful for impatient people. :) Turbo mode can be toggled with a press of the turbo button.
License
Copyright 2016 Christopher Williams. All Rights Reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY CHRISTOPHER WILLIAMS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Acknowledgments
Special thanks to user iamin on www.ghielectronics.com for posting information about the RC-10 protocol. (See https://www.ghielectronics.com/community/codeshare/entry/1062)