Communication between Raspberry PI and a TSU 200 (RFID-Reader) - c

I want to establish communication between my reader and my Raspberry PI. This should run over a C program. In C, the data I get from the reader should be read out and displayed on my screen. how do i do it though
I tried to read the RJ45 interface that is connected to the Raspberry Pi.
I expect someone to tell me what steps I should take to achieve my goal

Related

Raspberry PI Pico USB Connection Issues when configuring/setting up ports

I am using the USB port of the Raspberry Pi Pico as my debug port when running C programs on the Pico. I have noticed that sometimes when I connect to the Pico USB using Putty in serial port mode, it takes forever (at least 5min) to connect and display the Putty terminal window. I have done the following to eliminate this issue:
Multiple reboots of the Pico before I am able to connect immediately.
Removing Pin configuration and initialization code eg: gpio_init(2); gpio_set_dir(2, GPIO_OUT); and so on. I noticed when doing this I connect immediately. Put this code back and I am back to waiting 5min for Putty to connect or resetting the device multiple times.
Does anybody know why this is happening?
Many Thanks.

C program to read datas from an antenna connected with USB

i'm trying to write a C program to read datas from an antenna connected with USB. I never did something like this and i'm totally confused. I'm using Windows SO, but i don't know how to access to the device and how to read datas. Can you help me? There are specific functions to do that?

How to write Simple UART Linux Device Driver for Raspberry Pi?

I am a begineer in learning Device Driver.I am practising with simple example to learn device driver. Can anyone suggest me how to start writing uart ,GPIO device driver for raspberry pi,because i started practising with raspberry pi only.
Thanks in advance
Regards,
pradeep
If this is your very first driver, start with something simple. I would take the following steps:
Write a simple character device driver that implements read/write/open/close file ops. That means they can be used with 'cat' and 'echo'.
Based on the initial work from 1, you can write a GPIO driver. This should be simple because all you need to do is write or read a 0 or 1 from a specific memory address.
Now that you have some experience with device drivers you can write a tty driver for your uart. There are lots of examples of tty drivers in linux already.

How to read data from USB port using C

I have sensor node connected to USB port that sense temperature, humidity and light and send the data to PC.
What piece of code will help me to read that data from the USB port in normal C.
Application of the nodes is built on C using Eclipse.
I looked into the specifications of your board and it seems like it's a FTDI chip. This means it's exactly the same way you read from a serial port.
Here is how you program the serial port in Windows (it hasn't changed in a long time).

Setting up i2c on Raspberry Pi for C?

I'm setting up i2c for an Application written in C, but I've not been able to find any how-to's for it. I'm running a model-b Raspberry Pi on Debian 6 with LXDE. Can anybody show me how to set up i2c so I can use it in a C Application?
Thanks for any help in advance
I've been looking for similar information and I found a couple of i2c tutorials, one in adafruit tutorials and the other in Guy Carpenter's Gaugette blog. I'm not yet at the stage of actually using it so I can't vouch for their completeness but they seem to be a good start.
Configuring Your Pi for I2C
Analog Gauges Using I²C on the Raspberry Pi
I2C Installation for Raspberry Pi. I think this is only necessary if not using AdaFruit's Occidentalis release which has it included.
try this :
C GPIO Interface library for the Raspberry Pi
It offers API for handling GPIO port on Raspberry, including dedicated functions for I2C interface. I've been using this to read measurements from temperature sensor and it works perfect (STCN75 connected to RPi rev. B).
You can find examples and instructions on author's website. Project is maintained and updated frequently on public Git repo.

Resources