Re: [Bacnet-developers] MSTP on Raspberry Pi
Brought to you by:
skarg
|
From: Anthony L. <ant...@gm...> - 2020-03-16 03:27:01
|
Steve, I figured it out and it’s working now. Thank you very much for the initial push in the right direction. - Anthony On Sun, Mar 15, 2020 at 7:40 PM Anthony Lanza <ant...@gm...> wrote: > Thanks for the response Steve. > > I’m not very familiar with C, but, the process I followed was downloading > Bacnet protocol stack, unzipping, and in the folder running: > > make clean all > > Judging by your response, I take it I missed a step. > > Can you please provide some direction or point me in the right direction > for compiling the apps to use BACDL_MSTP? > > Thanks in advance for your help. > > - Anthony > > On Sun, Mar 15, 2020 at 7:00 PM Steve Karg <st...@ka...> wrote: > >> Hello Anthony, >> >> You didn't mention the method you used to compile, and the demo apps >> compile using a single datalink: BACnet/IP. >> >> You can either recompile the apps to use BACDL_MSTP or run the >> demo/router with an MS/TP datalink and a BACnet/IP datalink and use the >> BACnet/IP demo apps. >> >> Best Regards, >> >> Steve >> >> On Sun, Mar 15, 2020, 6:49 PM Anthony Lanza <ant...@gm...> >> wrote: >> >>> Hello Steve, developers, and fellow users of Bacnet Protocol Stack! >>> >>> I searched through pages of the mailing list forum before posting this, >>> so forgive me if it's already been answered at some point over the last 10 >>> years... >>> >>> I am trying to connect to a Siemens bacnet controller with the following >>> information: >>> Device Id: 1201 >>> Network: 1 >>> Mac Address: 2 >>> Max Master: 3 >>> Baud Rate: 38400 >>> >>> Although I know there may be issues with timing on Linux, Here's what I >>> have... >>> >>> On my raspberry pi, I have set the following environment variables: >>> export BACNET_MSTP_BAUD=38400 >>> export BACNET_IFACE=/dev/ttyUSB0 >>> export BACNET_MSTP_MAC=1 >>> >>> I am also utilizing ionice -c 1 -n 0 >>> >>> so, typical command line execution looks like: >>> >>> sudo BACNET_MSTP_BAUD=38400 BACNET_IFACE=/dev/ttyUSB0 BACNET_MSTP_MAC=1 >>> ionice -c 1 -n 0 ./bin/bacwi -1 >>> or >>> sudo BACNET_MSTP_BAUD=38400 BACNET_IFACE=/dev/ttyUSB0 BACNET_MSTP_MAC=1 >>> ionice -c 1 -n 0 ./bin/bacwi 1201 >>> >>> however the above commands return a blank device listing as if nothing >>> was found. >>> >>> On the other hand, if I do the command: >>> sudo ./bin/mstpcap 1201 >>> >>> I get the message: >>> RS485: Initializing /dev/ttyUSB0 at Baud Rate 34800=success! >>> mstpcap: Using /dev/ttyUSB0 for capture at 38400 bps >>> 3000 packets, 0 invalid frames >>> >>> When I Ctrl-C to stop the capture, Under the MSTP Frame Counts and MS/TP >>> Usage and Timing Maximums I see MAC address 2, Max Master 3, Tusage 54. >>> >>> So my question is, why can't I see the device show up when executing >>> bacwi, but can see it when I do mstpcap. Additionally, what can I do to be >>> able to see the device? >>> >>> - Anthony Lanza >>> Background experience - 9 years working with Bacnet to include -- >>> devices, tools like YABE and BQT, and python libraries like bacpypes and >>> BAC0 >>> >>> >>> >>> _______________________________________________ >>> BACnet-developers mailing list >>> BAC...@li... >>> https://lists.sourceforge.net/lists/listinfo/bacnet-developers >>> >> _______________________________________________ >> BACnet-developers mailing list >> BAC...@li... >> https://lists.sourceforge.net/lists/listinfo/bacnet-developers >> > |