Home AMX User Forum AMX Technical Discussion

Problem with Wake On Lan

Hi Guys,
I would like to wake up a computer wtih NI-3100. And I read the forum and found the method. Unfortunately, I am still not success.
DEFINE_FUNCTION WAKE_ON_LAN ()
LOCAL_VAR INTEGER CLIENT_TCPPORT
LOCAL_VAR CHAR CLIENT_IP[15]
LOCAL_VAR CHAR MAC_ADDRESS [6]
LOCAL_VAR DEV dvCLIENT
{
DVCLIENT = dvWOL
CLIENT_IP ='192.168.2.254'
CLIENT_TCPPORT = 9
MAC_ADDRESS = "$11,$22,$33,$44,$55,$66"
IF (WOL_ONLINE != 1)
{
IP_CLIENT_OPEN(dvCLIENT.PORT,CLIENT_IP,CLIENT_TCPPORT,IP_UDP)
}

WAIT_UNTIL (WOL_ONLINE = 1)
{
SEND_STRINGdvWOL, "$FF,$FF,$FF,$FF,$FF,$FF,
MAC_ADDRESS,MAC_ADDRESS,MAC_ADDRESS,MAC_ADDRESS,MAC_ADDRESS,
MAC_ADDRESS,MAC_ADDRESS,MAC_ADDRESS,MAC_ADDRESS,MAC_ADDRESS,
MAC_ADDRESS,MAC_ADDRESS,MAC_ADDRESS,MAC_ADDRESS,MAC_ADDRESS,
MAC_ADDRESS"
IP_CLIENT_CLOSE(dvCLIENT.PORT)
}
}


ANY EXPERT CAN HELP ME ?????
Sign In or Register to comment.