Skip to content

No response from Bacnet mstp device #19

@codev123

Description

@codev123

Hi, thankyou for your amazing library.
I have installed Misty firmware on raspberry pi and connected on its serial usb port using usb to modbus converter at /dev/ttyUSB0. i am able to execute program using

sudo bc --ini ./bc.ini

but i am not able to get any response from my connected mstp device, while i am able to communicate to that device using YABE. i get no response on whois, iam or read commands. here is my bc.ini file

[BACpypes]
objectName: BACClient
address: 25
interface:/dev/ttyUSB0
max_masters: 127
baudrate: 76800
maxinfo:1
objectIdentifier: 599
maxApduLengthAccepted: 1024
segmentationSupported: segmentedBoth
vendorIdentifier: 15
foreignPort: 0
foreignBBMD: 128.253.109.254
foreignTTL: 30
; enable this to see the mstp debug logs
mstpdbgfile:/home/pi/abcd.log

the response on putty when i execute above command

pi@raspberrypi:~ $ sudo bc --ini ./bc.ini
Logging debug messages in '/home/pi/abcd.log'
Initialized the socket
mac_address = 25
max master = 127
baud rate = 76800
max info frames = 1
RS485: Initializing /dev/ttyUSB0=success!
MS/TP MAC: 19
MS/TP Max_Master: 7F
MS/TP Max_Info_Frames: 1
mstp_path=/var/tmp/ma_bjudrva3/mstpttyUSB0
> whois
>

what do i do wrong? please help me.

abcd.log file

MSTP Rx: State=IDLE Data=00 hCRC=00 Index=0 EC=0 DateLen=0 Silence=6
MSTP: TS=19[1A] NS=19[1A] PS=19[1A] EC=0 TC=50 ST=7 IDLE
MSTP Rx: State=IDLE Data=00 hCRC=00 Index=0 EC=0 DateLen=0 Silence=12
MSTP Rx: State=IDLE Data=00 hCRC=00 Index=0 EC=0 DateLen=0 Silence=17
MSTP Rx: State=IDLE Data=00 hCRC=00 Index=0 EC=0 DateLen=0 Silence=20
MSTP Rx: State=IDLE Data=EB hCRC=00 Index=0 EC=0 DateLen=0 Silence=20
MSTP Rx: EB
MSTP Rx: State=IDLE Data=EB hCRC=00 Index=0 EC=1 DateLen=0 Silence=6
MSTP Rx: State=IDLE Data=EB hCRC=00 Index=0 EC=1 DateLen=0 Silence=11
MSTP Rx: State=IDLE Data=EB hCRC=00 Index=0 EC=1 DateLen=0 Silence=16
MSTP Rx: State=IDLE Data=EB hCRC=00 Index=0 EC=1 DateLen=0 Silence=21
MSTP Rx: State=IDLE Data=EB hCRC=00 Index=0 EC=1 DateLen=0 Silence=22
MSTP Rx: State=IDLE Data=C9 hCRC=00 Index=0 EC=1 DateLen=0 Silence=22
MSTP Rx: C9
MSTP Rx: State=IDLE Data=C9 hCRC=00 Index=0 EC=2 DateLen=0 Silence=6
MSTP Rx: State=IDLE Data=C9 hCRC=00 Index=0 EC=2 DateLen=0 Silence=11
MSTP Rx: State=IDLE Data=C9 hCRC=00 Index=0 EC=2 DateLen=0 Silence=16
MSTP Rx: State=IDLE Data=C9 hCRC=00 Index=0 EC=2 DateLen=0 Silence=21
MSTP Rx: State=IDLE Data=C9 hCRC=00 Index=0 EC=2 DateLen=0 Silence=22
MSTP Rx: State=IDLE Data=CB hCRC=00 Index=0 EC=2 DateLen=0 Silence=22
MSTP Rx: CB
MSTP Rx: State=IDLE Data=CB hCRC=00 Index=0 EC=3 DateLen=0 Silence=6
MSTP Rx: State=IDLE Data=CB hCRC=00 Index=0 EC=3 DateLen=0 Silence=11
MSTP Rx: State=IDLE Data=CB hCRC=00 Index=0 EC=3 DateLen=0 Silence=16
MSTP Rx: State=IDLE Data=CB hCRC=00 Index=0 EC=3 DateLen=0 Silence=21
MSTP Rx: State=IDLE Data=CB hCRC=00 Index=0 EC=3 DateLen=0 Silence=22
MSTP Rx: State=IDLE Data=E1 hCRC=00 Index=0 EC=3 DateLen=0 Silence=22
MSTP Rx: E1
MSTP Rx: State=IDLE Data=E1 hCRC=00 Index=0 EC=4 DateLen=0 Silence=6
MSTP Rx: State=IDLE Data=E1 hCRC=00 Index=0 EC=4 DateLen=0 Silence=11
MSTP Rx: State=IDLE Data=E1 hCRC=00 Index=0 EC=4 DateLen=0 Silence=16
MSTP Rx: State=IDLE Data=E1 hCRC=00 Index=0 EC=4 DateLen=0 Silence=21
MSTP Rx: State=IDLE Data=E1 hCRC=00 Index=0 EC=4 DateLen=0 Silence=22
MSTP Rx: State=IDLE Data=EB hCRC=00 Index=0 EC=4 DateLen=0 Silence=22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions