r/ArduinoHelp • u/Intrepid-Addendum-80 • Apr 16 '26
Should this RS422-shield be able to communicate with the help of an Arduino?
Hello! So a few days ago I have tried to simulate a Sony 9-pin communication by running code from the github: GitHub - hideakitai/Sony9PinRemote: RS422 Sony 9-Pin Protocol Remote Controller of VTRs for Arduino · GitHub in Arduino IDE. I had my PC connected to an Arduino, which was then connected to a RS422-shield, which was then connected to a male 9-pin cable through the terminal block, which then was connected further into a " slave device ". However, when I ran this code:
// #define SONY9PINREMOTE_DEBUGLOG_ENABLE
#include <Sony9PinRemote.h>
Sony9PinRemote::Controller deck;
void setup() {
Serial.begin(115200);
Serial1.begin(Sony9PinSerial::BAUDRATE, Sony9PinSerial::CONFIG);
delay(2000);
Serial.println("Running like that");
deck.attach(Serial1);
// get device status
deck.status_sense();
if (deck.parse_until(1000)) { // wait until response comes (timeout = 1000ms)
if (!deck.is_media_exist())
Serial.println("ERROR: there is no media!");
if (!deck.is_remote_enabled())
Serial.println("ERROR: remote control is disabled!");
if (!deck.is_disk_available())
Serial.println("ERROR: removable media is not available!");
if (!deck.is_stopping()) {
deck.stop();
deck.parse_until(1000);
}
deck.device_type_request();
if (deck.parse_until(1000)) {
Serial.print("device type = ");
Serial.println(deck.device_type(), HEX);
if (deck.device_type() == Sony9PinDevice::BLACKMAGIC_HYPERDECK_STUDIO_MINI_NTSC) {
Serial.println("this device is BlackMagic HyperDeck Studio Mini NTSC");
}
} else
Serial.println("ERROR: device type request failed!!");
} else {
Serial.println("ERROR: device status request failed!!");
}
}
void loop() {
// if previous command has completed (response has come)
if (deck.ready()) {
static bool b = false;
if (b)
deck.play();
else
deck.stop();
b = !b;
delay(2000);
}
if (deck.parse()) { // if some reply has come
if (!deck.ack()) { // if the reply is not ack
deck.print_nak(); // print nak
}
}
}I received the error message:
ERROR: device status request failed!!So it seems like my Arduino tried to send a message but was unable to receive any response from the slave device. I believe it's because the cables protruding from the RS422-shield's terminal block were connected to the wrong pins on the male 9-pin cable, so I reconnected them. I connected the cable protruding from the letter " B " on the terminal block to pin 2, the letter " A " cable to pin 7, " Z " cable to pin 8 and the " Y " cable to pin 3. The ground cable I connected to pin 4. I have tried attaching pictures on how my connection looks like, but I wasn't able to get a clear picture, so apologies if my pictures look blurry.
So now I want to ensure I am all set and I can run a successful simulation when connecting the Arduino. Do you think this should work?
...because I have heard it might be possible that the RS422-shield requires some extra " jumpers " to make it work, which I am not sure about. But do you think I am good to go, or do you see some problem here that I am not seeing?
I appreciate all help!



View all comments
Show parent comment
1
u/TheKnackThatQuacks Apr 18 '26
Now we’re getting somewhere.
Details matter. Thank you for providing those additional details. (Any chance you can provide the make and model number of your Bosch VTR device?)
Unfortunately, without having another device that speaks the “Sony 9-Pin Protocol” for you to test with, there’s not a whole lot of testing you’re going to be able to do to guarantee it will work the first time you hook it up to the Bosch device. (Until you have a device to test, you are always going to get the “ERROR: device status request failed!!” message returned, since the running program won’t be detecting a response.)
However, we can take a look at a few things, and probably get close.
The “Sony 9-Pin Protocol” Wikipedia article has a nice pinout map that will be helpful for when you connect your wires to your DE-9 connector.
You need to find the manual for your Bosch device and find out the pinout for its RS-422 “Sony 9-pin connector” port, as not every manufacturer implemented the protocol exactly the same.
The website of the company that manufactures your RS-422 shield has a nice datasheet available which details some things you need to know.
One of which being: selecting which UART pins on the Arduino connect to which pair of pins.
Your pictures show the jumpers missing from the UART pin select header. Without those jumpers, the signal is never actually making it out onto the wire for it to even get to your other device.
You will need to figure out which UART pins the code is trying to use to talk to the VTR device (TX and RX), and then set those jumpers on the RS-422 shield.
Several of the source links on the Wikipedia article state that the protocol speed is typically 38.4kB/sec, so that will need to be fixed in your code.
The shield datasheet describes some suggested DIP switch settings for RS-422 mode:
*: There’s a message in the manual: “Set pin 6 or 7 to high level to transmit protocols”, but I don’t know if this applies to RS-422, or only RS-485. The manual formatting is a little ambiguous.
I don’t have a computer available at the moment, so I can’t do any code troubleshooting right now, but the above should get you closer than you were before.