Google Local Home SDK UDP commands to BrighSign player - google-cloud-platform

For a research, I want to try controlling a BrightSign player with a Google Nest Hub.
The BrightSign player support UDP commands with ASCII/HEX on default the receiving port 5000.
Because the player is not a smart device, can I use the Google Local Home SDK, to send UDP commands with the HEX only to non-smart devices?
If so, does someone have an example of TypeScript of JavaScript how to set this up?
I'm new to both languages and just want to implement this simple feature.
Thanks.
I already tried this tutorial: https://developers.home.google.com/local-home/overview.
But I did not got it to work with my device.

Related

send data from raspberry to firebase cloud

Hey i'm new in Firebase and I have a question.
First i will talk about the project and what I want to do. We have a organery with many sensors, those sensors are connected to arduino's. We have some arduino's who are connected to a raspberry by serial communication using an I2C connection. Then we want to send that data to the firebase cloud. But honestly i have no clue how i have to do that. That data from the cloud we use to make an app to see the "climate" of our arganery.
Our program in arduino is made in C++, and the raspberry code is also in C++. Any ideas to get that data into the firebase cloud? Thank You for reading!
Greeting Iben
I have sent data to Firebase by first publishing data to an MQTT (Mosquitto), and then using Node-RED with a Firebase node to store data in Firebase.
Currently I am only storing the latest value in Firebase, but sure you can also store history. Node-RED is a very powerful and easy to use tool for IoT.
You can run bot Mosquitto and Node-RED on your Raspberry Pi.

How i can make kaaproject as gateway for arduino

Hi guys I am using Kaaserver for our IoT project and now i faced with one problem
I would like to ask you how i can send data with arduino to Kaaserver I read some where is possible to configure kaa as gateway and i wanna to know how ?
You can use other board as gateway for Arduino, so you'll need some device supported by Kaa (ESP8266, BeagleBone, Raspberry PI, etc.).
You can generate Kaa SDK for your device and write an application which will collect data from Arduino by serial port and send it to Kaa server using SDK.

How to send SMS through 'Dongle' using C++

I have a USB dongle connected to my laptop which is used to get the internet connection. No need to say it has a sim card and it is possible to send/receive SMS as well. I want to know how can I get the SMS and send SMS using my own C++ windows program, through this SIM card. Is there a way to access the SIM card and do these? Any libraries? I haven't done any USB programming anyway.
Edit
I just found it is possible with something called "AT Commands" - How to Auto send SMS via Broadband USB dongle?
But the link in the answer is dead. Even though it is AT Command, which lib should I install in order to use it?
At (Attention) commands can be used to interact with the USB dongle. Each manufacturer has their own At-commands, so you will have to find out one which suits your model (mine was Huawei e173-u). Some of the common ones can be found in the Hayes command set :
Hayes Command Set (Wikipedia)
Introduction to At commands
You will need to find out which COM port your dongle uses from the Device Manager, then use a serial-port terminal like Putty to test out whether the commands are supported by your dongle. As the libraries developed for sending SMS's are mostly for .Net, you may need to use an SMS gateway instead.

How to incorporate ports / sockets for direct tunneling with p2p darknet app

I'm building an app which upon login will connect you to certain ip addresses of which will also be running the same app.
The method of which i believe i should be using is direct tunnelling but as i say im a little new to c++, i have general coding skills, and i have sifted through a lot of forums and sites yet im still very unclear on what the best way forward is to achieve the requirement.
The reason for the connection will be to enable a secure chat, file transfer, and update software auto when connected to the program admin.
All those that have the app installed will once authorised, will be connected to admin client, then from that client all available ip's to connect to will become available to slave clients, this will increase the network size avilable to all users.
so the app needs to be able to handle ports but not via a server, instead it would be direct.
The connections also must ideally be encrypted.
Im kind of looking for what the application RetroShare does, but in text app.
(This is using C++ within Dev C++)
so just to recap, What method should i use to achieve the above?
I would take a look at SDL net to start with, its really simple to learn if you have never done any socket programming before.
for a secure connection you will probably want to start with TCP and then once you get the hang of network programming, start looking at other protocols.
Hope this helped! and good luck.

Using telnet to communicate with QNX Neutrino via TCP/IP in C++

I'm able to access a telnet server via PuTTY which opens a terminal and allows me to send commands to retrieve data/logs and start/stop processes. I'd like to begin some research into how to access this server via C++ in order to automate the connection and the commands for testing. Basically I need a telnet client that can connect and authenticate itself, and write and read to/from the server as if I'm typing in a terminal. Where should I start my research? I've tried a couple examples including:
http://lists.boost.org/boost-users/att-40895/telnet.cpp
When I compile and run
./telnet 192.168.1.26 23
Nothing happens, but when I connect to the server with PuTTY I get:
QNX Neutrino (localhost) (ttyp0)
login: root
password:
#
Any help would be greatly appreciated.
Notes:
- I am using a Mac running OS X Version 10.7.3 with i686-apple-darwin11-llvm-gcc-4.2
- I am allowed to be doing this.
- I use PuTTY on my Windows 7 machine, the connection is ethernet to USB ethernet adapter, and the settings for the Local Area Connection Properties > TCP/IPv4 Properties: are a specific IP address, Subnet Mask, and Default gateway, which might be useful information.
Thanks
Learn how to program TCP/IP sockets. You can use the boost libraries, or straight C style BSD sockets. Some info here, here and here. If paper is your thing, you could get Volume 1 of Unix Network Programming. That book has such a good reputation that you get votes just for mentioning it on StackOverflow.
What you want to do closely matches the functionality of telnet and expect. You can have a look at there sources here and here for ideas.
Consider just using expect to solve your problem :)
You should start by learning the network API for the system you're trying to connect from. Telnet is just sending straight up text through a tcp/ip socket.