Author Topic: GH60 prototype betatesting [Call for layouts, GUI testing]  (Read 185176 times)

0 Members and 1 Guest are viewing this topic.

Offline Nask

  • Posts: 93
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #350 on: Mon, 18 March 2013, 09:05:40 »
Hehe, I knew I should have bought one.
Keyboards: IBM SSK | Noppoo Choc Mini MX-Blue | PLU ML-87 MX-Brown | CM QFR Mx-Red | CM Novatouch

Offline hasu

  • Posts: 3472
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #351 on: Mon, 18 March 2013, 09:19:41 »
I got same error on Windows7 64bit as Glissant when I tried to program the device.

But I got different error with code change of ukbdc_lib/ukbdc.py.
Code: [Select]
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python33\lib\tkinter\__init__.py", line 1442, in __call__
    return self.func(*args)
  File "C:\Users\noname\Desktop\ukbdc_gui\gui.py", line 757, in <lambda>
    command = lambda: command("program"),
  File "C:\Users\noname\Desktop\ukbdc_gui\gui.py", line 664, in on_menu_action
    u.attach()
  File "C:\Users\noname\Desktop\ukbdc_gui\ukbdc_lib\ukbdc.py", line 132, in atta
ch
    config = self.dev[0]
  File "C:\Users\noname\Desktop\ukbdc_gui\usb\core.py", line 727, in __getitem__

    return Configuration(self, index)
  File "C:\Users\noname\Desktop\ukbdc_gui\usb\core.py", line 419, in __init__
    configuration
  File "C:\Users\noname\Desktop\ukbdc_gui\usb\backend\libusb01.py", line 408, in
 get_configuration_descriptor
    return dev.config[config]
ValueError: NULL pointer access

Offline jdcarpe

  • * Curator
  • Posts: 8852
  • Location: Odessa, TX
  • Live long, and prosper.
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #352 on: Mon, 18 March 2013, 09:42:57 »
Please, anyone with windows 7 or older wants to test?

I will test it. I have Win7 32-bit

Code: [Select]
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\Jonathan Carpenter\Downloads\ukbdc_gui\ukbdc_lib\ukbdc.py", lin
e 129, in attach
    usb.util.claim_interface(self.dev, self.interface)
  File "C:\Users\Jonathan Carpenter\Downloads\ukbdc_gui\usb\util.py", line 191,
in claim_interface
    device._ctx.managed_claim_interface(device, interface)
  File "C:\Users\Jonathan Carpenter\Downloads\ukbdc_gui\usb\core.py", line 112,
in managed_claim_interface
    self.backend.claim_interface(self.handle, i)
  File "C:\Users\Jonathan Carpenter\Downloads\ukbdc_gui\usb\backend\libusb01.py"
, line 462, in claim_interface
    _check(_lib.usb_claim_interface(dev_handle, intf))
  File "C:\Users\Jonathan Carpenter\Downloads\ukbdc_gui\usb\backend\libusb01.py"
, line 384, in _check
    raise USBError(errmsg, ret)
usb.core.USBError: [Errno None] b'usb_claim_interface: could not claim interface
 1, invalid configuration 0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Python33\lib\tkinter\__init__.py", line 1442, in __call__
    return self.func(*args)
  File "C:\Users\Jonathan Carpenter\Downloads\ukbdc_gui\gui.py", line 757, in <l
ambda>
    command = lambda: command("program"),
  File "C:\Users\Jonathan Carpenter\Downloads\ukbdc_gui\gui.py", line 664, in on
_menu_action
    u.attach()
  File "C:\Users\Jonathan Carpenter\Downloads\ukbdc_gui\ukbdc_lib\ukbdc.py", lin
e 131, in attach
    self.dev.detach_kernel_driver(self.interface)
  File "C:\Users\Jonathan Carpenter\Downloads\ukbdc_gui\usb\core.py", line 712,
in detach_kernel_driver
    self._ctx.backend.detach_kernel_driver(self._ctx.handle, interface)
  File "C:\Users\Jonathan Carpenter\Downloads\ukbdc_gui\usb\backend\libusb01.py"
, line 546, in detach_kernel_driver
    _check(_lib.usb_detach_kernel_driver_np(dev_handle, intf))
  File "C:\Python33\lib\ctypes\__init__.py", line 366, in __getattr__
    func = self.__getitem__(name)
  File "C:\Python33\lib\ctypes\__init__.py", line 371, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'usb_detach_kernel_driver_np' not found

Okay, changed line 131 like you asked Glissant to "pass"

and got the same error as hasu got

Code: [Select]
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python33\lib\tkinter\__init__.py", line 1442, in __call__
    return self.func(*args)
  File "C:\Users\Jonathan Carpenter\Downloads\ukbdc_gui\gui.py", line 757, in <l
ambda>
    command = lambda: command("program"),
  File "C:\Users\Jonathan Carpenter\Downloads\ukbdc_gui\gui.py", line 664, in on
_menu_action
    u.attach()
  File "C:\Users\Jonathan Carpenter\Downloads\ukbdc_gui\ukbdc_lib\ukbdc.py", lin
e 132, in attach
    config = self.dev[0]
  File "C:\Users\Jonathan Carpenter\Downloads\ukbdc_gui\usb\core.py", line 727,
in __getitem__
    return Configuration(self, index)
  File "C:\Users\Jonathan Carpenter\Downloads\ukbdc_gui\usb\core.py", line 419,
in __init__
    configuration
  File "C:\Users\Jonathan Carpenter\Downloads\ukbdc_gui\usb\backend\libusb01.py"
, line 408, in get_configuration_descriptor
    return dev.config[config]
ValueError: NULL pointer access
« Last Edit: Mon, 18 March 2013, 10:06:38 by jdcarpe »
KMAC :: LZ-GH :: WASD CODE :: WASD v2 :: GH60 :: Alps64 :: JD45 :: IBM Model M :: IBM 4704 "Pingmaster"

http://jd40.info :: http://jd45.info


in memoriam

"When I was a kid, I used to take things apart and never put them back together."

Offline komar007

  • Thread Starter
  • Posts: 712
  • Location: Poland
    • komar's blog
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #353 on: Mon, 18 March 2013, 10:11:09 »
Come on, why are all these errors different? Crazy
It works for me on windows 7 32-bit...
Is GH60 (Interface 1) visible under libusb-win32 devices in Device Manager?


EDIT: okay, I'll download windows 8...
« Last Edit: Mon, 18 March 2013, 10:17:22 by komar007 »
GH60 rev. B w/ ali's case|Cherry G80-3000 HFU/05|IBM Model M (51G8572)
Check out the GH60 project! | How to make a keyboard

Offline jdcarpe

  • * Curator
  • Posts: 8852
  • Location: Odessa, TX
  • Live long, and prosper.
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #354 on: Mon, 18 March 2013, 10:19:58 »
Come on, why are all these errors different? Crazy
It works for me on windows 7 32-bit...
Is GH60 (Interface 1) visible under libusb-win32 devices in Device Manager?


EDIT: okay, I'll download windows 8...

Well, my error code validates hasu's :)

Here's my Device Manager:

KMAC :: LZ-GH :: WASD CODE :: WASD v2 :: GH60 :: Alps64 :: JD45 :: IBM Model M :: IBM 4704 "Pingmaster"

http://jd40.info :: http://jd45.info


in memoriam

"When I was a kid, I used to take things apart and never put them back together."

Offline komar007

  • Thread Starter
  • Posts: 712
  • Location: Poland
    • komar's blog
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #355 on: Mon, 18 March 2013, 10:22:31 »
Come on, why are all these errors different? Crazy
It works for me on windows 7 32-bit...
Is GH60 (Interface 1) visible under libusb-win32 devices in Device Manager?


EDIT: okay, I'll download windows 8...

Well, my error code validates hasu's :)

Here's my Device Manager:

Show Image


This doesn't seem correct, please run inf-wizard again and reinstall the libusb driver.


You should get something like this:
« Last Edit: Mon, 18 March 2013, 10:25:32 by komar007 »
GH60 rev. B w/ ali's case|Cherry G80-3000 HFU/05|IBM Model M (51G8572)
Check out the GH60 project! | How to make a keyboard

Offline jdcarpe

  • * Curator
  • Posts: 8852
  • Location: Odessa, TX
  • Live long, and prosper.
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #356 on: Mon, 18 March 2013, 10:30:16 »
Hmmm...reinstalled and got the same result.

KMAC :: LZ-GH :: WASD CODE :: WASD v2 :: GH60 :: Alps64 :: JD45 :: IBM Model M :: IBM 4704 "Pingmaster"

http://jd40.info :: http://jd45.info


in memoriam

"When I was a kid, I used to take things apart and never put them back together."

Offline hasu

  • Posts: 3472
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #357 on: Mon, 18 March 2013, 10:30:55 »
I have GH60 (Interface 1) under LibUSB-Win32 Devices.


Offline jdcarpe

  • * Curator
  • Posts: 8852
  • Location: Odessa, TX
  • Live long, and prosper.
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #358 on: Mon, 18 March 2013, 10:36:18 »
I have Flip installed, if that matters.
KMAC :: LZ-GH :: WASD CODE :: WASD v2 :: GH60 :: Alps64 :: JD45 :: IBM Model M :: IBM 4704 "Pingmaster"

http://jd40.info :: http://jd45.info


in memoriam

"When I was a kid, I used to take things apart and never put them back together."

Offline komar007

  • Thread Starter
  • Posts: 712
  • Location: Poland
    • komar's blog
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #359 on: Mon, 18 March 2013, 10:39:19 »
I think I have it too. I don't understand how my windows differs from yours...:/
GH60 rev. B w/ ali's case|Cherry G80-3000 HFU/05|IBM Model M (51G8572)
Check out the GH60 project! | How to make a keyboard

Offline Glissant

  • Posts: 1976
  • Location: Oslo, Norway
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #360 on: Mon, 18 March 2013, 12:42:25 »
I spent some time today trying a couple of libusb fixes that were used for win7, but nothing changed the error messages that I get. I'm still testing the gui in win 8. Interface 1 shows under libusb-win32 devices in device manager.
I will spend some time now testing this stuff on my father's windows seven machine. I'll come back with a response in a bit.


I changed my rshift to a 1x and short shift, so now I am wondering how I can program the new 1x. The rshift is working just fine =). (I really want to do 1.5 - 1 - 1.5 - 7 - 1.5 - 1 - 1.5, but I need a stabilizer wire for my 7x spacebar.
16014-0
« Last Edit: Mon, 18 March 2013, 12:45:16 by Glissant »

Offline komar007

  • Thread Starter
  • Posts: 712
  • Location: Poland
    • komar's blog
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #361 on: Mon, 18 March 2013, 13:06:21 »

I changed my rshift to a 1x and short shift, so now I am wondering how I can program the new 1x. The rshift is working just fine =). (I really want to do 1.5 - 1 - 1.5 - 7 - 1.5 - 1 - 1.5, but I need a stabilizer wire for my 7x spacebar.
(Attachment Link)
You have to change gh60.xml accordingly. Add the key definition for your extra key (the number for this key is 54) - add it where it says "here goes extra \"fn\" key after or befor rshift". You'll also need to change the size of shift (number 55) to 14 x 8. (the units used are 1/8th of the side length of a 1x key)
« Last Edit: Mon, 18 March 2013, 13:08:03 by komar007 »
GH60 rev. B w/ ali's case|Cherry G80-3000 HFU/05|IBM Model M (51G8572)
Check out the GH60 project! | How to make a keyboard

Offline mkawa

  •  No Marketplace Access
  • Posts: 6562
  • (ツ)@@@. crankypants
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #362 on: Mon, 18 March 2013, 14:35:30 »
we have a new development volunteer who will looking at and hopefully look at some of these issues in the front-end. his board is on its way to him right now. hopefully he will introduce himself in the thread ;)

to all the brilliant friends who have left us, and all the students who climb on their shoulders.

Offline jdcarpe

  • * Curator
  • Posts: 8852
  • Location: Odessa, TX
  • Live long, and prosper.
GH60 prototype betatesting [Please test the GUI]
« Reply #363 on: Mon, 18 March 2013, 14:48:10 »
Mr. E. Kawa strikes again!
KMAC :: LZ-GH :: WASD CODE :: WASD v2 :: GH60 :: Alps64 :: JD45 :: IBM Model M :: IBM 4704 "Pingmaster"

http://jd40.info :: http://jd45.info


in memoriam

"When I was a kid, I used to take things apart and never put them back together."

Offline komar007

  • Thread Starter
  • Posts: 712
  • Location: Poland
    • komar's blog
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #364 on: Mon, 18 March 2013, 16:12:24 »
I tested the GUI on my dad's Windows 7 64-bit with Python 3.3, both 32-bit and 64-bit and ukbdc firmware version 0.2_rc2 and everything works fine. I can program the layout.
I used the exact package I'm attaching in this post. It doesn't differ from the ones I posted earlier in the USB code, but you can try anyway.
* ukbdc_gui_w7_new.7z (34.03 kB - downloaded 200 times.)


Now I'm getting down to cleaning the code further and implementing new features. I won't be wasting more time on debugging this on a system I have no idea about, mainly because I don't know what else I can do, since it works for me on 3 computers with win7 32-bit, win7 64-bit and winxp. I hope others will come up with some clues. I'm counting on you. ;)


You may also want to look at the first post, I added some tutorials how to make various layouts. I'll be adding more.
« Last Edit: Mon, 18 March 2013, 16:17:24 by komar007 »
GH60 rev. B w/ ali's case|Cherry G80-3000 HFU/05|IBM Model M (51G8572)
Check out the GH60 project! | How to make a keyboard

Offline agodinhost

  • Posts: 767
  • Location: Brazil, RJ
  • Soylent green is people ...
    • Dr Ian O Xaman
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #365 on: Mon, 18 March 2013, 17:32:12 »
windows 7 ultimate here, 64

what should I do to help on the test? I did executed the gui and it launched okay at here - although I don't know what's ready to test ...
Building one square I2C keyboard with those 1200 switches (thanks JDCarpe)
GH60 |GH60-Alps |GH60-BT |GHPad/GHPad Alps |GH60-Case |Alps TKL |EL Wire |OS Controller, Round 2 |My Custom Keyboard |WTT/WTB

Offline komar007

  • Thread Starter
  • Posts: 712
  • Location: Poland
    • komar's blog
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #366 on: Mon, 18 March 2013, 17:36:45 »
You need the GH60 board to test it.
GH60 rev. B w/ ali's case|Cherry G80-3000 HFU/05|IBM Model M (51G8572)
Check out the GH60 project! | How to make a keyboard

Offline agodinhost

  • Posts: 767
  • Location: Brazil, RJ
  • Soylent green is people ...
    • Dr Ian O Xaman
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #367 on: Mon, 18 March 2013, 17:45:35 »
I do have the teensy 2.0 here (a compatible board) and a 8x8 matrix keyboard ...
Building one square I2C keyboard with those 1200 switches (thanks JDCarpe)
GH60 |GH60-Alps |GH60-BT |GHPad/GHPad Alps |GH60-Case |Alps TKL |EL Wire |OS Controller, Round 2 |My Custom Keyboard |WTT/WTB

