User Activity

  • Posted a comment on discussion General Discussion on Yet Another BACnet Explorer

    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

  • Posted a comment on discussion General Discussion on Yet Another BACnet Explorer

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

  • Posted a comment on discussion Help on Yet Another BACnet Explorer

    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.

  • Posted a comment on discussion General Discussion on Yet Another BACnet Explorer

    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"

  • Posted a comment on discussion General Discussion on Yet Another BACnet Explorer

    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,...

  • Posted a comment on discussion General Discussion on Yet Another BACnet Explorer

    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,...

  • Posted a comment on discussion Help on BACnet Protocol Stack

    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...

  • Posted a comment on discussion Help on BACnet Protocol Stack

    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...

View All

Personal Data

Username:
afroboltski
Joined:
2022-02-14 21:11:51.006000

Projects

This is a list of open source software projects that Lance Tollenaar is associated with:

Personal Tools