[YARDStick] RFxmit issue?

Gabor Somogyi gabor.g.somogyi at gmail.com
Sat Feb 18 13:19:43 EST 2017


Hi Guys,


First of all big thanks for this awesome tool! :)

I've imlemented a couple of sniffing things with my YS1, they work fine and
then I thought let's send something. I've tried to send a couple of bits
through the air and wanted to sniff it with RTL-SDR to check how
it behaves. Just the hello world actually. I've turned off preamble and
sync word to make life easier but seems like the bits what I've put into
the python code and the sniffed wave forms are not in sync (at least I
don't see the pattern).

I've attached the python code, the output and the sniffed wav file from
RTL-SDR.
I'm using win10 pro.

Have I forgotten something to set or just need to learn more how radio
works?

Thanks in advance!


Regards,
Gabor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist10.pair.net/pipermail/yardstick/attachments/20170218/7e5e3f98/attachment-0001.html>
-------------- next part --------------
#!/usr/bin/env python

from rflib import *
from time import sleep
import bitstring

d = RfCat()
d.setMdmModulation(MOD_ASK_OOK)
d.setFreq(433950000)
d.setMdmDRate(2500)
d.setMdmChanBW(60000)
d.setMdmChanSpc(24000)
d.setPower(100)
d.setMdmSyncMode(SYNCM_NONE)
#d.setMdmNumPreamble(MFMCFG1_NUM_PREAMBLE_2)
#d.setMdmSyncWord(0xaa00)
d.setModeIDLE()

data = '011111101100110011001100100000010'
dataPacked = bitstring.BitArray(bin=data).tobytes()
print d.reprRadioConfig()
print "Data: %s" % data
print "DataPacked: %s" % dataPacked
print "len(DataPacked): %d" % len(dataPacked)
d.makePktFLEN(len(dataPacked))
for i in range(10):
    d.RFxmit(dataPacked)
d.setModeIDLE()
-------------- next part --------------
== Hardware ==
Dongle:              YARDSTICKONE
Firmware rev:        0450 
Compiler:            SDCCv350 
Bootloader:          CC-Bootloader

== Software ==
rflib rev:           397

== Frequency Configuration ==
Frequency:           433949707.031250 hz (0x1214ccL)
Channel:             0
Intermediate freq:   281250 hz
Frequency Offset:    0 +/-
Est. Freq Offset:    0

== Modem Configuration ==
Modulation:          ASK/OOK
DRate:               2500.534058 hz
ChanBW:              62500.000000 hz
DEVIATION:           20507.812500 hz
Sync Mode:           None
Min TX Preamble:     4 bytes
Chan Spacing:        23986.816406 hz
BSLimit:             No data rate offset compensation performed
DC Filter:           enabled
Manchester Encoding: disabled
Fwd Err Correct:     disabled

== Packet Configuration ==
Sync Word:           0x0C4E
Packet Length:       13
Length Config:       Fixed Packet Mode
Configured Address:  0x0
Preamble Quality Threshold: 4 * 2
Append Status:       No
Rcvd Packet Check:   No address check
Data Whitening:      off
Packet Format:       Normal mode
CRC:                 disabled

== AES Crypto Configuration ==
AES Mode:            CBC - Cipher Block Chaining
Crypt RF Input:      off
Crypt RF Output:     off

== Radio Test Signal Configuration ==
TEST2:               0x88
TEST1:               0x31
TEST0:               0x9
VCO_SEL_CAL_EN:      0x0

== Radio State ==
     MARCSTATE:      MARC_STATE_IDLE (1)
     DONGLE RESPONDING:  mode :14, last error# 0

== Client State ==
========================================================================================================================
     client thread cycles:      57/57
     client errored cycles:     0
     recv_queue:                (0 bytes) ''
     trash:                     (3 blobs) "[128, 142, (1487440986.702, '')]"
     recv_mbox                  (2 keys)  "['0x42', '0xff']"
       app 0x42 (1 records)
             [0x7]    (0 frames)  "[]"

       app 0xff (6 records)
             [0x80]    (0 frames)  "[]"
             [0x81]    (0 frames)  "[]"
             [0x82]    (0 frames)  "[]"
             [0x86]    (0 frames)  "[]"
             [0x88]    (0 frames)  "[]"
             [0x89]    (0 frames)  "[]"

Data: 011111101100110011001100100000010
DataPacked: ~ĢĢ� 
len(DataPacked): 5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RTL-SDR_sniff.wav
Type: audio/x-wav
Size: 53484 bytes
Desc: not available
URL: <https://pairlist10.pair.net/pipermail/yardstick/attachments/20170218/7e5e3f98/attachment-0001.wav>


More information about the YARDStick mailing list