Reply
Posts: 5
Registered: ‎10-12-2017
Accepted Solution

Si4x6x Variable packet length

Hello.

I use the chip 4463 and I cannot understand what I do incorrectly.

 

I want to give packets of variable length.
my actions on the transmitting end:
1. I fill fifo_tx - 0x66 0x04 0x01 0x00 0x00 0x00
2. I include transmission - 0x31 0x00 0x30 0x00 0x05
3. to make a pause of 1 sec.
4. to transfer to 1.

 

on the receiving side:
1. I receive interruption of PACKET_RX_PEND
2. I read fifo_rx - 0x15 0x00
3. 0xFF 0x05 0x40 returns
4. I read 5 bytes (command 0x77)
5. I receive - 0x04 0x01 0x00 0x00 0x00

 

and after that I don't receive anything any more
nIRQ output in a high status, interruptions don't come

 

what do I do incorrectly?

Posts: 5
Registered: ‎10-12-2017

Re: Si4x6x Variable packet length

after reception of a packet and reading it from fifo_rx I added a command
0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x03 - I turn into reception
now I receive messages of times in 1 sec.

 

But if
after reception of a packet, I try through 10 msec
to send the response such commands
0x66 0x04 0x02 0x00 0x00 0x00
0x31 0x00, 0x30, 0x00, 0x05
after appearance of interruption of TX_SENT
0x15 0x01 I clean fifo_tx
0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x03 - I turn into reception

Posts: 5
Registered: ‎10-12-2017

Re: Si4x6x Variable packet length

that occurs CMD_ERR interruption
also all the time hangs in it

Posts: 5
Registered: ‎10-12-2017

Re: Si4x6x Variable packet length

read state with command 

0x23 0x00  - read chip status return

0xFF 0x08 0x14 0xF0 0x00 

and 0xF0  no in list of command error cause.

 

What do i wrong?

 

 

Posts: 5
Registered: ‎10-12-2017

Re: Si4x6x Variable packet length

i solved it.

 

Problem was in lenght of data.

just need insert command between this commands and change last cmd

0x66 0x04 0x01 0x00 0x00 0x00 

0x31 0x00 0x03 0x00 0x05

 

in result 

0x66 0x04 0x01 0x00 0x00 0x00 

0x11, 0x12, 0x02, 0x11, 0x00, 0x04 - where 0x04 - lenght of data

0x31 0x00 0x03 - no need add len here