I need to read multiple sensor data from one single bradboard which is connected to a raspberry pi. We are getting one sensor's data properly, but when we are connecting multiple sensors, we are not sure how to read data from multiple sensors. I am using C SDK of KAA server. i have used the demo_client file to write in log record and dh11.c file to find temreture value. thanks in Advance.
You should modify the code to do separate readings of the sensors samples and upload them to Kaa server as a set of records (this would be the simplest to start with).
Then, you will most probably need to modify the log schema to be able differentiating the telemetry date between sensors.
Related
I have a device connected to my Bluegiga BLE112 dongle that sends temperature measurements every second. I am using BLE GUI to connect to and receive the data. I would like to store all the measurements in a csv file so I can import it into another program and analyze it. I have already enabled indications, so the data shows up and updates in the 'raw' column as shown:
but I cannot figure out how to store or export that data.
Unless BLE GUI has changed significantly (I haven't used it in about 1-2 years), you can't do anything like this.
You'd need to write your own app or laptop/desktop communication and parser/save.
HOWEVER! One option you could use that I used to do is try out my BLE Log parser:
http://www.sureshjoshi.com/development/summer-of-bluegiga-code/
http://www.sureshjoshi.com/development/blegui-log-parsing-and-filtering/
I wrote a little tool a couple years ago which would parse data coming from the log, and place it all in one place, so I could copy and use that elsewhere (I was using it for tracking advertising data on multiple devices).
NOTE: I haven't touched that code since that blog was written - no idea if it'll work.
I'm trying to conect my PX4Flow sensor to a raspberry pi. It seems that nearly everybody is using qgroundcontrol to access and control it. But as I'd like to integrate it into some bigger program, I'd like to control it with some self-written simple python code, if possible.
My aim is to:
access the camera (to measure the speed - later)
get gyrometer values
I don't need the ultra sonic sensor.
I found out that I can use MAVlink for the communication between the px4flow sensor and the raspberry pi. I cloned the git repository and followed the steps on https://github.com/mavlink/mavlink until the generation of header file (python -m mavgenerate). With that, I can generate a new python file. I don't know if this is correct, and I don't know what to do with that python file. No more file (header files) are copied or generated. How do I go on? How do I use the library? How do I even test the connection?
If I understand you correctly, you want to make a module to communicate with PX4Flow.
I have some experience in building a ground control station with ardupilot. I think the procedure is roughly the same:
Generate the proper mavlink library, what you have done by using mavgenerate. Read some guidance of mavlink communication procedure.
Read the source code in PX4Flow communication module https://github.com/PX4/Flow/blob/master/src/modules/flow/communication.c, which shows what kind of messages have been sent to client side (e.g. your communication module)
Start write the module code to communicate with PX4Flow. You may need to start with HEARTBEAT msg first to establish connections between your module and PX4Flow. Note that you can always receive HEARTBEAT messages from PX4Flow. You can start with decoding these ones.
Implement your other functionalities.
You can read sources code of QGourndControl during step 3 and step 4. Make sure to find the right module in its repo.
My communication module is built using JavaScript https://github.com/kvenux/nodegcs, if it helps.
Is it doable to define multiple BLE service for Arduino with CurieBLE? Seems all relevant examples are using one service with multiple characteristics.
blePeripheral.addAttribute(xService);
blePeripheral.addAttribute(xCharacteristic);
I know there are blePeripheral.addAttribute, but is it valid and workable to call them and add multiple services?
I have done it both ways. When I add characteristics without the service, GATT still keeps them. Download an analyzer for free and you'll see the service for the characteristic.
I want to ask about the Graphite carbon daemons.
https://graphite.readthedocs.org/en/latest/carbon-daemons.html
I would like to ask while running a carbon-rely.py, should i also run carbon-cache.py or the relay is okay?
Regards
Murtaza
Carbon relay is used when you set up a cluster of graphite instances. However, a carbon cache does not need a cluster;
Reg Carbon cache: As we all know that write operations are expensive; Graphite enables collected data to be collected in a cache where the graphite webapp can be used irrespective of a cluster to read and display the most recent data recorded into graphite ( irrespective of whether it was written into disk).
Hope this answers your question.
Carbon-relay only resends data to one or more destinations, so it needed only if you want fork data into several points. Example schemas can be:
save locally and resend to another node (cache or temporary-storage and relay)
resend all data into multiple remote daemons (multiple remote storages)
save all data in multiple local daemons (parallel storage & redundancy)
save different data sets in multiple local daemons (performance)
... other cases ...
So,
in case you need store data locally - you have to use carbon-cache.
in case you need fork data flow on the node,- you have to use carbon-relay before or instead carbon-cache
I developed a MFC application in C++ which I use to capture data from some USB sensors in order to save the information in a TXT file. For each data, I also save the timestamp with boost function.
I need to use my application also with another pc since I have to acquire data twice and I'd like to know what's the best method to synchronize the data between these two pcs.
I'm using the first pc to create a Wifi network and I'm able to connect the second pc to the first one and then I'm trying to use "net time" to set the NTP service without success.
Is there any tutorial or someone which can explain me how to synchronize date time between two Win7 pcs, please?
Perhaps this command? Run from the cmd prompt.
net time \\MasterPC /set /yes
where MasterPC is the network name of the computer you want to take the time from.