Avnu / OpenAvnu

OpenAvnu - an Avnu sponsored repository for Time Sensitive Network (TSN and AVB) technology
462 stars 289 forks source link

alsa_listerner error with ERROR:snd_pcm_recover: Connection timed out #877

Open chuanqima opened 4 years ago

chuanqima commented 4 years ago

Hi,everyone。 At present, my two devices are directly connected. One i210 NIC PC is directly connected to a development board. When I try to play the audio rigtone1.wav file on the development board, I can monitor the audio playback on the PC side (although it is a bit The problem, but it didn't prevent me from successfully testing the avb transmission audio function), but what frustrated me was that when I tried to play the music on the pc, the situation was not what I thought when I was testing the board. The following error occurred on the listening side (development board):

[316667422:078320102 OPENAVB Listener] INFO: Endpoint Configuration requires manual stream configuration on listener [316667422:078362081 OPENAVB Listener] INFO: Listener configured dest_addr is 91:e0:f0:00:99:88 [316667422:078377133 OPENAVB Listener] INFO: Listener configured max_interval_frames = 1, max_frame_size = 1500 [316667422:078394477 OPENAVB Listener] INFO: Starting stream: 6c:b3:11:52:30:53/1 [316667422:080991820 OPENAVB Endpoint] INFO: Statically Configured Streams: [316667422:081011247 OPENAVB Endpoint] INFO: | SR | Destination | ----Max Frame(s)--- | [316667422:081024893 OPENAVB Endpoint] INFO: Role | Stream Id | Class | Address | Size | Per Interval | [316667422:081041872 OPENAVB Endpoint] INFO: Listener | 6c:b3:11:52:30:53 - 1 | - | --:--:--:--:--:-- | -- | -- | [316667422:152512445 OPENAVB Raw Socket] INFO: Using pcap implementation [316667442:791039104 OPENAVB ALSA Interface] ERROR: snd_pcm_writei: Connection timed out [316667442:791175823 OPENAVB ALSA Interface] ERROR: snd_pcm_recover: Connection timed out [316667447:791052852 OPENAVB ALSA Interface] WARNING: Not all pcm data consumed written:768 consumed:4294967076 [316667447:791566967 OPENAVB Media Queue] INFO: Purging stale MediaQ items: delta:-1411291us maxStale-1000000us [316667452:801147329 OPENAVB ALSA Interface] ERROR: snd_pcm_writei: Connection timed out [316667452:801247277 OPENAVB ALSA Interface] ERROR: snd_pcm_recover: Connection timed out [316667457:801296234 OPENAVB ALSA Interface] WARNING: Not all pcm data consumed written:768 consumed:4294967076 [316667462:811091701 OPENAVB ALSA Interface] ERROR: snd_pcm_writei: Connection timed out [316667462:811130451 OPENAVB ALSA Interface] ERROR: snd_pcm_recover: Connection timed out #################################################

61883-6 talker

    sudo ./openavb_harness -I enp1s0 wav_file_talker.ini,intf_nv_file_name=ringtone1.wav

61883-6 listener

    sudo ./openavb_harness -I enp1s0 -a 6c:b3:11:52:30:53 alsa_listener.ini

Look forward to your reply, thank you.