this receive seems to work well.
It has checksum errors at 123 byte payloads, but this was tested with the old rftest-tx --- so the transmit side could be the problem.
This commit is contained in:
parent
f5391e88dc
commit
e8550f26ba
3 changed files with 14 additions and 11 deletions
13
tests/per.c
13
tests/per.c
|
@ -70,15 +70,18 @@ void session_req(short_addr_t addr) {
|
|||
}
|
||||
|
||||
void print_packet(packet_t *p) {
|
||||
volatile uint8_t i,j;
|
||||
volatile uint8_t i,j,k;
|
||||
#define PER_ROW 16
|
||||
if(p) {
|
||||
printf("len 0x%02x:",p->length);
|
||||
for(j=0; j < ((p->length)%16)-1; j++) {
|
||||
for(i=0; i<p->length; i++) {
|
||||
printf("%02x ",p->data[j*16+i]);
|
||||
printf("len 0x%02x\n\r",p->length);
|
||||
for(j=0, k=0; j < ((p->length)%PER_ROW)-1; j++) {
|
||||
for(i=0; i < PER_ROW; i++, k++) {
|
||||
if(k>=p->length) { break; }
|
||||
printf("%02x ",p->data[j*PER_ROW+i]);
|
||||
}
|
||||
printf("\n\r");
|
||||
}
|
||||
printf("\n\r");
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue