jboone / tpms

Tire Pressure Monitoring System decoding tools.
352 stars 73 forks source link

Create burst capture scripts. #1

Open jboone opened 10 years ago

jboone commented 10 years ago

It'd be far easier for n00bz to get started if all they needed was the rtl-sdr package and my Python code -- not ALL of GNU Radio. I've started work on Python code that will extract bursts from rtl_sdr directly. I need to finish and post it!

cyrus104 commented 8 years ago

Thanks for producing this product. I'm having an issue when trying to convert and rtl_sdr recording to a cfile recording. I'm using the code from this site which is pretty straight forward (https://stackoverflow.com/questions/25587959/bin-to-cfile-flowgraph-for-grc-3-7-2-1). I am not using GRC to convert because version 3.7 broke the grc.

When trying to run extract_burst.py, I get errors at line 83 and line 47. The line that looks like it's giving problems is; target_signal, carrier_freq, smapling_rate, start_date, start_time, capture_device = sourcefilename.split('') ValueError: need more than 1 value to unpack

I'd like to use gr-tpms but when I do, I get a lot of bursts but can't seem to do anything with the .dat files. burst_inspect.py (folder) won't open the files. Any thought / help would be great.

jboone commented 8 years ago

That code splits the source filename into several parts: target_signal, carrier_freq, sampling_rate, start_date, start_time, capture_device. These parts of the filename are separated by underscores.

You can see a filename using that example naming convention in the README:

burst_inspect.py tpms_314.950m_0.400m_20131013_180516z_rtlsdr

Unfortunately, the tools in this project are pretty fragile and arcane.

zanaries commented 4 years ago

I ran extract_bursts.py and then I ran burst_inspect.py, but as you can see from the image I can't see anything and I get an error on the sampling rate Screenshot from 2020-02-10 08-55-33