How to code dokuwiki that will show live data acquisition (sending and receiving of data)of telosb motes? - wireless

I'm working on a project on using dokuwiki to show live data acquisition reading of telosb motes. im using windows 7, so the motes are configured on cygwin. I dont know how to connect the wiki and the telosb.

From what I understand is you are trying to build an IoT live data feed application. From the top of my head it's doable application, have one mote connected to your system and read the packets over the air kind of sniffing (http://cpham.perso.univ-pau.fr/WSN-MODEL/tool-html/relay.html) from any number of other motes. Then write a python script to query (http://www.tinyos.net/tinyos-2.x/support/sdk/python/tos.py) from the mote and transfer to a web socket and display on your dokuWIki page.

Related

Sending Bluetooth Advertising Packets and Getting Some Answers

I want to build something with Raspberry Pi Zero and write in Go,
I never tried bluetooth before and my goal is;
Sending a dynamic packet which it will change every second, an iOS app will expand this message and with a button, client will send a message back without a connection.
Is Bluetooth Advertising what I am looking for and do you know any GoLang library for it? Where should I start?
There are quite a lot of parts to your question. If you want to be connection-less then the BLE roles are Broadcaster (beacon) and Observer (scanner). There are a number of "standard" beacon formats out there. They are summarized nicely on this cheat sheet
Of course you can create your own format as these are using either the Service Data or Manufacturing Data in a BLE advertisement.
On Linux (Raspberry Pi) the official Bluetooth stack is BlueZ which documents the API's available at: https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc
If you want to be connection-less then each device is going to have to change it's role regularly. This requires a bit of careful thought on how long each is listening and broadcasting as you don't want them always talking at the same time and listening at the same time.
You might find the following article of interest to get you started with BLE and Go Lang:
https://towardsdatascience.com/spelunking-bluetooth-le-with-go-c2cff65a7aca

SOME/IP and VSOMEIP - Communication between 2 devices (TCP/UDP) Not working

I am working on Franca IDL and trying to implement the SOME/IP two device communication. I am referring the below links:
https://at.projects.genivi.org/wiki/pages/viewpage.action?pageId=5472320
https://github.com/GENIVI/vsomeip/wiki/vsomeip-in-10-minutes#request
Current Setup:
Ubuntu 18.04 (two machines - Server & Client)
Two Machines connected over ethernet
But am actually confused between SOME/IP and VSOME/IP. Anyhow I went with the link [1] I could able to achieve communication between the processes running on the single local machine. I failed in two 2 device communication.
Later I followed the same in in link [2] but even here I was able to achieve communication between the processes running on the single local machine. I failed in two 2 device communication but server was running in one device and client was running on another but no communication achieved.
I came across this VSOMEIP - Communication between 2 devices (TCP/UDP) Not working post here but couldn't get how to proceed further.
My actual aim is to achieve two device communication using Franca IDL and SOME/IP i.e link [1]. But I am not finding any single source so that I can at least look into it.
Any suggestions will help me a lot. Thanks in advance.
After working for few hours now the quick update is, As suggested in the VSOMEIP - Communication between 2 devices (TCP/UDP) Not working I used the shell script now the client and server are detecting each other over ethernet. But the function call is not happening. Client is not sending the request to the server. To be more clear in the given example (https://at.projects.genivi.org/wiki/pages/viewpage.action?pageId=5472320) the on_availability is working but on_message is not working. We are struggling a lot. Any suggestion will help us a lot.

Hyperterminal and alerts

I have a device that sends data to Hyperterminal. What I want is that when a certain piece of text appears is to get an alert, either audible or visual. Is there any software/scripts etc available that might of that functionality?
You'd probably be as well using vb .net or similar and listen to the device using the comms port directly. You can then trigger an event based on the returned data.
There's some useful info here:
How to access serial and parallel ports by using Visual Basic .NET

How to get started with SoftHSM

I am currently trying to get a SoftHSM going (on a Windows platform). The goal is establish a communication channel between a client and the HSM server so that some data can be encrypted on the server side and be sent back to the calling client.
I download one from this site: https://www.opendnssec.org/download/
Furthermore, I followed the documentation as stated on this page: https://wiki.opendnssec.org/display/SoftHSMDOCS/SoftHSM+Documentation+Home - but besides from creating a couple of slots, I haven't managed to get anything right.
I ran the following command to create the slot(s):
softhsm --init-token --slot 0 --label "My token 1"
I am not sure how to go from here, I cannot find any useful information / tutorials about the topic. I guess that I should start small and try and create a server application that communicates to the SoftHSM ... I apologize for all the n00b questions!!
If the installation was successful
in /usr/local/bin/softshm there should be the file libsofthsm.so.
This file contains the implementation of crytoki api -
and you can use it like- so/dll that comes with hardware of pkcs#11

Send Apple Event from Windows?

My son has a MacOS 9 box to which he is sending remote AppleEvents from his Leopard-based MacBook. Is there any way, programmatically, that I can send remote AppleEvents via TCP/IP from my Windows 7 Toshiba?
If it helps, apple events are sent on port 3031 via TCP/UDP.
From the high level, there are four pieces to apple events:
The data aggregation API (data requests are put into an opaque in memory structure). This API as it stands was wordy and painful to use. Thank goodness you have access to languages that have better data aggregation tools
Conversion/serialization - the opaque data structure is turned into something that can be serialized and transported to another process and for same machine events, this may be a null serialization
Transport the data is transported from one process to another. Single machine is probably just enqueuing a copy of the data. Remote machine is transport over a network protocol, which could be TCP/IP (but it works with AppleTalk as well) and may require authentication.
Deserialization/Conversion
You will most likely need to do steps 2, 3, and 4. If you don't care about getting any information back, you can skip 4, since one of the flags in a sent event is "no reply".
There are a relatively small number of types in the AE data model. I would write code on your OS X machine to send each and every type and reverse engineer the packets when they're sent. To speed up the process you might want to use appscript, on the OS X machine which will let you send events from Ruby, Objective C, or Python.
Sniff the packets between the MacBook and the MacOS 9 box using something like tcpdump or Wireshark. This will tell you what an AppleEvent looks like on the wire.
Then replicate those packets using your programming environment of choice on Windows.
I suggest wrapping up the code that you write into a library that you can reuse in other applications.
Good luck - this might be quite tricky!!
if you're talking about growl notification, there are libraries to use that. for example, here is the growl library for ruby

Resources