Dear;
We are using pfe1. Could you please help check whether there is any problem with the configuration of pfe1?
The contents of testudp.py are as follows:
import socket
# Create UDP Socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
# If SO_BROADCAST is set to True, the broadcast function is enabled
sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
# Define the destination IP address and port number
#target_ip = '255.255.255.255' # The default broadcast address is used here
target_ip = '255.255.255.255' # The default broadcast address is used here
port = 5432
# Construct the data to be sent
message = b"Hello, World!"
try:
#Send broadcast messag
sock.sendto(message, (target_ip, port))
except Exception as e:
print("Error occurred while sending broadcast message:", str(e))
finally:
# Close Socket
print("sending broadcast message successful and close")
sock.close()
The dmesg log of pfe1 is as follows (see the attached log).:
root@s32g274acicvd2:~# dmesg | grep pfe1
[ 8.719350] pfeng 46000000.pfe: netif name: pfe1
[ 8.719368] pfeng 46000000.pfe: netif(pfe1) mode: std
[ 8.719375] pfeng 46000000.pfe: netif(pfe1) EMAC: 1
[ 8.719384] pfeng 46000000.pfe: netif(pfe1) HIFs: count 1 map 02
[ 8.802388] pfeng 46000000.pfe pfe1: registered
[ 8.802404] pfeng 46000000.pfe pfe1: Subscribe to HIF1
[ 8.802847] pfeng 46000000.pfe pfe1: Enable HIF1
[ 8.803029] pfeng 46000000.pfe pfe1: setting MAC addr: 00:01:be:be:ef:22
[ 8.803064] pfeng 46000000.pfe pfe1: PTP HW addend 0x80000000, max_adj configured to 46566128 ppb
[ 8.803688] pfeng 46000000.pfe pfe1: Registered PTP HW clock successfully on EMAC1
[ 8.826586] pfeng 46000000.pfe: Logical interface s8.pfe1 created in emac1
[ 8.837868] pfeng 46000000.pfe: New match rules 0x40000400 set to s8.pfe1
[ 18.737305] pfeng 46000000.pfe pfe1: configuring for fixed/rgmii-id link mode
[ 18.737561] pfeng 46000000.pfe pfe1: Link is Up - 1Gbps/Full - flow control off
[ 18.737831] IPv6: ADDRCONF(NETDEV_CHANGE): pfe1: link becomes ready
[ 20.108322] device pfe1 entered promiscuous mode
[ 24.634016] pfeng 46000000.pfe pfe1: Link is Down
[ 24.639302] pfeng 46000000.pfe pfe1: setting MAC addr: 02:9a:cd:00:00:01
[ 24.644103] pfeng 46000000.pfe pfe1: configuring for fixed/rgmii-id link mode
[ 24.644400] pfeng 46000000.pfe pfe1: Link is Up - 1Gbps/Full - flow control off
[ 25.639644] IPv6: ADDRCONF(NETDEV_CHANGE): pfe1: link becomes ready
Thank you!
Best Regards!