I've been trying to integrate Serial Gateway directly into the Raspberry Pi following these instructions (https://github.com/mysensors/Raspberry) to no avail.
I run sudo ./PiSerialGateway and it creates /dev/ttyMySensorsGateway, which is a symlink to /dev/pts/1 (owner = root, group = tty). I symlink then /dev/ttyMySensorsGateway to /dev/ttyUSB020, which is recognised by domoticz under MySensors Gateway USB hardware.
In the controller log I see this error:
2015-10-22 21:57:34.881 MySensors: Using serial port: /dev/ttyUSB020
2015-10-22 21:57:34.881 Error: MySensors: Error opening serial port!
This is the output of running PiSerialGateway:
Starting PiGatewaySerial...
Protocol version - 1.4
Created PTY '/dev/pts/1'
Gateway tty: /dev/ttyMySensorsGateway
================ SPI Configuration ================
CSN Pin = CE0 (PI Hardware Driven)
CE Pin = Custom GPIO25
Clock Speed = 8 Mhz
================ NRF Configuration ================
STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1 = 0xe7e7e7e7e7 0xc2c2c2c2c2
RX_ADDR_P2-5 = 0xff 0xc4 0xc5 0xc6
TX_ADDR = 0xe7e7e7e7e7
RX_PW_P0-6 = 0x00 0x00 0x20 0x00 0x00 0x00
EN_AA = 0x3b
EN_RXADDR = 0x07
RF_CH = 0x4c
RF_SETUP = 0x23
CONFIG = 0x0e
DYNPD/FEATURE = 0x3f 0x06
Data Rate = 250KBPS
Model = nRF24L01+
CRC Length = 16 bits
PA Power = PA_LOW
Any clues?