diff --git a/firmware/SERIAL_DOKU b/firmware/SERIAL_DOKU new file mode 100644 index 0000000..4c28ee7 --- /dev/null +++ b/firmware/SERIAL_DOKU @@ -0,0 +1,14 @@ +i: initialize +cb / cm / cr: config funk for beacon/mesh/remote +Ck: set encryptionkey +Ct: set txmac +Cc: set channel +Ct: set rxmac(0) + +s : send packet +s+ : send packet 10 times +sd : send packet with debugoutput + +r: recv packets +r+: recv packets for seconds +r-: recv packets (5 seconds max) diff --git a/firmware/applications/serial/serial.c b/firmware/applications/serial/serial.c index 75c0790..f27dada 100644 --- a/firmware/applications/serial/serial.c +++ b/firmware/applications/serial/serial.c @@ -86,7 +86,7 @@ void dwim(void){ input[inputptr+l]=0; puts_plus(&input[inputptr]); for(int i=0;i0){ + delayms(23); + memcpy(buf,hex,len); + status=nrf_snd_pkt_crc_encr(len,buf,thekey); }; - puts_plus("\r\n"); }else if (input[1]=='t'){ static int ctr=1; int status;