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.
Related
I'm a totally newbie and interested in physical programming like raspberry pi's. Is there any way to get the data which is intended to go to a "USB to TTL converter device" through USB(e.g. the output of a flashing software), read it and convert it to TTL using Python or C language? I mean something like:
Compiler --> avrdude --> Ethernet port of the compiler host PC --> Ethernet port of a Raspberry Pi --> Pins of the Raspberry Pi --> avr microcontroller
My question is about the code which I should run on the Raspberry Pi to do all the work required on that side. I'm guessing in this specific example it's possible to install avrdude on the Raspberry Pi and pipe the compiled code from the PC to the avrdude on the pi but I'm looking for a general solution that can be used with all microcontrollers, essentially turning the Raspberry Pi into a transparent, Ethernet connected, USB to TTL converter, either existing libraries or directions to how to write such code and where to read the documentations.
Edit1: There's a C language library called pigpio already installed on the Raspberry Pi OS and it can output UART. But I don't know how to read the USB data coming to the Raspberry Pi through its Ethernet port and convert it to UART data.
Edit2: I Changed USB port to Ethernet port since you can't connect two computers directly through USB. The data coming from the PC is still intended for USB to TTL converters since that's how avrdude and similar softwares are written(I guess it'll be "USB over Ethernet").
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?
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?
Are there any computers that don't cost much more than Raspberry Pi 3, but unlike it, CAN be used with an HDMI auto-switch?
The Raspberry Pi is an "always-on" computer, so auto-sensing doesn't work with it.
I don't know if that is also the case with alternatives such as Orange Pi or Odroid C2.
And what if I powered the Raspberry Pi from a powered USB hub instead of directly from the wall, would that make a difference???
Thank you
I have a task to connect PROFIBUS (field bus technology by Siemens) to my Raspberry Pi. I need to make my Raspberry pi as a master and others devices as a slaves.
Let me know if you have any idea about how to make this connection. I am totally new in this topic and have no idea about this.
You might have a look at this project: https://bues.ch/cms/automation/profibus
When I understand it correctly, Profibus (Modbus) ist implemented by RS-485, that is not directly supported by the Raspberry Pi GPIOs.
You have to buy an extra shield or an USB to RS-485 Adapter.
There is also a library to send/receive data using modbus-protocol:
http://libmodbus.org/