T2080 use fra demo Send a mailbox(Type11)But Recv 2 same Package of Mailbox

cancel
Showing results for 
Search instead for 
Did you mean: 

T2080 use fra demo Send a mailbox(Type11)But Recv 2 same Package of Mailbox

332 Views
liguofa
Contributor III

yipingwang

I am very sorry to bother you. I am now using a T2080 usdpaa to encounter a problem with the mailbox.
I hope to get a help. We use to send and receive messages in order to use the mailbox type 11.
But the program is modified based on fra. Send rman_send_msg once every call, the receiving side will
always, receive 2 mailboxes, I use fpga to send, prove that there is no problem on the receiving side.
The following is my modified xml file and fra partial modifications. I hope you have a busy time to reply.

#if 0
 msg = msg_alloc(RIO_TYPE_DSTR);
 if (!msg) {
 error(0, 0, "msg_alloc failed");
 return;
 }
 msg->len = test_speed.packets_size;
 *(int *)msg->data = i;
 send_time[i] = mfatb();
 rman_send_msg(test_speed_dist_tx->rman_tx, i, msg);
#endif 
 msg = msg_alloc(RIO_TYPE_MBOX);
 if (!msg) {
 error(0, 0, "msg_alloc failed");
 return;
 }
 msg->len = 8;//test_speed.packets_size;
 memcpy(msg->data,data,256);
 rman_send_msg(test_speed_dist_tx->rman_tx, 0, msg);
 printf("send a msg start");

Best Wishes!!!@
Labels (1)
0 Kudos
1 Reply

124 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the following Mailbox transaction type XML configuration.       

<transaction name="dstr-fm1mac10" type="Data-streaming">
                <flowlvl value="0" mask="2"/>
                <cos value="20" mask="0"/>
                <streamid value="0" mask="0x1f"/>
        </transaction>

        <transaction name="mbox-fm0mac1" type="Mailbox">
                <flowlvl value="0" mask="2"/>
                <mbox value="0" mask="0"/>
                <ltr value="0" mask="0" />
                <msglen value="6" mask="1"/>
        </transaction>

0 Kudos