Avnu / OpenAvnu

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

simple TALKER & LISTENER #150

Open mrfmelvin93 opened 9 years ago

mrfmelvin93 commented 9 years ago

step1: i executed the gptp daemon in system 1:

" Using clock device: /dev/ptp0 Starting PDelay *\ Announce Timeout Expired - Becoming Master"

step2: executed mrpd daemon

"./mrpd -mvs -i rename3 [sudo] password for sysadmin: process_events()"

step 3: simple talker

sudo ./simple_talker -t 2 -i rename3 attaching to 0000:04:00.0 attach failed! (No such file or directory) connect failed (No such file or directory) - are you running as root?

why am i getting like this ??

when i used ethtool command i got the following

"ethtool -i rename3"

driver: igb version: 5.0.5-k firmware-version: 2.30, 0x80000166 bus-info: 0000:04:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: no

in other system when i execute the talker it asks for the

" simple_listener [-h] -i interface -f file_name.wav" please give me a example for executing the above

i put it as

./simple_listener -h -i rename3 mel.wav

*rename3 is my ethernet i210 NIC cards name

please guide...!!

jbmaillet commented 9 years ago

Not sure this is the problem, but your ethtool info show something wrong: "driver: igb". Try something like (as root of course): rmmod igb insmod kmod/igb/igb_avb.ko

mrfmelvin93 commented 9 years ago

@jbmaillet you are right once i used travis.sh in open-avb-next all preoblems resolved now the driver is igb_avb

driver: igb_avb version: 5.0.6_AVB firmware-version: 2.30, 0x80000166 bus-info: 0000:03:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: no sysadmin@Satshore1Pc046:~$

mrfmelvin93 commented 9 years ago

when i try to remove the igb driver by "rmmod igb" and again when i try to install from "insmod kmod/igb/igb_avb.ko" it says the " file exists"

after when i check for driver infro from "ifconfig" i couldn find the i210 driver there.. is it a problem ??

tell me how to install.. Thank you in advance...

intel-ethernet commented 9 years ago

Try ‘rmmod igb_avb’ then try insmod’ing again …

From: melvin francis [mailto:notifications@github.com] Sent: Wednesday, November 19, 2014 1:28 AM To: AVnu/Open-AVB Subject: Re: [Open-AVB] simple TALKER & LISTENER (#150)

when i try to remove the igb driver by "rmmod igb" and again when i try to install from "insmod kmod/igb/igb_avb.ko" it says the " file exists"

after when i check for driver infro from "ifconfig" i couldn find the i210 driver there.. is it a problem ??

tell me how to install.. Thank you in advance...

— Reply to this email directly or view it on GitHubhttps://github.com/AVnu/Open-AVB/issues/150#issuecomment-63612523.

mrfmelvin93 commented 9 years ago

@intel-ethernet i got it working thanks...!!

@jbmaillet @pinealservo @intel-ethernet when I start my gptp i get the error as :

ERROR at 677 in ../../common/ieee1588port.cpp: Error (TX) timestamping PDelay request, error=-72
Invalid TX ERROR at 677 in ../../common/ieee1588port.cpp: Error (TX) timestamping PDelay request, error=-72

the master and slave does not assigns automatically.

also when I run the mrpd daemon: i get it as

process events() *but I get in the talker as unhandled by mrpd

but both systems does not communicate.

for "dmesg" I get it as ( avb to avb):

[ 408.674499] igb_avb 0000:03:00.0 eth0: igb: eth0 NIC Link is Down

for "demsg" (avb to normal ethernet):

[ 266.679553] igb_avb 0000:03:00.0 eth0: igb: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX

mrfmelvin93 commented 9 years ago

GUYS I rectified all the above mistakes it was because I didn use a switch in between them. I connected the ethernet cable directly PC to PC withou any switch and once I used the switch all the daeomns and examples worked seamlessly.

  1. i210 <--->switch<--->i210 (hardware connections) 2.gptp demon (assigns slave and master) 3.mrpd daemon ( process events() ) 4.simlple_taker in master 5.simple_listener in slave 6.audio file is created on the file name given. 7.beep sound keeps on transmittig till the listener is aborted with ctrl+c

guys is it possible to transmit any custom music file or video through this ???

jbmaillet commented 9 years ago

On 11/21/2014 12:07 PM, melvin francis wrote:

GUYS I rectified all the above mistakes it was because I didn use a switch in between them. I connected the ethernet cable directly PC to PC withou any switch and once I used the switch all the daeomns and examples worked seamlessly.

  1. i210 <--->switch<--->i210 (hardware connections) 2.gptp demon (assigns slave and master) 3.mrpd daemon ( process events() ) 4.simlple_taker in master 5.simple_listener in slave 6.audio file is created on the file name given. 7.beep sound keeps on transmittig till the listener is aborted with ctrl+c

guys is it possible to transmit any custom music file or video through this ???

This is doable using the live stream endpoints:

https://github.com/AVnu/Open-AVB/tree/open-avb-next/examples/live_stream

It's then a matter of feeding the talker and process the output of the listener with the right matching data. The readme provide an example with some gstreamer pipes.

Note: The 1722 payload header will still be hardcoded as if it still was IEC 61883-6 audio data, so a wireshark capture will spuriously (or rightfully according to your mood) show this paylod as "corrupted".

JB

zeefpt commented 7 years ago

HI folks ,

Can you put the example you use for streaming audio/video using simple_talker and live_stream talker or a static sample music/video ?

Im trying to use gstreamer-1.0 to livestream the example but with not sucess.!

Regards,

vidyamansur commented 7 years ago

Hi,

when I ethtool -i eth0, I get the following output.

driver: e1000 version: 7.3.21-k8-NAPI firmware-version: bus-info: 0000:02:01.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: no I have modprobe the igb_avb. I am able to see it when lsmod and modinfo. Also ran the travis.sh script. However the driver is still e1000, how do I change it to igb_avb? I have been working on this for 3 days no luck. Any help will be highly appreciated. I have an AVB enabled switch connecting the two PC.