Activity for Lance Tollenaar

  • Lance Tollenaar Lance Tollenaar posted a comment on discussion General Discussion

    Hi F./Frank, Yes, it is a little bit silly that they have done the device config this way. Maybe an easier way would be to simulate MS/TP devices, if they want multiple Bacnet devices on one IP address. Even if everything is actually an IP device. Not sure if this device is BTL certified or not, but nevertheless it is within Yabe's best interest to support it, i.e. to support as many devices as possible To date, I have not yet come across a single Bacnet device that is 100% "the way it should be...

  • Lance Tollenaar Lance Tollenaar posted a comment on discussion General Discussion

    Hi Frank, See attached. There is way too much traffic on my network to provide unfiltered packets, and privacy issues with my information-sensitive client. However, the attached packets will demonstrate the issue if you can reproduce them on a local machine. My machine in this case is 192.168.10.252. The target device is 192.168.10.65, and as you can see has several "virtual" Bacnet devices on it, each reporting to be on a different network number. I used the filter string udp && bacnet && ((ip.dst==192.168.10.255...

  • Lance Tollenaar Lance Tollenaar posted a comment on discussion General Discussion

    Hi Team, Before I dive into any proper fixes, I'm hoping someone familiar with the actual Bacnet standard can comment. I am working with a 3rd party contractor on a site, trying to integrate with their Bacnet system. I laughed at them, when they told me that their particular collection of Bacnet devices "only worked on Cimetrics Bacnet Explorer". Which sounds silly! It appears they were somewhat correct. What they have is a Bacnet gateway, a Honeywell Notifier I believe, that uses a whole lot of...

  • Lance Tollenaar Lance Tollenaar posted a comment on discussion General Discussion

    As far as I can see this is already in the code in BacnetClient.cs. Maybe are you looking at an older version of the code? https://sourceforge.net/p/yetanotherbacnetexplorer/code/HEAD/tree/trunk/Yabe/BACnetClient.cs#l2771

  • Lance Tollenaar Lance Tollenaar posted a comment on discussion General Discussion

    Hi F. Chaxel, Please see attached some minor updates to the Global Commander plugin. Cheers Lance

  • Lance Tollenaar Lance Tollenaar posted a comment on discussion Help

    You need to right click on the graph and select "Undo All Zoom/Pan", that way the graph will automatically scale based on the data. Maybe that's why you can't see any data - it could be stuck all the way off to the right (I see you're in January somewhere on the X axis). If you manually zoom I believe it disables the automatic scaling feature e.g. if you need to zoom in and see fine details without the graph jumping away.

  • Lance Tollenaar Lance Tollenaar posted a comment on discussion General Discussion

    Hi, I need some more information in order to debug. Maybe a wireshark log, an exception stack trace of any crashes, etc. Do you know exactly which line the exception is thrown? What do you mean by negative count? How can you have a negative count? Surely there are only three scenarios? MAX_SEG0 = "I don't support segmentation" MAX_SEG16, MAX_SEG32, etc. = "I only have enough memory to process up to 16/32/etc. segments" MAX_SEG_65 = "I have heaps of memory, send as many segments as you want"

  • Lance Tollenaar Lance Tollenaar posted a comment on discussion General Discussion

    Hi F. Chaxel, I cannot possibly test all the different scenarios myself, but I could guess some of them and test others. There are about 38 instances of return len - 1; in BacnetBase.cs. Here are the 3 scenarios of each: The ASN1decode function has its own loop. The return len - 1; is correct as we detect an ending tag, return, then the outer function decodes the ending tag again. There is a _NONE option in an enum somewhere which is actually still a valid BACnet item. So actually the tag is valid,...

  • Lance Tollenaar Lance Tollenaar posted a comment on discussion General Discussion

    Hi F. Chaxel. I can across a funny scenario when talking to a BACnet device the other day. It seems that when some BACnet properties are provided by the controller, they can have a _NONE option. For example, decoding a BacnetPropertyIds.PROP_FAULT_PARAMETERS property, there is a BACnetFaultParameter struct with a type field, of datatype BACnetFaultType. BACnetFaultType has a BACnetFaultType.NONE option. It looks like Yabe's default behaviour for handling this is: public int ASN1decode(byte[] buffer,...

  • Lance Tollenaar Lance Tollenaar posted a comment on discussion Help

    Update for those interested, Got BACnet MS/TP working on an Arduino Uno using a Microchip Studio project with AVRDUDE setup as an External Tool, and the ATMega168 port in the ports folder. Without an RS485 line driver there is garbage on the data lines, as the code sends 4 octets of 0xFF (plus 4x start & 4x stop bits) with the RS485 TX Enable pin LOW in order to "busy wait" for exactly 40 bit times. There was also a bug that stopped the PROP_OBJECT_LIST from working correctly - the reference to Handler_Transmit_Buffer...

  • Lance Tollenaar Lance Tollenaar posted a comment on discussion Help

    Ah ha. From Microsoft's documentation: "You cannot run a doskey macro from a batch program" Not to worry, what I did here is make a copy of mingw32-make.exe and call it make.exe. Then I had to modify the files as follows - adding the x86_64-w64- prefix to the binaries: build.bat: @echo off echo Build with MinGW32 and MSYS: mingw.sourceforge.net set PATH=C:\msys64\mingw64\bin;%PATH% rem assumes rm, cp, size are already in path set CC=x86_64-w64-mingw32-gcc.exe set AR=x86_64-w64-mingw32-gcc-ar.exe...

  • Lance Tollenaar Lance Tollenaar posted a comment on discussion Help

    Hi Steve, Thanks for your reply, I appreciate you taking the time to answer my question. Unfortunately I could not get the Git bash shell to do anything different from CMD.exe or MinGW64 on my machine - still the same complaint about timezone being declared in multiple places. Then I faffed around with the PATH variable, and removed the mingw64\bin folder... now "make" is pointing to usr\bin\make.exe? Then I get the following gobbledegook: $ make win32 make BACNET_PORT=win32 -s -C apps all In file...

  • Lance Tollenaar Lance Tollenaar posted a comment on discussion Help

    Hi Steve and team, After cloning the master repo I cannot for the life of me get anything to compile. I remember a few months ago I managed to get the demo apps to compile into .exe files for windows, but after cleaning my machine and re-cloning the repo I can't even do that. I remember I mucked around editing the makefiles directly, I'm sure that's the wrong way to go about it. My ultimate goal is to get the Arduino Uno port working, then transition everything to a Microchip Studio project for AVR...

1