Offline komar007

  • Thread Starter
  • Posts: 712
  • Location: Poland
    • komar's blog
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #368 on: Mon, 18 March 2013, 17:46:39 »
Great. Can you program it with the firmware in the first post, version 0.2_rc2 and see if the gui can program an empty layout?
GH60 rev. B w/ ali's case|Cherry G80-3000 HFU/05|IBM Model M (51G8572)
Check out the GH60 project! | How to make a keyboard

Offline Glissant

  • Posts: 1976
  • Location: Oslo, Norway
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #369 on: Mon, 18 March 2013, 17:47:22 »
Just a tiny update and a question at the same time.
I had no problems uploading a new layout from my dad's win7(64bit enterprise) box.

Setting up the new layout with the new key was easy as pie. Thank you for the information about that. Now I have a nice little "locked" layer button for arrows and some other stuff :D .

And my question is this; Is there a way we can log what the keyboard is doing? The reason I am asking is because I think the keyboard crashed while switching layers earlier, because I had to unplug and reconnect it to get it back to life. I am thinking it would be easier if there was some sort of logging in place.

Offline komar007

  • Thread Starter
  • Posts: 712
  • Location: Poland
    • komar's blog
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #370 on: Mon, 18 March 2013, 17:49:29 »

Thanks!
Any ideas how your and your dad's windowses differ?

I've just done something similar, this simply happened because it went to an undefined layer, because of my mistake making a layout.
I'm going to add indication about which layer the keyboard is on, but I need to rewrite some of the code first.
GH60 rev. B w/ ali's case|Cherry G80-3000 HFU/05|IBM Model M (51G8572)
Check out the GH60 project! | How to make a keyboard

Offline agodinhost

  • Posts: 767
  • Location: Brazil, RJ
  • Soylent green is people ...
    • Dr Ian O Xaman
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #371 on: Mon, 18 March 2013, 17:53:58 »
Great. Can you program it with the firmware in the first post, version 0.2_rc2 and see if the gui can program an empty layout?
I'll try ...

By the way: why python 3.3? wouldn't be easier to use 2.7??
Building one square I2C keyboard with those 1200 switches (thanks JDCarpe)
GH60 |GH60-Alps |GH60-BT |GHPad/GHPad Alps |GH60-Case |Alps TKL |EL Wire |OS Controller, Round 2 |My Custom Keyboard |WTT/WTB

Offline komar007

  • Thread Starter
  • Posts: 712
  • Location: Poland
    • komar's blog
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #372 on: Mon, 18 March 2013, 17:54:48 »
How would it be easier?
GH60 rev. B w/ ali's case|Cherry G80-3000 HFU/05|IBM Model M (51G8572)
Check out the GH60 project! | How to make a keyboard

Offline agodinhost

  • Posts: 767
  • Location: Brazil, RJ
  • Soylent green is people ...
    • Dr Ian O Xaman
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #373 on: Mon, 18 March 2013, 18:03:14 »
IMO 2.7 is more mature.

"Python 3.3.0 was released on September 29th, 2012." according to it's site.
There are some libraries without binding/port yet.

Almost all pythonists I do know at here (a dozen, tops) are still using the 2.7.
I'm not a pythonist (I only use it when there is no other option or just when I do need something quick).
Building one square I2C keyboard with those 1200 switches (thanks JDCarpe)
GH60 |GH60-Alps |GH60-BT |GHPad/GHPad Alps |GH60-Case |Alps TKL |EL Wire |OS Controller, Round 2 |My Custom Keyboard |WTT/WTB

Offline Glissant

  • Posts: 1976
  • Location: Oslo, Norway
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #374 on: Mon, 18 March 2013, 18:07:32 »

Thanks!
Any ideas how your and your dad's windowses differ?

I've just done something similar, this simply happened because it went to an undefined layer, because of my mistake making a layout.
I'm going to add indication about which layer the keyboard is on, but I need to rewrite some of the code first.
They differ in the way that mine is windows 8 and his is windows 7 :) .

I'll look over the layout to see if I have any undefined layers.

Did I mention I LOVE this thing? Well, I LOVE THIS THING!

Offline OrangeJewce

  • ssk.ℜ
  • Posts: 495
  • Location: Minnesota
  • King of the Jewce
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #375 on: Mon, 18 March 2013, 18:25:03 »
IMO 2.7 is more mature.

"Python 3.3.0 was released on September 29th, 2012." according to it's site.
There are some libraries without binding/port yet.

Almost all pythonists I do know at here (a dozen, tops) are still using the 2.7.
I'm not a pythonist (I only use it when there is no other option or just when I do need something quick).

The problem is python 3 changed a huge number of things in std API. It's extremely difficult to migrate from 2 to 3 and vice versa. For that reason, many of the popular APIs have either a) not moved or b) released a completely separate version just for Python 3.

Cheers,
IBM Model M 1390120, Otaku Unicomp+RGB, CM QFR Green, Ducky YOTD Red, SSK MKII,
ErgoDox Blue, ErgoDox White

Offline jdcarpe

  • * Curator
  • Posts: 8852
  • Location: Odessa, TX
  • Live long, and prosper.
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #376 on: Mon, 18 March 2013, 18:38:20 »
This is super frustrating. At home under Win7 x64, I get this crap again:

