Based on the Qt5 webkit2/ B2G work on AM335x, an effort is made to run Python based PRU control from within a browser (for js support).
- Unable to get brython to load pypruss module (.so) as it looks only for .js files. This seems to be a limitation of brython.
- Unable to get PRU basic examples to run, as no interrupt seems to
occur from PRU, even with normal Python run. This must be a solvable
problem as there are examples out there in the wild, confirmed working.
Minor patches over pypruss are available at,
- Qt5 Webkit2 (Refer http://www.gpupowered.org/node/15), or B2G browser
- AM335x platform - either EVM/SK/ or Beaglebone
Kernel compiled with below options
- pypruss package from
5. Brython package from
How to run:
After ensuring regular run via Python invocation works, try it on browser.
Place all the required files (.bin, .so) in same folder of Brython.
$$ cd Brython
$$ QtTestBrowser -platform minimalegl ./pru-test.html