From 4b95235843b6e04b15e41ad080e9653bbb49454c Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Sat, 30 Jul 2011 11:43:08 +0200 Subject: [PATCH] More serial support --- firmware/SERIAL_DOKU | 14 +++++++++ firmware/applications/serial/serial.c | 43 +++++++++++++++++++-------- 2 files changed, 44 insertions(+), 13 deletions(-) create mode 100644 firmware/SERIAL_DOKU 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;