Code: [Select]
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python33\lib\tkinter\__init__.py", line 1442, in __call__
    return self.func(*args)
  File "C:\Users\Jonathan\Downloads\ukbdc_gui_w7_new\gui.py", line 900, in <lamb
da>
    command = lambda: command("program"),
  File "C:\Users\Jonathan\Downloads\ukbdc_gui_w7_new\gui.py", line 807, in on_me
nu_action
    u.attach()
  File "C:\Users\Jonathan\Downloads\ukbdc_gui_w7_new\ukbdc_lib\ukbdc.py", line 1
24, in attach
    idProduct = self.productId
  File "C:\Users\Jonathan\Downloads\ukbdc_gui_w7_new\usb\core.py", line 846, in
find
    raise ValueError('No backend available')
ValueError: No backend available

Device manager still shows Atmel USB, not libusb. I don't know what I'm doing wrong, but this sucks. Can you just setup the GUI where it will output a .hex file? I can flash the FW with Flip with no problem.
KMAC :: LZ-GH :: WASD CODE :: WASD v2 :: GH60 :: Alps64 :: JD45 :: IBM Model M :: IBM 4704 "Pingmaster"

http://jd40.info :: http://jd45.info


in memoriam

"When I was a kid, I used to take things apart and never put them back together."

Offline agodinhost

  • Posts: 767
  • Location: Brazil, RJ
  • Soylent green is people ...
    • Dr Ian O Xaman
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #377 on: Mon, 18 March 2013, 18:43:02 »
The problem is python 3 changed a huge number of things in std API. It's extremely difficult to migrate from 2 to 3 and vice versa. For that reason, many of the popular APIs have either a) not moved or b) released a completely separate version just for Python 3.
Yes, I think it's the major reason.
Two weeks ago I tried to use the GTK with the 3.3 on 64, no way to get a port of pyCairo, pygObject nor pyGtk. I had to move back to 2.7.
It depends on what you are planning to use: if you are planning to use only common and already ported libraries you are okay with 3.3 - otherwise I would stay with 2.7.
Building one square I2C keyboard with those 1200 switches (thanks JDCarpe)
GH60 |GH60-Alps |GH60-BT |GHPad/GHPad Alps |GH60-Case |Alps TKL |EL Wire |OS Controller, Round 2 |My Custom Keyboard |WTT/WTB

Offline komar007

  • Thread Starter
  • Posts: 712
  • Location: Poland
    • komar's blog
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #378 on: Mon, 18 March 2013, 18:51:39 »
This is super frustrating. At home under Win7 x64, I get this crap again:

Code: [Select]
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python33\lib\tkinter\__init__.py", line 1442, in __call__
    return self.func(*args)
  File "C:\Users\Jonathan\Downloads\ukbdc_gui_w7_new\gui.py", line 900, in <lamb
da>
    command = lambda: command("program"),
  File "C:\Users\Jonathan\Downloads\ukbdc_gui_w7_new\gui.py", line 807, in on_me
nu_action
    u.attach()
  File "C:\Users\Jonathan\Downloads\ukbdc_gui_w7_new\ukbdc_lib\ukbdc.py", line 1
24, in attach
    idProduct = self.productId
  File "C:\Users\Jonathan\Downloads\ukbdc_gui_w7_new\usb\core.py", line 846, in
find
    raise ValueError('No backend available')
ValueError: No backend available
Doesn't simply re-running inf-wizard and reinstalling the driver help? Have you tried removing the driver associated with this Atmel device?

Device manager still shows Atmel USB, not libusb. I don't know what I'm doing wrong, but this sucks. Can you just setup the GUI where it will output a .hex file? I can flash the FW with Flip with no problem.
Good idea. I'll do it.



Thanks!
Any ideas how your and your dad's windowses differ?

I've just done something similar, this simply happened because it went to an undefined layer, because of my mistake making a layout.
I'm going to add indication about which layer the keyboard is on, but I need to rewrite some of the code first.
They differ in the way that mine is windows 8 and his is windows 7 :) .

I'll look over the layout to see if I have any undefined layers.

Did I mention I LOVE this thing? Well, I LOVE THIS THING!



Can you send me the layout which causes the keyboard to crash?
« Last Edit: Mon, 18 March 2013, 18:53:20 by komar007 »
GH60 rev. B w/ ali's case|Cherry G80-3000 HFU/05|IBM Model M (51G8572)
Check out the GH60 project! | How to make a keyboard

Offline IvanIvanovich

  • Mr. Silk Underwear
  • Posts: 8199
  • Location: USA
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #379 on: Mon, 18 March 2013, 20:21:06 »
Ok, I had the same problem I think as jd. In devmgmt, I choose update driver and point it to the libusb folder. It's ok now. I guess since the atmel driver was assigned to the device the tool was not able to initialize the command through the expected driver so it fail of course.
So now, to make it really easy to use, have gui for layout physical arrange or at least some default like when launch pick ANSI 61, winkeyless, ISO, etc. Make modifiers and such some menu selection or something if can't simple assign it by key press on working other keyboard. Finally, if possible make the whole thing an exe for us Windows dummies.

