I have a working RS485 shield mounted on my Raspberry Pi device. And I use it successfully for modbus rtu communication. So I am pretty sure that my raspberry device and RS485 interface is ok. I tried to use misty for bacnet mstp communication. But I was not able to start bacnet client. I followed all procedures to set it up. When I try to run code with ini file , I get :
Initialized the socket mac_address = 25 max master = 127 baud rate = 76800 max info frames = 1 /: Is a directory RS485: Initializing /
and it stops here. I constantly get the same error "/: Is a directory". I used usb-rs485 converter and also socat virtual serial port. Always gives the same output. it is obvious that /dev/ttySC0 is not directory. My .ini file is :
[BACpypes] objectName: BACClient ; MSTP Local address address: 25 ; The serial port device interface: /dev/ttySC0 ; other mstp config parameters max_masters, baudrate, maxinfo max_masters: 127 baudrate: 76800 maxinfo: 1 objectIdentifier: 599 maxApduLengthAccepted: 1024 segmentationSupported: segmentedBoth vendorIdentifier: 15 foreignPort: 0 foreignBBMD: 188.8.131.52 foreignTTL: 30
So I need a help here.