|
Post by progman on Aug 10, 2017 16:00:40 GMT
@ntramf: for me this works uint8_t wakeupKeepAliveArray[0x06]={0x00, 0xFF, 0xFF, 0x00, 0x81, 0x02}; uint8_t colorFadingArray[0x21]={0x00, 0xFF, 0xFF, 0xE2, 0xFF, 0x06, 0x01, 0x21, 0x00, 0x00, 0x00, 0xFA, 0x03, 0x01, 0x10, 0x00, 0x06, 0x20, 0x70, 0x00, 0x01, 0x00, 0x00, 0x04, 0x21, 0x2F, 0x02, 0x00, 0x01, 0x41, 0x03, 0x40, 0x42}; rf24.send_raw(wakeupKeepAliveArray, 6); rf24.send_raw(colorFadingArray, sizeof(colorFadingArray)); hi all to select color frame : uint8_t RED[] = {0x15 ,0x00 ,0xFF ,0xFF ,0x6E ,0xFF ,0x00 ,0x0A ,0x0A ,0x00 ,0xF8 ,0xF8 ,0xF8 ,0xF8 ,0xF8 ,0xF8 ,0xF8 ,0xF8 ,0x03 ,0x08 ,0x00 ,0xF8}; uint8_t ORANGE[] = {0x15 ,0x00 ,0xFF ,0xFF ,0x6F ,0xFF ,0x00 ,0x0A ,0x0A ,0x00 ,0xF9 ,0xF9 ,0xF9 ,0xF9 ,0xF9 ,0xF9 ,0xF9 ,0xF9 ,0x03 ,0x08 ,0x00 ,0xF9}; uint8_t YELLOW[] = {0x15 ,0x00 ,0xFF ,0xFF ,0x70 ,0xFF ,0x00 ,0x0A ,0x0A ,0x00 ,0xFA ,0xFA ,0xFA ,0xFA ,0xFA ,0xFA ,0xFA ,0xFA ,0x03 ,0x08 ,0x00 ,0xFA}; uint8_t GREEN[] = {0x15 ,0x00 ,0xFF ,0xFF ,0x71 ,0xFF ,0x00 ,0x0A ,0x0A ,0x00 ,0xFB ,0xFB ,0xFB ,0xFB ,0xFB ,0xFB ,0xFB ,0xFB ,0x03 ,0x08 ,0x00 ,0xFB}; uint8_t BLUE_C[] = {0x15 ,0x00 ,0xFF ,0xFF ,0x72 ,0xFF ,0x00 ,0x0A ,0x0A ,0x00 ,0xFC ,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,0x03 ,0x09 ,0x00 ,0x0D ,0x03 ,0x01 ,0xC3 ,0x01 ,0x03 ,0x31 ,0x2C ,0xFE ,0x02 ,0x11 ,0x07 ,0x03 ,0x36}; uint8_t SEQSTOP[] = {0x12 ,0x00 ,0xFF ,0xFF ,0x11 ,0xFF ,0x03 ,0x01 ,0xC6 ,0xFF ,0x08 ,0x78 ,0xFF ,0x00 ,0x00 ,0x00 ,0x00 ,0xFF ,0xFF}; uint8_t SEQFIRE[] = {0x1A ,0x00 ,0xFF ,0xFF ,0x10 ,0xFF ,0x0A ,0x01 ,0xC6 ,0xFF ,0x00 ,0x00 ,0x58 ,0x00 ,0x00 ,0x00 ,0x80 ,0x03 ,0x01 ,0x05 ,0x00 ,0x02 ,0x11 ,0x00 ,0x03 ,0x36, 0x3E}; uint8_t SEQDHEART[] = {0x1A ,0x00 ,0xFF ,0xFF ,0x0B ,0xFF ,0x0A ,0x01 ,0xC6 ,0xFF ,0x00 ,0x00 ,0x68 ,0x01 ,0x00 ,0x00 ,0x40 ,0x03 ,0x01 ,0x05 ,0x00 ,0x02 ,0x11 ,0x07 ,0x03 ,0x36, 0x3E}; the first byte is length if you dont want, please erase this best regard
|
|
|
Post by skiingsid on Aug 15, 2017 17:53:13 GMT
As a newbie most of these points may seem obvious to the old hacks, but took some learning at my end;
1) RFM26W - will need to mounted some how, above, suggest you mount it upside down so you can read the screen print, way more useful then seeing the components on the PCB! 2) I used a teensy 3.6, found that I needed to run it at the slowest speed to communicate with the RFM26W on a bread board, with standard plug in wires. Suggest that rf24.printRegisters() command is useful to show that you are communicating with the board.
So now a question; I think I have my Teensy 3.6 and RFM26W communicating and the RFM26W sending data.
What is the sequence of commands to get a response from a "Speaker Model" type wrist band. I have tried the following from this thread;
uint8_t wakeupKeepAliveArray[0x06]={0x00, 0xFF, 0xFF, 0x00, 0x81, 0x02}; uint8_t colorFadingArray[0x21]={0x00, 0xFF, 0xFF, 0xE2, 0xFF, 0x06, 0x01, 0x21, 0x00, 0x00, 0x00, 0xFA, 0x03, 0x01, 0x10, 0x00, 0x06, 0x20, 0x70, 0x00, 0x01, 0x00, 0x00, 0x04, 0x21, 0x2F, 0x02, 0x00, 0x01, 0x41, 0x03, 0x40, 0x42};
and
uint8_t wakeupKeepAliveArray[0x06]={0x00, 0xFF, 0xFF, 0x00, 0x81, 0x02}; uint8_t RED[] = {0x00 ,0xFF ,0xFF ,0x6E ,0xFF ,0x00 ,0x0A ,0x0A ,0x00 ,0xF8 ,0xF8 ,0xF8 ,0xF8 ,0xF8 ,0xF8 ,0xF8 ,0xF8 ,0x03 ,0x08 ,0x00 ,0xF8}; uint8_t SEQLIGHTON[]= {0x00 ,0x20 ,0xFF ,0x0E ,0xFF ,0x06 ,0x01 ,0xC6 ,0xFF ,0x00 ,0x00 ,0xFA ,0x02 ,0x11 ,0x07 ,0x03 ,0x36 };
also uint8_t bad[] = {0x00 , 0x00};
I send one packet after another using rf24.send_raw(bufferName, sizeOf(bufferName)) wait a few seconds and send the sequence again. Never see any thinking on the wrist bands.
What command sequences have people got to work.
Tks in advance
|
|