Offline jdcarpe

  • * Curator
  • Posts: 8852
  • Location: Odessa, TX
  • Live long, and prosper.
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #380 on: Mon, 18 March 2013, 20:34:46 »
Every time I try to do Update Driver Software, and point it to the libusb folder, it tells me that "The best driver software for your device is already installed."
KMAC :: LZ-GH :: WASD CODE :: WASD v2 :: GH60 :: Alps64 :: JD45 :: IBM Model M :: IBM 4704 "Pingmaster"

http://jd40.info :: http://jd45.info


in memoriam

"When I was a kid, I used to take things apart and never put them back together."

Offline hasu

  • Posts: 3472
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #381 on: Mon, 18 March 2013, 20:59:57 »
I'm about to give up running it on my Windows7 64bit, looks like I missed something and screwed up.

Which version of software should I use on Windwos7 64bit?
I tried to use Python 64bit and LibUSB amd64 but LibUSB installer install x86 version of drivers every time.

Offline IvanIvanovich

  • Mr. Silk Underwear
  • Posts: 8199
  • Location: USA
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #382 on: Mon, 18 March 2013, 21:07:18 »
You have to force it. Use the I will pick the driver option. If you still have a hard time, from elevated CMD
set devmgr_show_nonpresent_devices=1
start devmgmt.msc

then once devmgmt opens in the view option choose show hidden device. Find the Atmel and choose uninstall, and choose delete drivers software. Then try to install libusb driver again.

Offline John Fourth

  • Posts: 13
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #383 on: Mon, 18 March 2013, 21:29:06 »

As mkawa mentioned, I started working on a non-libusb option for windows over the weekend. I don't have a GH60 board yet, but I am testing with a teensy board. Currently working through resolving some Python/Windows/C linking errors. I am targeting a 32-bit Python distribution for windows. I am basing it on komar's recommendation of the teensy raw hid source code. Cross your fingers.

Thanks,
John

Offline sordna

  • Posts: 2248
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #384 on: Mon, 18 March 2013, 21:54:32 »
The gui runs right away on ubuntu 12.10. Just had to do this beforehand: sudo apt-get install python3-tk
I see a keyboard layout gui thing, and I can save .lay files. Don't have board to test though :-)
Kinesis Contoured Advantage & Advantage2 LF with Cherry MX Red switches / Extra keys mod / O-ring dampening mod / Dvorak layout. ErgoDox with buzzer and LED mod.
Also: Kinesis Advantage Classic, Kinesis Advantage2, Data911 TG3, Fingerworks Touchstream LP, IBM SSK (Buckling spring), Goldtouch GTU-0077 keyboard

Offline jdcarpe

  • * Curator
  • Posts: 8852
  • Location: Odessa, TX
  • Live long, and prosper.
GH60 prototype betatesting [Please test the GUI]
« Reply #385 on: Mon, 18 March 2013, 21:57:45 »
Don't have board to test though :-)

Yet?

I suspect!
KMAC :: LZ-GH :: WASD CODE :: WASD v2 :: GH60 :: Alps64 :: JD45 :: IBM Model M :: IBM 4704 "Pingmaster"

http://jd40.info :: http://jd45.info


in memoriam

"When I was a kid, I used to take things apart and never put them back together."

Offline komar007

  • Thread Starter
  • Posts: 712
  • Location: Poland
    • komar's blog
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #386 on: Tue, 19 March 2013, 05:37:56 »
Okay, here's the version with firmware generation.
Set what you need to set, and click file->generate firmware. The hex extension doesn't get added automatically in windows. I don't know why. Just type it in the file name.


It should work in linux too, at least it works for me.
* ukbdc_gui_w7_new_hexgen.7z (41.31 kB - downloaded 213 times.)
GH60 rev. B w/ ali's case|Cherry G80-3000 HFU/05|IBM Model M (51G8572)
Check out the GH60 project! | How to make a keyboard

Offline Glissant

  • Posts: 1976
  • Location: Oslo, Norway
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #387 on: Tue, 19 March 2013, 12:05:23 »
That's working beautifully :). Thanks to your help everything is working smoothly now.
Everyone should have this board in their arsenal. It's definitely my favorite style for everyday use.

Offline agodinhost

  • Posts: 767
  • Location: Brazil, RJ
  • Soylent green is people ...
    • Dr Ian O Xaman
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #388 on: Tue, 19 March 2013, 16:04:06 »
I didn't found my keyboard matrix - I'm soldering a few buttons in order to get one 20 keys keypad yet ...

btw: the arduino micro is finally being sold on ebay - 15 bucks!!!
Building one square I2C keyboard with those 1200 switches (thanks JDCarpe)
GH60 |GH60-Alps |GH60-BT |GHPad/GHPad Alps |GH60-Case |Alps TKL |EL Wire |OS Controller, Round 2 |My Custom Keyboard |WTT/WTB

Offline esoomenona

  • Gnillort?
  • Posts: 5323
Re: GH60 prototype betatesting [Call for layouts, GUI testing]
« Reply #389 on: Thu, 21 March 2013, 05:14:25 »
Is it possible to set a MX Lock as a NumLock with a layer for numbers? I assume its as easy as setting a numpad layer and setting the Lock switch as key_down for the Fn on that layer?

Offline agodinhost

  • Posts: 767
  • Location: Brazil, RJ
  • Soylent green is people ...
    • Dr Ian O Xaman
