Page 3 of 8

Re: pi-top utilities

Posted: Mon Sep 10, 2018 12:00 am
by Vanfanel
@Jon: I have tried the BASIC script and when I run it I simply get a window with the messages:
Press ESC to quit

Press SPACE or click mouse to continue

And that's all. Back to the desktop.

Could you please add an option to map the middle button on the right button? After all, there's not much use for the right button...

Also, *ReadEDID is not available here. I haven't been able to find how to read EDID info from risc os commandline.

Re: pi-top utilities

Posted: Mon Sep 10, 2018 8:50 am
by JonAbbott
Vanfanel wrote: Mon Sep 10, 2018 12:00 am @Jon: I have tried the BASIC script and when I run it I simply get a window with the messages:
Press ESC to quit

Press SPACE or click mouse to continue

And that's all. Back to the desktop.
It didn't find the keyboard , I need to see the result of:
JonAbbott wrote: Fri Sep 07, 2018 7:32 am <snip> find out what the USB device ID is for the keyboard. Off the top of my head, "*SHOW USB*" lists the USB devices. Just list all of them here if you're not sure which one it is.

Re: pi-top utilities

Posted: Mon Sep 10, 2018 7:35 pm
by Vanfanel
@Jon: These are the results of *SHOW USB*:

https://www.dropbox.com/s/k9lyt6fr22cf9 ... 202558.jpg

Re: pi-top utilities

Posted: Mon Sep 10, 2018 8:04 pm
by JonAbbott
I can't make it out, it's out of focus; all I can tell is your keyboard device ID doesn't look like it matches the one in my pi-top.

Modify the USB$Device string in the BASIC code until you see events from pressing keys, I'll then need the USB string and the output from pressing both pi-top keys individually.

Re: pi-top utilities

Posted: Mon Sep 10, 2018 8:52 pm
by Vanfanel
@Jon: My keyb ID seems to be USB$DEVICE_FF_00_FF_0424_7800_*
So I put that on the script, instead of the string it was looking for (your keyb ID I guess), and now all I get when I run the script is a window with the message "Press ESC to quit"
If I run the script again without rebooting, I also get "Endpoind in use" in that window.

Pressing the PiTop key (I only have one on the right of the space bar, just after ALT) nothing happens.

Re: pi-top utilities

Posted: Tue Sep 11, 2018 5:41 am
by JonAbbott
Vanfanel wrote: Mon Sep 10, 2018 8:52 pm @Jon: My keyb ID seems to be USB$DEVICE_FF_00_FF_0424_7800_*
That's the LAN. It's more than likely the first USB device listed - I can't quite make it out in the photo, but it's possibly 00_00_00_239D_6099 ?

You'll know when you have the right one as pressing any key will produce an 8 digit output.

Re: pi-top utilities

Posted: Fri Sep 14, 2018 7:34 pm
by Vanfanel
@Jon: Tried the first device ID. It IS the pitop keyboard for sure, because it ONLY appears when the pitop keyboard is connected to the Pi.
However, what the script does in that case is locking the keyboard: it does not respond anymore (the machine is not locked, I can see the blinking cursor) so I have to reboot the hard way.

Re: pi-top utilities

Posted: Fri Sep 14, 2018 9:56 pm
by JonAbbott
Vanfanel wrote: Fri Sep 14, 2018 7:34 pm what the script does in that case is locking the keyboard: it does not respond anymore (the machine is not locked, I can see the blinking cursor) so I have to reboot the hard way.
It takes over the USB data stream and displays the data coming from the keyboard. ESC should terminate it and pressing any other key should display eight bytes.

If you're not seeing eight bytes, the endpoint is possibly wrong. List the USB devices to a text file with

Code: Select all

*SHOW USB* { > $.textfile }
and paste it here so I can see what the VID, PID and endpoints are.

Re: pi-top utilities

Posted: Sat Sep 15, 2018 8:09 pm
by Vanfanel
@Jon: Here's the result of *SHOW USB* directly sent to a text file:

Code: Select all

USB$Device_00_00_00_258A_6A88_-1_-1_0100_USB4 : 4

USB$Device_09_00_01_0000_0000_-1_-1_0100_USB1 : 1

USB$Device_09_00_02_0424_2514_-1_-1_0BB3_USB2 : 2

USB$Device_09_00_02_0424_2514_-1_-1_0BB3_USB3 : 3

USB$Device_FF_00_FF_0424_7800_-1_-1_0300_USB5 : 5

USB$Device_FF_00_FF_0424_7800_01_00_0300_USB5 : 5 0 0

USB1$Path(Macro) : devices#<FileSwitch$SpecialField>:$.USB1.

USB2$Path(Macro) : devices#<FileSwitch$SpecialField>:$.USB2.

USB3$Path(Macro) : devices#<FileSwitch$SpecialField>:$.USB3.

USB4$Path(Macro) : devices#<FileSwitch$SpecialField>:$.USB4.

USB5$Path(Macro) : devices#<FileSwitch$SpecialField>:$.USB5.
Other problem is that, when pitop-utils is loaded, trying to access an USB pendrive locks the machine.

Re: pi-top utilities

Posted: Sun Sep 16, 2018 7:18 am
by JonAbbott
Can you please post the USBDescriptors output for USB$Device_00_00_00_258A_6A88_-1_-1_0100_USB4, which will be the "Device USB4" section.

Comment out the pitopUtils Module RMLoad line and see if it still locks when you access USB storage.