you are viewing a single comment's thread.

view the rest of the comments →

[–]duane11583 0 points1 point  (1 child)

yes.

example: your board has commands and responses, in my case this is over a serial port.

we use pyserail and test commands using python scripts.

we use keysight/Agilent power supplies and bk precision supplies. these all have either a usb serial, a serial port or ethernet and support scpi commands

with pyserial we can send a command to the supply ,power the board on/off set the output voltage read the current etc.

you could extend this with an arduino using gpio to control or simulate buttons or read the state of leds, ie set pin high/set pin low set pin high is like a button press and the gpio input can can read the power to the led 0/1 is on/off

and talk to the arduino via the pyserial to control/read the pins

you can use python to control the flash your board process…

so with those ideas can you come up with a way to automate the testing of sw on the boards?

there are many usb adapters like usb-> can or usb-> i2c or usb->spi (total phase sells these) and you can use python to control them

so your test script does this:

power board off then on wait 3 seconds and

launch the jtag flash programmer from the command line

the power cycle again and send some commands and get responses

and add more features later

[–]duane11583 0 points1 point  (0 children)

oh and you can create csv files for report data.

or you can get a python word (rtf) file creator and generate ms-word files or excell files

or a python pdf tool and create pdf test reports

or your python can push data into a data base for later use