project: ILI9341 open conduit image file

gomer@mercury:~/Downloads$ cksum ILI9341.img.gz
3777262555 1071153266 ILI9341.img.gz
gomer@mercury:~/Downloads$

user: debian password: ILI9341
user: root password: ILI9341

this is a derivative image of the image posted with the desktop clock app. Rather than launch the clock app turnkey, I’ve added a ‘ncat’ (from nmap project, not netcat) step that will facilitate easy access to the PRU conduit which does the SPI protocol to the ILI9341 device. You still need to perform the EULA step described in the ‘motd’ for the debian user. (note the incorrect reference to the ‘turnkey’ application which does not apply to this image)

WART: I lost patience trying to get this image to copy to smaller micro sd card, you will need a 32GB card for BalenaEtcher to work…

this image is set up for local access only, but is easily modified to accept network instructions by replacing the ‘ILI9341’ with your IP in this file ‘/service/ncatILI9341/run’ … NOTE: if you change the file as described below, you will have to use the IP address even for local access from your BBB

<<<< before <<<<
debian@ILI9341:~$ sudo su
root@ILI9341:/home/debian# cd /service
root@ILI9341:/service# cat ncatILI9341/run
#!/bin/sh

O=/var/local/ILI9341.pipe

mknod $O p
exec >> $O
exec ncat -k -l ILI9341 4200
root@ILI9341:/service#
<<<<<<<

<<<<<<< after >>>>>
debian@ILI9341:~$ sudo su
root@ILI9341:/home/debian# cd /service
root@ILI9341:/service# cat ncatILI9341/run
#!/bin/sh

O=/var/local/ILI9341.pipe

mknod $O p
exec >> $O
exec ncat -k -l 192.168.111.109 4200
root@ILI9341:/service#
<<<<<<<<<<<<

above link describes the intermediate ‘language’ used to drive the ILI9341 device

invoke like this:
ncat ILI9341 4200 (local access)
ncat ‘yourIP’ 4200 (network access)

examples:

network access … use your own IP

gomer@hplaptop:~$ ncat 192.168.111.109 4200
20FFFFFF 260001ff 270001ff #white wipe of entire screen
^C
gomer@hplaptop:~$

invoke clock app from local BBB

debian@ILI9341:~$ clock/clock.pl | ncat ILI9341 4200

strange, but interesting exercise

  1. launch the clock app
  2. from another term session, do the white wipe of the whole screen

this demonstrates that ‘ncat’ will accept and intermingle instructions from multiple sessions… let it run for a while, you will see the ‘incremental’ changes from the clock app.

questions and comments welcome
gomer