Communication between a radio module and SV-613

Anything not related to STM32
Post Reply
turboscrew
Posts: 78
Joined: Fri Mar 10, 2017 7:36 pm

Communication between a radio module and SV-613

Post by turboscrew » Thu Nov 30, 2017 5:56 pm

Has anyone managed to send data from a radio module and receive it with SV-613?
I'm running out of imagination.

I have a blue pill with a CC1101-module and I can receive data from SV-613 with the CC1101-module, but not vice versa.
The SV-613 even reports nice RSSI when the CC1101-module sends, but not a byte gets through.
I've even tried "sweep-sending" - sending a couple of frames with each frequency deviation that CC1101 has, but no luck.

User avatar
RogerClark
Posts: 7693
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Communication between a radio module and SV-613

Post by RogerClark » Thu Nov 30, 2017 8:13 pm

Links to data on those devices please...

turboscrew
Posts: 78
Joined: Fri Mar 10, 2017 7:36 pm

Re: Communication between a radio module and SV-613

Post by turboscrew » Thu Nov 30, 2017 9:07 pm

Oh, sure...

SV-613: http://nicerf.com/product_148_54.html
Data: http://nicerf.com/Upload/ueditor/files/ ... 02783f.pdf
Uses internally Si4432: https://www.silabs.com/documents/public ... -31-32.pdf

CC1101 module: https://www.aliexpress.com/item/2-pcs-C ... 0.0.CvTWO3
Data: http://www.ti.com/lit/ds/symlink/cc1101.pdf

I set the SV-613 Device ID to zero, so it doesn't use Device IDs (not found anywhere in the message received with CC1101).
I also set the SV-613 sync word to 0xFEEDFEED and 0xFEED on the CC1101 with sending/receiving sync word twice (32-bit sync word).
The checksum that SV-613 uses, is CCITT-CRC16. The message length is always 56 bytes (full SV-613 frame).
And it puts the message length (usually the 56 0r 0x38) between the syncword and the data.

Oh, and the SV-613 56-byte data part is "crypted" by xoring with:
05 B4 05 AE 14 DA BF 83 C4 04 B2 04 D6 4D 87 E2 01 A3 26 AC BB 63 F1 01 CA 07 BD AF 60 C8
12 ED 04 BC F6 12 2C 01 D9 04 B1 D5 03 AB 06 CF 08 E6 F2 07 D0 12 C2 09 34 20
before calculating the CRC. The length is not crypted nor included to the checksum calculation.

turboscrew
Posts: 78
Joined: Fri Mar 10, 2017 7:36 pm

Re: Communication between a radio module and SV-613

Post by turboscrew » Sun Dec 03, 2017 5:14 pm

Now I got enough stuff to put together another CC1101-system.
I used one CC1101 for sending the data and another to receive it. I used the same SW that I used for receiving the SV-613 data and trying to send data to SV-613.

The stuff received from the SV-613 (from an earlier log):

Code: Select all

f_scan: 433829772 Hz  rxbw: 232000 Hz  RSSI: -88 dBm
try br: 38383 bps
br-scan: br: 38383 max fdev: 203125 Hz
rxbytes: 0x0000003B
msg-RSSI: -41 dBm

msg: 38 40 D8 70 C5 7F BB 9F C6 A8 71 D9 6F B7 6D C2 8E 74 C8 4D CD 9B 26 9D 74 A1 6C DC 8F 25 A4 67 86 6F DD D6 57 40 74 B2 6F D0 F5 46 C7 73 A4 63 87 D2 42 BC 67 A9 62 55 20 28 7C
^msg: 38 45 6C 75 6B 6B 61 20 45 6C 75 6B 6B 61 20 45 6C 75 6B 6B 61 20 45 6C 75 6B 6B 61 20 45 6C 75 6B 6B 61 20 45 6C 75 6B 6B 61 20 45 6C 75 6B 6B 61 20 45 6C 75 6B 6B 61 00 28 7C
The stuff I received from the other CC1101 module:

Code: Select all

f_scan: 433829772 Hz  rxbw: 232000 Hz  RSSI: -52 dBm
try br: 38383 bps
br-scan: br: 38383 max fdev: 203125 Hz
rxbytes: 0x0000003B
msg-RSSI: -52 dBm

msg: 38 40 D8 70 C5 7F BB 9F C6 A8 71 D9 6F B7 6D C2 8E 74 C8 4D CD 9B 26 9D 74 A1 6C DC 8F 25 A4 67 86 6F DD D6 57 40 74 B2 6F D0 F5 46 C7 73 A4 63 87 D2 42 BC 67 A9 62 55 20 28 7C
^msg: 38 45 6C 75 6B 6B 61 20 45 6C 75 6B 6B 61 20 45 6C 75 6B 6B 61 20 45 6C 75 6B 6B 61 20 45 6C 75 6B 6B 61 20 45 6C 75 6B 6B 61 20 45 6C 75 6B 6B 61 20 45 6C 75 6B 6B 61 00 28 7C
The "msg" is the raw (crypted) message and the "^msg" is the message part decrypted.
The "msg_RSSI" is the RSSI measured during reception of the message.
The SV-613 sends with full power, but the CC1101 only with +5 dBm. That explains the difference in the msg-RSSI.

User avatar
mrburnette
Posts: 2230
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: Communication between a radio module and SV-613

Post by mrburnette » Sun Dec 03, 2017 5:38 pm

Am I missing something as it appears the radios are just serial devices from this AliExpress graphic shows:

Image

turboscrew
Posts: 78
Joined: Fri Mar 10, 2017 7:36 pm

Re: Communication between a radio module and SV-613

Post by turboscrew » Tue Dec 05, 2017 12:08 pm

The picture is confusing. I guess that kind of versions did exist, but I think the most common version now is the USB-version. It has a built in CH341 and the SET is handled with a switch in the box. The manufacturer datasheet seems to be a funny mixture of older and newer version.
In the same manual that the picture was from, it says in the beginning: "Interface: USB interface".

If you look into the pictures and description text in that AliExpress pages, you can see that it's really a USB-device.
Image

This is the version I have: https://d3s5r33r268y59.cloudfront.net/d ... /SV613.pdf (See the picture on page 6.)
That's not really a data sheet, but rather some kind of user manual.

turboscrew
Posts: 78
Joined: Fri Mar 10, 2017 7:36 pm

Re: Communication between a radio module and SV-613

Post by turboscrew » Thu Dec 07, 2017 7:24 am

I have tried with and without SV-613 device ID, device ID before and after length-byte, with 4, 8, 16 and 24 byte preamble, and with preamble inverted (instead of 0xAAAAAAAA I sent 0x55555555), but still no luck. Also tried different delays (20ms, 50ms, 100ms, 200ms) between the sent frames, but still nothing.

I also tried using 16-bit sync word on receiving CC1101, and saw the 0xFEED emerge before the length-byte, so there is no hidden stuff between the sync word and length-byte.

The "sweep-sending" I mentioned earlier is sending with different central frequencies (433.85MHz to 433.95MHz with 6.4kHz steps) and different frequency deviations (64 values from 1.5kHz to 481 kHz), 10 messages with each combination.
The SV-613 was set on channel 20 (433.92MHz according to the specs).

I've been thinking, maybe the SV-613 is faulty, but I can't understand how, since the sending works end-to-end, and receiving RSSI-values in the set-up mode shows that the connections from antenna to radio-chip to internal uC to USB work.

Any ideas to check, that I have missed?

Post Reply