Menu

Running the ref implementation on Raspberry PI

2022-09-17
2022-09-21
  • Frank Schubert

    Frank Schubert - 2022-09-17

    Did somebody get the ref implementation to run on a Raspberry? I tried installing it today and after launching ./Application everything was unpacked and installed successfully. But then a format error message was shown and nothing was started. I tried a restart with no success either.

    I was able to run everything successfully on Windows 10/64bit though (using the same download).

    Not really urgent, but still interested in getting it up and running on the Raspberry Linux.

    Thanks in advance, regards Frank

     
  • Dave Robin

    Dave Robin - 2022-09-20

    Oh yes, it runs on a Raspberry Pi!

    Since I had one sitting on my desk, it was always an informal design target. I say "informal" because it is not specifically a "supported" platform along with Linux, Windows, and Mac, but it was certainly a personal design goal to make sure that it ran and performed reasonably well on a $30 device :-)

    I ran it under Version 9 "stretch" on a Model B Plus 1.3. As a hub, it accepted 100 simultaneous connections, and I called that a success. I didn't do much more testing that that, though.

    As you noticed, the official launch script "Application" will run on a Pi, but it unpacks a Linux x86 runtime that won't work on Raspbian. So, you just have to manually install a java JRE and then use a modified launch script.

    This is my "Application.pi":

    #!/bin/bash
    cd "$(dirname "$0")"
    
    java -cp "out/production/BACnetSC:lib/slf4j-api-1.7.28.jar:lib/logback-core-1.2.3.jar:lib/logback-classic-1.2.3.jar" dev.bscs.common.Application "$@"
    

    Hope that works for you too. Feel free to contact me offline for follow-up if it doesn't.

    Dave

     

    Last edit: Dave Robin 2022-09-20
  • Frank Schubert

    Frank Schubert - 2022-09-21

    Hi Dave,

    thanks for the quick reply.

    I will try and let you know, but what you wrote makes sense. I did not have a closer look what was unpacked.

    Regards Frank

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.