Keyboard with Photon on embedded system

Hi all,

I want to have keyboard support in Photon on an embedded system.
So we don’t use the ph skript, instead we start everything in an own script.
Until now we had a touchscreen working fine, now we want the keyboard.

The startup procedure is as follows (I omitted the sleeps):

Dev
Dev.con -n 1 -H <========== This is the new entry
Dev.ser -xxxx …
phlib_s11
Photon
phfontall
xxxbios.ms -xxxxx …
Pg.xxx …
Input kbd fd -d/dev/kbd <====== Before it was xtouch fd -d/dev/ser2
pwm -h -W -S

If I run it like above, photon starts and screen gets black.

If I omit the Dev.con line, everything works fine, but of course I have no
keyboard.

What is missing or wrong??

Thanks,

Stefan

Stefan Kuehbauch <Stefan.Kuehbauch@wincor-nixdorf.com> wrote:

I want to have keyboard support in Photon on an embedded system.
So we don’t use the ph skript, instead we start everything in an own script.
Until now we had a touchscreen working fine, now we want the keyboard.

The startup procedure is as follows (I omitted the sleeps):

Dev
Dev.con -n 1 -H <========== This is the new entry
Dev.ser -xxxx …
phlib_s11
Photon
phfontall
xxxbios.ms -xxxxx …
Pg.xxx …
Input kbd fd -d/dev/kbd <====== Before it was xtouch fd -d/dev/ser2
pwm -h -W -S

If I run it like above, photon starts and screen gets black.

If I omit the Dev.con line, everything works fine, but of course I have no
keyboard.

What is missing or wrong??

I’m not sure, but here are some suggestions…

What if you run it like this:

Input kbd fd -d/dev/kbd xtouch fd -d/dev/ser2

This could at least give you some way of shutting Photon down
without resorting to

Is the console active underneath Photon? In other words, if you type
in commands blind (i.e. slay -9 Photon), does anything work?

Can you text mode ditto in while this is happening to see if any
error messages are being printed on the text console?

The screen goes black because it is waiting on the Input to complete. It
appears that this Input command string is the problem. Is there something
unique about the keyboard controller on this embedded system? That is
the source of your problem. I would investigate the Input command options
more and get specifics on the keyboard controller.

Ivan.

<pete@qnx.com> wrote in message news:8om8t3$ete$1@nntp.qnx.com

Stefan Kuehbauch <> Stefan.Kuehbauch@wincor-nixdorf.com> > wrote:

I want to have keyboard support in Photon on an embedded system.
So we don’t use the ph skript, instead we start everything in an own
script.
Until now we had a touchscreen working fine, now we want the keyboard.

The startup procedure is as follows (I omitted the sleeps):

Dev
Dev.con -n 1 -H <========== This is the new entry
Dev.ser -xxxx …
phlib_s11
Photon
phfontall
xxxbios.ms -xxxxx …
Pg.xxx …
Input kbd fd -d/dev/kbd <====== Before it was xtouch
fd -d/dev/ser2
pwm -h -W -S

If I run it like above, photon starts and screen gets black.

If I omit the Dev.con line, everything works fine, but of course I have
no
keyboard.

What is missing or wrong??

I’m not sure, but here are some suggestions…

What if you run it like this:

Input kbd fd -d/dev/kbd xtouch fd -d/dev/ser2

This could at least give you some way of shutting Photon down
without resorting to <BKSP

Is the console active underneath Photon? In other words, if you type
in commands blind (i.e. slay -9 Photon), does anything work?

Can you text mode ditto in while this is happening to see if any
error messages are being printed on the text console?