How to automate reading and writing values in yabe with bacnet4j Jar - bacnet

I am new to bacnet automation and to bacnet4j, We have a bacnet server that broadcast bacnet points and I could see that in yabe manually by adding the device. In this case, my laptop and the server are connected to the same network. How can i automate the same? I need to read and write the values. From where should i start? could anyone help

I found the initial learning curve to get started with BACnet4J somewhat steep, however I was able to get started with BAC0 far quicker (which is in Python). You may find that easier.

Related

Offline NodeJS Based Site

I am trying to create a digital vehicle gauge cluster. I am using a RasPi to gather speed, RPM, and engine temperature and am currently using NodeJS to pull sensor data from the GPIO pins.
My initial plan was to take advantage of my preexisting HTML/CSS skills to then display this data to the driver and update that local HTML site using getElementById() tags in my JS and write over the data values. However, when I launched my site I realized that Node wasn't being used since I hadn't actually asked Node to start interpreting anything.
Given that I already have this website GUI built and the JS done to write to it, is there a way for me to actually connect these two scripts? Is there a way for me to use Node to launch the website and initialize Node at the same time?
Hope this isn't a duplicate question or covered in documentation somewhere.
Thanks in advance for any tips.

#mrtk Accessing Hololens Spatial Map MRTK v2

I have been having trouble trying to understand how to use the Spatial Awareness user guide for the latest MRTK release to get access to the spatial mapping meshes to use in a multi-user app. I cannot find a way to serialize the meshes to be able to send them to a remote device as was previously possible in the older toolkit. I have tried to add the meshes to a list and used the old simplemeshserializer but that did not seem to work at all. Any help would be greatly appreciated in trying to understand the current capabilities in current MRTK and how the same functionality can be replicated.
I have been facing problems with mrtk v2 spatial awareness too. Have you tried using surface types? I couldn't make it work yet.
You mean that you want to transfer the mesh between multiple devices, but when you use the simplemeshserializer to serialize the mesh in MRTKv2 and transfer it, the remote device becomes unresponsive?
According to some previous cares of transferring mesh between multiple clients, we hope that you can follow the steps below to troubleshoot:
Is data received correctly when transferring data using WebRTC?
Is the data still reliable after deserialization? You can try to save it locally and verify it.
After receiving the data and deserializing it, how did you handle these deserialized meshes? Can you provide the small sample to reproduce the problem?

About project using Node.js with openCV

I am planning a project CCTV system using Node.js and openCV, WebGL.
Would you please take a look at my plan and find flaw or give me advice?
My plan is: Entire system consists of 3 types of host, CCTV-server-watchmen. Numbers of each host may be (more than 10)-1-3? CCTV take a video and send it to the server. The server identifies persons in the video, and analyzes who this person is and where he or she is(using OpenCV). Finally, watchmen can seize entire status of field he or she manages(map drawn by webGL helps it). I will use node.js as network method.
I have a few issues about my plan.
Is it efficient to use Node.js as video data transmitter?
Basic concept of Node.js is single-thread, so maybe large data like video does not fit to it. But, count of CCTV and watchmen is limited and fixed(It is system for closed intranet)
Is there any method can replace Node.js?
I will not replace openCV and WebGL. But Node.js could matters. At the beginning of planning, I was finding other means for networking between C/C++ program and web-browser. Honestly, I got failed at school-project last year. One of problems that I can't find solution was "How to send/receive data between C program installed at Raspberry Pi and web Browser". I chose Node.js as method this project, but also heard other means of Qt, DB, CGI. Is there a better way?
Thank you for reading it.

Libfreenect2 point cloud frame capture

I've been looking through the Libfreenect2 repo if there is the possibility to capture just 1 point cloud frame out of my Kinect V2, by using Ubuntu 16.04lt, but I cannot find anything relevant to do so.
How would that possible?
libfreenect and libfreenect2 are mostly just drivers for Kinect devices. Post-processing is best applied in a middleware layer such as pointclouds.org or AForge.Net; it depends on the goals of your application.
If you really want to get your hands dirty, check out this C++ point cloud example. It's written for the Kinect v1, but it might give you some ideas. If you have trouble getting the hardware to work, please also visit the repositories linked above for documentation and bug reports.

For an embedded client-server architecture, is node.js the best option?

We have an embedded box. The specs of the CPU is medium speed (600MHz) and RAM is between 512MB to 2GB depending on configuration. The system consists of data layer to process incoming data from hardware and needing to be displayed both remotely and on an HDMI output.
Seeing the remote aspect is as important as the local display, we have architected a client-server solution. For the server, it just needs to respond to requests for data. The data needs to come from the internals of another process (IPC interaction) and return it formatted for the client.
For the server we are thinking of using node.js. The data is spec'ed to be formatted into json messages, so using JavaScript and json is simple.
However, are there any better/other server options to consider?
The main requirement is the server can be extended to interact with the data process and be able to process and respond to requests.
We could write it ourselves, but feel that there must be usable tech to leverage already.
Thanks.
I am assuming that you need output as a webpage only.
It depends.
If your team knows java/servlet well, you can do using simple jetty/servlet/jsp combination.
But if you have team good with javascript/node.js, go with it. Although, I am not sure about stability requirements you have, because node.js is quite stable but it haven't reached 1.0 yet.

Resources