Raspberry Pi connection and process image data - raspberry-pi

Does anyone know how to connect the Raspberry Pi to the cloud server after acquiring the image, how to send the processed data back to the Raspberry Pi after the cloud server processes it?

Related

Unable to recieve data from Raspberry Pi Pico to Windows host over USB (virtual serial port)?

I have designed a program in Raspberry Pi Pico to read a 4x4 matrix-keypad and inform the Raspberry Pi 4 for the key detected.
I am using to send data from Raspberry Pi Pico to Raspberry Pi 4 over USB (virtual serial port). On raspberry Pi 4 I am receiving the data successfully on /dev/ACM0
I am using print command to send data.
print(f'Key Detected : {key_pressed})
While executing on Windows, I get strange behavior. As I run the program in Thonny, I get the message in shell but when I connect hyper terminal or CoolTerm I am unable to any messages.
Why is this happening?

Can not communicate sparkun OBDII UART with Raspberry pi 4 over (minicom)

I'm trying to use Sparkfun's OBD-II-UART board to interface with a CAN network using a Raspberry pi 4. Upon connecting to sudo screen /dev/ttyAMA0 and when I send the commands, I'm not able to get any response from the OBD-II-UART board. Can anyone suggest why it is not communicating?

Detecting connected device fault to Raspberry Pi

I am able to send data from sensor to server using Raspberry Pi, but my aim is to find the devices (for example a sensor) connected to the Raspberry Pi using any language.

Sending commands back to raspberry pi from bluemix node red

I am reading sensor values from Raspberry Pi 2 and sending it to bluemix IoT platform using node-red application on the Pi. After monitoring the values, I would like to send the command back to raspberry pi from the node red starter in the bluemix to control the GPIO on the Pi using node red application on the Pi.
I am able to send the data from the raspberry pi to the Bluemix using Node Red, and the data is also displayed on the node red starter in Bluemix (ibmiotin node). But the command from the bluemix to the Pi is not being sent.
When I try to send command by using the inject node to the PI, then the command is sent perfectly, but when I use the sensor input node to send the command, the command is not sent to the device.
Is there any criteria in the Bluemix that the same device can't be used for sending and receiving the data simultaneously?
How can I send the data back to the raspberry pi using the bluemix node-red starter?
P.S. Both the devices(sensor and Pi) are shown as connected in the IoT dashboard and also in node-red.
The image of my node red in bluemix is as shown below.
I just needed to add a json node before the ibmiot out node to send the commands to the device.
This solved the problem.
The updated flow is follows:
have a look on publish and subscribing to commands:
https://console.ng.bluemix.net/docs/services/IoT/applications/mqtt.html
You can use an mqtt node to publish and subscribe to the commands topic, parse the command in a function node then send it to your Pi through GPIO node

How to get the device id of Raspberry Pi while sending data to IBM Bluemix as a gateway

I am sending data from Sense HAT (device) through a Raspberry Pi (gateway) to my Bluemix application. My Pi is also sending CPU temperature of Raspberry Pi to Bluemix. I have one IBM IoT node receiving both of the data. I am not able to differentiate the Sense HAT data from Raspberry Pi data. Here is the function node code:
var v;
if(msg.deviceId==="raspberryID")
{
v= "From Raspberry Pi";
}
else if (msg.deviceId=="senseHatid")
{
v= "From Sense Hat";
}
return {payload:v}
Return value is always "From Sense Hat," but I am able to receive both the data in debug. I get the same result if I use msg.deviceType in the if else statement.
It looks like you are publishing all the data from the Raspberry Pi and the SenseHAT using the senseHatid.
Are you using Node-RED to publish the readings from the Raspberry Pi? If so ensure, that you are setting the msg.deviceType and msg.deviceId values for the outbound Watson IoT node to the Raspberry Pi gateway for the CPU temperature and the SenseHit device for the senseHat data.