Re: GH60 prototype betatesting [Please test the GUI]
« Reply #390 on: Thu, 21 March 2013, 09:22:03 »
This is super frustrating. At home under Win7 x64, I get this crap again:

Code: [Select]
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python33\lib\tkinter\__init__.py", line 1442, in __call__
    return self.func(*args)
  File "C:\Users\Jonathan\Downloads\ukbdc_gui_w7_new\gui.py", line 900, in <lamb
da>
    command = lambda: command("program"),
  File "C:\Users\Jonathan\Downloads\ukbdc_gui_w7_new\gui.py", line 807, in on_me
nu_action
    u.attach()
  File "C:\Users\Jonathan\Downloads\ukbdc_gui_w7_new\ukbdc_lib\ukbdc.py", line 1
24, in attach
    idProduct = self.productId
  File "C:\Users\Jonathan\Downloads\ukbdc_gui_w7_new\usb\core.py", line 846, in
find
    raise ValueError('No backend available')
ValueError: No backend available

Device manager still shows Atmel USB, not libusb. I don't know what I'm doing wrong, but this sucks. Can you just setup the GUI where it will output a .hex file? I can flash the FW with Flip with no problem.
Just out of curiosity: have you tried avrdude?
Building one square I2C keyboard with those 1200 switches (thanks JDCarpe)
GH60 |GH60-Alps |GH60-BT |GHPad/GHPad Alps |GH60-Case |Alps TKL |EL Wire |OS Controller, Round 2 |My Custom Keyboard |WTT/WTB

Offline jdcarpe

  • * Curator
  • Posts: 8852
  • Location: Odessa, TX
  • Live long, and prosper.
Re: GH60 prototype betatesting [Call for layouts, GUI testing]
« Reply #391 on: Thu, 21 March 2013, 10:41:33 »
This is super frustrating. At home under Win7 x64, I get this crap again:

Code: [Select]
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python33\lib\tkinter\__init__.py", line 1442, in __call__
    return self.func(*args)
  File "C:\Users\Jonathan\Downloads\ukbdc_gui_w7_new\gui.py", line 900, in <lamb
da>
    command = lambda: command("program"),
  File "C:\Users\Jonathan\Downloads\ukbdc_gui_w7_new\gui.py", line 807, in on_me
nu_action
    u.attach()
  File "C:\Users\Jonathan\Downloads\ukbdc_gui_w7_new\ukbdc_lib\ukbdc.py", line 1
24, in attach
    idProduct = self.productId
  File "C:\Users\Jonathan\Downloads\ukbdc_gui_w7_new\usb\core.py", line 846, in
find
    raise ValueError('No backend available')
ValueError: No backend available

Device manager still shows Atmel USB, not libusb. I don't know what I'm doing wrong, but this sucks. Can you just setup the GUI where it will output a .hex file? I can flash the FW with Flip with no problem.
Just out of curiosity: have you tried avrdude?

I have WinAVR installed...


I really like being able to use the GUI to output a .hex file. Thanks, komar!
KMAC :: LZ-GH :: WASD CODE :: WASD v2 :: GH60 :: Alps64 :: JD45 :: IBM Model M :: IBM 4704 "Pingmaster"

http://jd40.info :: http://jd45.info


in memoriam

"When I was a kid, I used to take things apart and never put them back together."

Offline Strelok

  • Posts: 139
  • Location: United States
Re: GH60 prototype betatesting [Call for layouts, GUI testing]
« Reply #392 on: Thu, 21 March 2013, 20:38:33 »
Question about the programming:

Can you use the Fn layer to toggle the normal keys?

Like Fn+z changed the layout to Dvorak, Fn+x changes it to Qwerty.

Offline hasu

  • Posts: 3472
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: GH60 prototype betatesting [Call for layouts, GUI testing]
« Reply #393 on: Fri, 22 March 2013, 00:43:17 »
It seems like Layer 4 and above layers are not editable.

Code: [Select]
$ python3 ./gui.py
Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python3.2/tkinter/__init__.py", line 1402, in __call__
    return self.func(*args)
  File "/usr/lib/python3.2/tkinter/__init__.py", line 3125, in __call__
    self.__callback(self.__value, *args)
  File "./gui.py", line 713, in on_change_layer
    kd = self.layout[l, b]
  File "/home/noname/Dropbox/KEYBOARD/GH60/ukbdc_gui_w7_new/ukbdc_lib/layout.py", line 119, in __getitem__
    return self.layers[lay][key]
IndexError: list index out of range
Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python3.2/tkinter/__init__.py", line 1402, in __call__
    return self.func(*args)
  File "/usr/lib/python3.2/tkinter/__init__.py", line 3125, in __call__
    self.__callback(self.__value, *args)
  File "./gui.py", line 713, in on_change_layer
    kd = self.layout[l, b]
  File "/home/noname/Dropbox/KEYBOARD/GH60/ukbdc_gui_w7_new/ukbdc_lib/layout.py", line 119, in __getitem__
    return self.layers[lay][key]
IndexError: list index out of range

Offline komar007

  • Thread Starter
  • Posts: 712
  • Location: Poland
    • komar's blog
