<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">On Jan 21, 2015, at 8:57 AM, Maurizio Iacaruso <<a href="mailto:maurizio.iacaruso@gmail.com">maurizio.iacaruso@gmail.com</a>> wrote:<br><div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">I see the raspberry documentation in order to understand if it’s possible “replicate” an USB signal to GPIO.<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">So, with a TTL-USB cable I send the signal to the NVR.<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">I hope this is possible!</span></div></blockquote></div><div><br></div><div>Possible, but not recommended. (You would probably need to add a USB host chip - USB is a synchronous protocol, so the GPIO timing would need to be very precise.)</div><div><br></div><div>Is there any way you can send a HTTP request to the NVR to tell it to shut down? With the UPS monitored by NUT, you could launch that via an upsmon NOTIFYCMD.</div><div><br></div><div><a href="http://www.networkupstools.org/docs/man/upsmon.conf.html">http://www.networkupstools.org/docs/man/upsmon.conf.html</a></div><div><br></div><div apple-content-edited="true">
-- <br>- Charles Lepple<br><a href="http://ghz.cc/charles/">http://ghz.cc/charles/</a><br></div><div apple-content-edited="true"><br></div>

<br></body></html>