gaionim / rpitx

RF transmitter for Raspberry Pi
0 stars 0 forks source link

File formato do not match #1

Closed gaionim closed 8 years ago

gaionim commented 8 years ago

fix output file to match sample in upstream

gaionim commented 8 years ago

done, but data needs checking

gaionim commented 8 years ago

Data is different, whi ?!? pi@raspberrypi:~/rpitx/contrib $ hexdump /tmp/upstream.bin |head 0000000 0000 0000 ffc0 40af e100 05f5 0000 0000 0000010 0000 0000 ffc0 40df e900 35a4 0af8 0001 0000020 0000 0000 ffc0 40af e100 05f5 ffc0 40df 0000030 0000 0000 ffc0 40df e900 35a4 0af8 0001 0000040 0000 0000 ffc0 40af e100 05f5 ffc0 40df 0000050 0000 0000 ffc0 40df e900 35a4 0af8 0001 0000060 0000 0000 ffc0 40af e100 05f5 ffc0 40df 0000070 0000 0000 ffc0 40df e900 35a4 0af8 0001 0000080 0000 0000 ffc0 40af e100 05f5 ffc0 40df 0000090 0000 0000 ffc0 40df e900 35a4 0af8 0001 pi@raspberrypi:~/rpitx/contrib $ hexdump /tmp/pippo.rfa |head 0000000 0000 0000 ffc0 40af e100 05f5 0000 0000 0000010 0000 0000 ffc0 40df e900 35a4 0000 0000 0000020 0000 0000 ffc0 40af e100 05f5 0000 0000 0000030 0000 0000 ffc0 40df e900 35a4 0000 0000 0000040 0000 0000 ffc0 40af e100 05f5 0000 0000 0000050 0000 0000 ffc0 40df e900 35a4 0000 0000 0000060 0000 0000 ffc0 40af e100 05f5 0000 0000 0000070 0000 0000 ffc0 40df e900 35a4 0000 0000 0000080 0000 0000 ffc0 40af e100 05f5 0000 0000 0000090 0000 0000 ffc0 40df e900 35a4 0000 0000

gaionim commented 8 years ago

I miss something ...... different file seems read same data. In [10]: import setTime In [11]: orig = setTime.read("/tmp/upstream.bin") In [12]: my = setTime.read("/tmp/pippo.rfa") In [13]: orig == my Out[13]: True

$ diff /tmp/upstream.bin /tmp/pippo.rfa Binary files /tmp/upstream.bin and /tmp/pippo.rfa differ

gaionim commented 8 years ago

funziona, quindi chiudo