|
Post by stefankrupop on Sept 16, 2016 21:32:45 GMT
After much fumbling around with parameters I FINALLY managed to get my Xyloband to receive packets I sent with the help of an Teensy 2++ and a radio module. To spare others from also having to do this, I attach a small packet containing an Arduino Sketch and a patch file for the RadioHead library to make it work with the Xyloband. The sketch simply receives packets to be sent via the Arduino's UART and sends them over the air. This allows me to test commands for the Xyloband from the PC rather than reflashing the Arduino all the time. My setup consists of: - Teensy 2++ configured for 3.3 V operation (www.pjrc.com/teensy/)
- Other Arduino compatible boards should also work if they can be configured for 3.3 V I/O (Pin definitions in Sketch probably will need to be updated)
- RFM26W radio module, 868 MHz Version
To build the software, extract the "XylobandSender" directory into your sketchbook. Then install the RadioHead library, version 1.62 from here: www.airspayce.com/mikem/arduino/RadioHead/ After that, apply the patch "RadioHead-1.62.patch" to the library in order to make it set the correct radio module parameters. Now you can compile and upload the sketch to your Teensy/Arduino compatible board.
The following shows the Xylobands reading the packet created by sending
0x01 0x00
(in binary, not as a string) to the Arduino:
The first byte is the length of the packet you want to send. After that, exactly this many bytes are transferred. After the last byte the packet gets sent over the air and the sketch expects the next length byte. The maximum length is 63 bytes, just as configured on the Xyloband. You can test whether everything works by sending the (illegal) packet "0x00 0x00". This makes my band reset, thereby flashing once.
Now I can finally start to explore which packets might result in a reaction of the Xyloband
Kind regards, Stefan
PS: I also attach the Silicon Labs WDS 3 config file I used to create the modified radio_config_Si4460.h
EDIT: There's now an easier way to build your transmitter, see here: xylobandhacking.freeforums.net/thread/27/xyloshield-xylolibrary-build-transmitter-arduino
|
|
rodders
New Member
Posts: 21
Xyloband type: Speaker Model
|
Post by rodders on Sept 16, 2016 21:42:38 GMT
Stefan,
That's great stuff, congratulations on your hard work.
I need to buy a RFM26W radio module (my MRF module will not provide a high enough bit rate nor Tx as GFSK) to help contribute to finding the pattern that triggers a response; I'll run it off a PIC microcontroller rather than the Teensy as that is what I have at home.
best regards,
Rodders
|
|
|
Post by stefankrupop on Sept 16, 2016 21:50:41 GMT
Hi Rodders, actually the data rate seems to be just 10 kbps, see screenshot from WDS: I also suspect the band will receive a FSK instead of GFSK modulated signal as well. However, it might just be easier to acquire an RFM26W module instead of (again) finding the right parameters for another module... Kind regards, Stefan
|
|
rodders
New Member
Posts: 21
Xyloband type: Speaker Model
|
Post by rodders on Sept 16, 2016 22:25:59 GMT
Stefan,
I'm not familiar with WDS - is WDS interpreting the SPI data to show how the Si4463 is setup ?
My reasoning for the 1Mbps was that I went through your previous SPI data dump and noticed addresses 0x2003, 0x2004 and 0x2005 specified the Tx data rate in bits Per Second. The three bytes had values of 0x0F, 0x42 and 0x40 which equated to 1,000,000 bps.
My initial thoughts were also that 2FSK would be received by a 2GFSK receiver - the additional harmonics from the non-gaussian-smoothed pulses would just cause interference to adjacent bands....not a problem for what we are trying to do !
regards
Rodders
|
|
|
Post by progman on Sept 16, 2016 22:27:22 GMT
good work !!!!!
we have the same step .....
|
|
|
Post by stefankrupop on Sept 16, 2016 22:35:36 GMT
I'm not familiar with WDS - is WDS interpreting the SPI data to show how the Si4463 is setup ? No, the "Wireless Development Suite" just works the other way round: You configure the radio like you want it to be, than the software can create a header file with the required parameter settings. What I did was just tweaking the settings in the GUI until the resulting configuration bytes matched what I found in the dumps (mostly). My reasoning for the 1Mbps was that I went through your previous SPI data dump and noticed addresses 0x2003, 0x2004 and 0x2005 specified the Tx data rate in bits Per Second. The three bytes had values of 0x0F, 0x42 and 0x40 which equated to 1,000,000 bps. Actually the API documentation says for the MODEM_DATA_RATE field: So it is not mandatorily directly convertible to bps. Kind regards, Stefan
|
|
|
Post by stefankrupop on Sept 21, 2016 8:34:10 GMT
Just for the (my ) record, the connections between the Teensy 2++ and the RFM26W module are as follows: Teensy
| RFM26W
| +5V (now +3.3V)
| VCC
| GND | GND
| E1 | SDN | D2 | XIRQ | B0
| XSEL | B1
| SCK | B2
| SDI | B3 | SDO |
On the RFM26W module itself GPIO 1 is connected to TX_ANT and GPIO 0 to RX_ANT. Please remember to change the Teensy/Arduino to 3.3 V first!
|
|
|
Post by aze1234 on Jan 10, 2017 22:30:49 GMT
Hello, can you repload Files for use xyloband transmitter with arduino board, because links are not valid
Thnak you
|
|
|
Post by stefankrupop on Jan 11, 2017 12:24:08 GMT
aze1234 For me, the download seems to work normally. Do others have problems downloading? However, I just attach the file again. Kind regards, Stefan XylobandSender.zip (6.93 KB)
|
|
|
Post by jyewman on Jan 20, 2017 21:50:53 GMT
Hi, This may be a really stupid question but.... How do you implement the patch into the existing library
Thanks
|
|
|
Post by davejavu on May 2, 2017 14:22:13 GMT
|
|
tony
New Member
Posts: 6
|
Post by tony on Jun 20, 2017 13:35:16 GMT
Hi all,
Great work. Can anyone let me have a patched version of the software? I'm having great difficulties applying the patch.
thanks. Tony
|
|
|
Post by progman on Jun 20, 2017 15:54:49 GMT
hi tony what is your issue ?
|
|
tony
New Member
Posts: 6
|
Post by tony on Jun 20, 2017 16:06:30 GMT
Hi progman
apart from not knowing what i'm doing.
I have tried to add the path using my mac (patch < RadioHead-1.62.patch) but it throws up lots of errors. I can't find the correct version of RH_RF24.ccp to use
Cheers
|
|
|
Post by progman on Jun 20, 2017 21:28:03 GMT
Hi progman apart from not knowing what i'm doing. I have tried to add the path using my mac (patch < RadioHead-1.62.patch) but it throws up lots of errors. I can't find the correct version of RH_RF24.ccp to use Cheers the correct version to use www.airspayce.com/mikem/arduino/RadioHead/RadioHead-1.62.zip and if you have a other error please take me in board the result. best regard
|
|