restart computer from USB port

Status
Not open for further replies.

moahmed ragab

Newbie level 4
Joined
Jul 15, 2013
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
38
hello All,
Kindly find below:
i want to restart computer from USB port via pic 18f4550 program
Best Regards,
Mohamed Ragab
 

hello All,
Kindly find below:
i want to restart computer from USB port via pic 18f4550 program
Best Regards,
Mohamed Ragab

You would need a PC side application that would respond to the 18F4550 data. It occurs in ping-pong style buffer refresh, the endpoints (take as arrays) gets updated at both the micro and PC side. Your application should read specific data being sent by the 18F4550 and then respond accordingly.

In VB.net this can be done in a few ways:

Use of the shutdown command via shell,
Use of System.Diagnostics.Process.Start("ShutDown", "/r") r stands for restart
By calling ExitWindowsEx API
 

One of option is to use shutdown tool previously mentioned but with /r /f parameters. With this tool you can even shutdown or restart PC over LAN, also Wake On LAN as reverse procedure for starting can be done with additional things.


Best regards,
Peter
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…