I am trying to program a robot that has motordrivers on certain serial ports (i.e. ttyS9)

Through cutecom (as hex input), I can send the following input, which gives me the result I expect:

```
5aaa0700fffff000

```

Now I am trying to achieve the same result with a C program, that does the following:

```
int port9 = open("/dev/ttyS9", O_RDWR | O_NONBLOCK);

char buff[17] = "5aaa0700fffff000";

write(port9, buff, 16);

```

I've also tried to initialize `buff` with the hex values seperately:

```
buff[0] = 0x5;
buff[1] = 0xa;

```

etc etc.

Both do not work. Is the problem in my code, or in the driver?

I compile using gcc and then run it with sudo. The open function also returns values that are proper (no errors), as well as the write.