Re: GH60 prototype betatesting [Call for layouts, GUI testing]
« Reply #394 on: Fri, 22 March 2013, 00:50:38 »
It seems like Layer 4 and above layers are not editable.

Code: [Select]
$ python3 ./gui.py
Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python3.2/tkinter/__init__.py", line 1402, in __call__
    return self.func(*args)
  File "/usr/lib/python3.2/tkinter/__init__.py", line 3125, in __call__
    self.__callback(self.__value, *args)
  File "./gui.py", line 713, in on_change_layer
    kd = self.layout[l, b]
  File "/home/noname/Dropbox/KEYBOARD/GH60/ukbdc_gui_w7_new/ukbdc_lib/layout.py", line 119, in __getitem__
    return self.layers[lay][key]
IndexError: list index out of range
Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python3.2/tkinter/__init__.py", line 1402, in __call__
    return self.func(*args)
  File "/usr/lib/python3.2/tkinter/__init__.py", line 3125, in __call__
    self.__callback(self.__value, *args)
  File "./gui.py", line 713, in on_change_layer
    kd = self.layout[l, b]
  File "/home/noname/Dropbox/KEYBOARD/GH60/ukbdc_gui_w7_new/ukbdc_lib/layout.py", line 119, in __getitem__
    return self.layers[lay][key]
IndexError: list index out of range
That' because the gh60.lay file is broken. Please use the new layout file from the bottom of the OP
GH60 rev. B w/ ali's case|Cherry G80-3000 HFU/05|IBM Model M (51G8572)
Check out the GH60 project! | How to make a keyboard

Offline hasu

  • Posts: 3472
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: GH60 prototype betatesting [Call for layouts, GUI testing]
« Reply #395 on: Fri, 22 March 2013, 02:39:45 »
Thanks komar,  I can edit 4 and above layers flawlessly now.

I finished layout emulating Poker Fn layers. This is better than original a bit, I think :)
Original Poker has two locking layers, Fn+Q fixes cursor keys on right bottom area and Fn+Space places Esc instead of back quote(`). I add my layout file just for reference.

This layout is comprised of these layers:
0: default(qwerty)
1: Space lock(cursor keys)
2: Q lock(Esc)
3: Space and Q lock
4: Fn layer of default
5: Fn layer of Layer 1
6: Fn layer of Layer 2
7: Fn layer of Layer 3

Offline Glissant

  • Posts: 1976
  • Location: Oslo, Norway
Re: GH60 prototype betatesting [Call for layouts, GUI testing]
« Reply #396 on: Fri, 22 March 2013, 16:34:45 »
Thanks a lot for that hasu. People could also use your layout to understand how to now cross contaminate layers.

Could someone take the time to explain how adding keys work? I tried making my lshift into two keys like my rshift, but I can't seem to get the numbers right or something as they don't want to work xD. I'll attach my gh60.xml in case that will make it easier to explain it to me.


Edit: I'm going to try to multiply the keys at the end of the row (rshift) again to see if that will work.


Edit2: I'll just leave this here for someone to use as a reference if they need in the future.
It worked out well when I multiplied the last to keys in the shift row (I call it that now) by 8. The next to last key ends up looking weird in the gui, so maybe someone can help me figure that out instead?
16594-0

As you can see when the keys work the layout looks a little weird on a couple of keys, but it looks completely normal in the xml that doesn't work for me. Sorry if I'm unclear. This week has been a ***** xD.


adding my xml again to show the updated file. The updated xml file has 104 and 112 as the x value in the last two keys in the shift row.
« Last Edit: Fri, 22 March 2013, 16:48:27 by Glissant »

Offline komar007

  • Thread Starter
  • Posts: 712
  • Location: Poland
    • komar's blog
Re: GH60 prototype betatesting [Call for layouts, GUI testing]
« Reply #397 on: Fri, 22 March 2013, 16:50:02 »
I think you just have to move it to the left a bit. To the position where 53 ends, so that would be 98 (since 53's x in 90, and width is 8 ), then change the size appropriately. This is a 1.75 shift, multiply that by 8 and it's width is 14.
GH60 rev. B w/ ali's case|Cherry G80-3000 HFU/05|IBM Model M (51G8572)
Check out the GH60 project! | How to make a keyboard

Offline Glissant

  • Posts: 1976
  • Location: Oslo, Norway
Re: GH60 prototype betatesting [Call for layouts, GUI testing]
« Reply #398 on: Fri, 22 March 2013, 18:51:19 »
Yeah I think I did it right the first time, and I tried my "non working"-xml again, and now it works just fine. Well at least I know that I understood how it works more or less, but I still have no clue why it didn't register correctly the first time. Maybe I uploaded the wrong hex file. Sorry for the confusion.
Thanks for the help, komar :) .


edit: My previous post just makes me wish there was something that would log everything I do on the computer. Changes in documents, opened and closed windows etc.
« Last Edit: Sat, 23 March 2013, 17:24:05 by Glissant »

Offline engicoder

  • Posts: 721
  • Location: North Carolina
Re: GH60 prototype betatesting [Call for layouts, GUI testing]
« Reply #399 on: Wed, 27 March 2013, 12:26:18 »
Komar....how should I send you my layout? PM doesn't seem to support attachments.