xmos daisy chain talker/listener implementation

Sub forums for various specialist XMOS applications. e.g. USB audio, motor control and robotics.
Bayanaa
Active Member
Posts: 33
Joined: Fri Feb 07, 2014 3:03 pm

xmos daisy chain talker/listener implementation

Post by Bayanaa »

I have two daisy chain boards, lets say first board as DC-1 and second board as DC-2.
DC-1 and DC-2 is connected to each other and DC-1 is connected to computer where linux and openavb is running. Each DC has audio slice kit with 4 audio channels.

here is the xmos demo: https://www.youtube.com/watch?v=DrG4oDxl78Q
I am trying to accomplish what they showed.

I want the configuration like DC-2 as talker and DC-1 as listener/talker and DC-1 listens DC-2's audio channels and send it to DC-1, DC-1 receives those channels and send those channels and its own audio channels to computer view avb ethernet.

Totally it should send 8 channels to computer.
I tried original source code (AVB-Daisy-Chain-Software_1.0.6). But did not get expected results.
Then I changed some part of code in main.xc
main.xc
in this code:

Code: Select all

//
//#if AVB_DEMO_ENABLE_TALKER
//    // AVB Talker - must be on the same tile as the audio interface
//    on tile[0]: avb_1722_talker(c_ptp[PTP_TO_TALKER],
//                                c_mac_tx[MAC_TX_TO_TALKER],
//                                c_talker_ctl[0],
//                                AVB_NUM_SOURCES);
//#endif
    on tile[0]: avb_1722_talkerlistener(c_ptp[PTP_TO_TALKER],
            c_mac_rx[MAC_RX_TO_LISTENER],
                                 c_mac_tx[MAC_TX_TO_TALKER],
                                 c_listener_ctl[0],
                                 c_talker_ctl[0],
                                 c_buf_ctl[0],
                                 AVB_NUM_SINKS,
                                 AVB_NUM_SOURCES);
//#if AVB_DEMO_ENABLE_LISTENER
//    // AVB Listener
//    on tile[0]: avb_1722_listener(c_mac_rx[MAC_RX_TO_LISTENER],
//                                  c_buf_ctl[0],
//                                  null,
//                                  c_listener_ctl[0],
//                                  AVB_NUM_SINKS);
//#endif
I added avb_1722_talkerlistener part instead of individual talker and listener.
But still same problem. computer does not receive 8 channels from two DCs.

Please give me a suggestion.
Thank you.
You do not have the required permissions to view the files attached to this post.


User avatar
larry
Respected Member
Posts: 275
Joined: Fri Mar 12, 2010 6:03 pm

Post by larry »

What if you only stream from one DC board to a host?

Is your host a Mac?
Bayanaa
Active Member
Posts: 33
Joined: Fri Feb 07, 2014 3:03 pm

Post by Bayanaa »

larry wrote:What if you only stream from one DC board to a host?

Is your host a Mac?
I am using linux (ubuntu and openavb).