Ethernet Ethercog issue
BTX
Posts: 674
Hi all !!
I'm trying an UDP reciever with the etherog and UDP socket provided in an OE UDP audio demo.
I've modified some code to get only the UDP reciever (not for audio).
My issue is that in ethercog I can't get broadcast working...and I don't know why.
I'm sending UDP packets from PC using some IP succesuflly ie: to 192.168.1.32, but when I try to send a brodcast packet it never is recieved at the propeller ethernet board.
I used in the ethercog code also a MAC like the least significant bit of the fisrt byte of MAC is active, I've activated the broadcast in the PC sender, I sent to 192.168.1.255 from PC but my board does not respons to it.
What should I consider to get broadcast working on ethercog ??
Have a nice weekend !!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards.
Alberto.
I'm trying an UDP reciever with the etherog and UDP socket provided in an OE UDP audio demo.
I've modified some code to get only the UDP reciever (not for audio).
My issue is that in ethercog I can't get broadcast working...and I don't know why.
I'm sending UDP packets from PC using some IP succesuflly ie: to 192.168.1.32, but when I try to send a brodcast packet it never is recieved at the propeller ethernet board.
I used in the ethercog code also a MAC like the least significant bit of the fisrt byte of MAC is active, I've activated the broadcast in the PC sender, I sent to 192.168.1.255 from PC but my board does not respons to it.
What should I consider to get broadcast working on ethercog ??
Have a nice weekend !!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards.
Alberto.
Comments
To recieve Broadcast packets using the ethercog driver you should add this code:
Also you should define the Broad_IP variable after the Local_IP variable after that, like:
It's working fine recieving UDP packets as unicast and broadcast.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards.
Alberto.
Jonathan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
lonesock
Piranha are people too.
Thx so much !! My best skill is not the progamming.....happy to hear if it is usefull.
I'm using the release zip.
Specifically the udp audio demo from Micah Dowty, downloaded from OE.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards.
Alberto.