All of lore.kernel.org
 help / color / mirror / Atom feed
* [Fuego] Regards: Raspberry-pi build deployment scripts
@ 2020-10-16 12:49 Unnati Somvanshi
  2020-11-23 16:18 ` Srivatsan S
  0 siblings, 1 reply; 2+ messages in thread
From: Unnati Somvanshi @ 2020-10-16 12:49 UTC (permalink / raw)
  To: Bird, Tim, fuego


[-- Attachment #1.1: Type: text/plain, Size: 939 bytes --]

Hi Tim,

As discussed at the last meeting I have attached the  RPI build deployment
scripts, Please find the attachment and let us know if you have any
questions regarding the same.

Thanks & Regards
Unnati

-- 






This
message contains confidential information and is intended only 
for the
individual(s) named. If you are not the intended
recipient, you are 
notified that disclosing, copying, distributing or taking any
action in 
reliance on the contents of this mail and attached file/s is strictly
prohibited. Please notify the
sender immediately and delete this e-mail 
from your system. E-mail transmission
cannot be guaranteed to be secured or 
error-free as information could be
intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain
viruses. The sender therefore does 
not accept liability for any errors or
omissions in the contents of this 
message, which arise as a result of e-mail
transmission.

[-- Attachment #1.2: Type: text/html, Size: 1116 bytes --]

[-- Attachment #2: rpi_code_checkout_build.sh --]
[-- Type: application/x-shellscript, Size: 1855 bytes --]

[-- Attachment #3: rpi_post_build.sh --]
[-- Type: application/x-shellscript, Size: 809 bytes --]

[-- Attachment #4: rpi_deploy_verify.sh --]
[-- Type: application/x-shellscript, Size: 1267 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Fuego] Regards: Raspberry-pi build deployment scripts
  2020-10-16 12:49 [Fuego] Regards: Raspberry-pi build deployment scripts Unnati Somvanshi
@ 2020-11-23 16:18 ` Srivatsan S
  0 siblings, 0 replies; 2+ messages in thread
From: Srivatsan S @ 2020-11-23 16:18 UTC (permalink / raw)
  To: Bird, Tim; +Cc: fuego


[-- Attachment #1.1: Type: text/plain, Size: 2168 bytes --]

Tim,

Please find the RPI hardware reboot script attached. This reboot script has
been invoked from rpi_deploy_verify.sh -- after deploying the image onto
the board.

Let us know if you've any queries.

Thanks,
Srivatsan




On Fri, Oct 16, 2020 at 6:27 PM Unnati Somvanshi <
unnati.s@pathpartnertech.com> wrote:

> Hi Tim,
>
> As discussed at the last meeting I have attached the  RPI build deployment
> scripts, Please find the attachment and let us know if you have any
> questions regarding the same.
>
> Thanks & Regards
> Unnati
>
> This message contains confidential information and is intended only for
> the individual(s) named. If you are not the intended recipient, you are
> notified that disclosing, copying, distributing or taking any action in
> reliance on the contents of this mail and attached file/s is strictly
> prohibited. Please notify the sender immediately and delete this e-mail
> from your system. E-mail transmission cannot be guaranteed to be secured or
> error-free as information could be intercepted, corrupted, lost, destroyed,
> arrive late or incomplete, or contain viruses. The sender therefore does
> not accept liability for any errors or omissions in the contents of this
> message, which arise as a result of e-mail transmission.
> _______________________________________________
> Fuego mailing list
> Fuego@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/fuego
>

-- 






This
message contains confidential information and is intended only 
for the
individual(s) named. If you are not the intended
recipient, you are 
notified that disclosing, copying, distributing or taking any
action in 
reliance on the contents of this mail and attached file/s is strictly
prohibited. Please notify the
sender immediately and delete this e-mail 
from your system. E-mail transmission
cannot be guaranteed to be secured or 
error-free as information could be
intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain
viruses. The sender therefore does 
not accept liability for any errors or
omissions in the contents of this 
message, which arise as a result of e-mail
transmission.

[-- Attachment #1.2: Type: text/html, Size: 3024 bytes --]

[-- Attachment #2: rpireboot.py --]
[-- Type: text/x-python, Size: 958 bytes --]

#!/usr/bin/python

import serial
import time

print("Communicating with relay board \n")
serPort = serial.Serial('/dev/ttyUSB0', 9600, timeout=3.0)

def main():
    print(serPort)
    ping()
    print(ping)
    print("Sleeping for 3 secs \n\t")
    time.sleep(3)
    reset()
    print("Closing Serial Port")
    serPort.close()
    
#Check for the relay board by
#sending ping command
def ping():
    print("Ping the relay \n")
    serPort.write(b'\'')
    data = serPort.read()
    print("Data read is :",data)
    print('\n')

#Resetting the RPI board
def reset():
#   print("Resetting the RPI board\n")
#   print("RELAY1_OFF_COMMAND: 0x31\n" )
    OFF = [0x31]
    offdata=bytearray(OFF)
    serPort.write(offdata)
#   print("Wait for 2 secs\n")
    time.sleep(2)
#   print("RELAY1_ON_COMMAND: 0x51\n")
    ON =[0x51]
#   print("usb device turned ON successfully \n")
    ondata=bytearray(ON)
    serPort.write(ondata)

if __name__ == '__main__':
	main()

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-23 16:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-16 12:49 [Fuego] Regards: Raspberry-pi build deployment scripts Unnati Somvanshi
2020-11-23 16:18 ` Srivatsan S

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.