Android Question RTL2832U data

brodmuehler

Member
Licensed User
Longtime User
Hi

I want to receive a radio signal on my smartphone. I am using a DVB-T stick with a RTL2832U chip. In Google Play store I found a RTL2832U driver. What do I need to do in B4A to connect to the USB port and read in the data? And how can I store these data in order to process it?

A little bit of background: I am a gider pilot and instructor. Most of the gliders today are equipped with an anticollision system called Flarm. Flarms sents on 868.3 MHzand it transmits a certain set of information. My idea is to use the SDR approach (e.g. SDR Touch) and try to receive the Flarm signal. The signal contains the glider ID and also the GPS data. If that works, then I could use a little map in order to visulize the glider position in the vicinity of the airfield.

My main problems are now:
  • connect to usb
  • read in and store the data
  • understand the signal
  • find out which "sentence" Flarm uses in his transmission
  • decode the signal
  • visualize on a Googlemap

Thanks a lot for any help, hints and comments.
Kind regards
René
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Have you tried to connect to this device with UsbSerial library? If it uses the same protocol as the ones supported by UsbSerial then it will work (most probably not).

The other option is to implement the driver yourself with Usb host library. This is pretty complicated.

Maybe there is a usb to bluetooth converter available for this chip/
 
Upvote 0

brodmuehler

Member
Licensed User
Longtime User
Hi Erel

thanks for the fast response. Not sure whether there is a converter available. Do you have any idea, what this RTL2832U driver would do for me? And how do I connect to this driver? Apparently they use this driver to read in the data in the SDR Touch app and create a digital radio.

Thanks René
 
Upvote 0

davelew1s

Active Member
Licensed User
Longtime User
Hi!
I am also interested in using the RTL2832 ..... is thre a lib for this? .... i have searched the web but didn't find anything i could use.
Any help thanks Dave.
 
Upvote 0

Tonrad

Member
Licensed User
I'm interested to build a B4A library for RTL2832 in order to use it in one of my apps.
The source code of the driver is available here:
https://github.com/martinmarinov/rtl_tcp_andro-
There is something already done? I don't want to reinvent the wheel.

Thank you.
Dan

Hello.
I am new to b4a programming.
Please tell me if there is any instruction to use your driver from the b4a app. And whether your driver can be combined into a single installation file (.apk) with my app? Unfortunately, I'm not familiar with Java at all.

Thank you.
 
Upvote 0
Top