Bongofish

Screen Tablet malarky => Tablet Conversion to USB => Topic started by: bernard on June 10, 2011, 03:02:53 AM



Title: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on June 10, 2011, 03:02:53 AM
This explains how to internally interface a GD-0912-R (or a similar board). This resemble a similar mod done for the XD-0608-R (http://forum.bongofish.co.uk/index.php?topic=1928.0)

The mod is primarly targeted to connect to a Teensy, but this is good info to connect to any TTL-serial TX/RX device along with 5V power supply. (like a FTDI breakout board or Arduino)  -- connecting the 5v supply removes the need for an external power adapter brick. This can easily be powered off the USB.

Warning: This mod will permanently disable the external serial & power connections. Playing with electronics is not without risks. You can break or burn anything including your fingers.  .

In short, the mod consists of:  Connecting the serial signals from the back of the ADM202 chip to get the TX/RX signals (and hard-wire 2 incoming signal); connecting the 5V at the 5V regulator output.

There are 5 serial signals.

                     | Internal connector |            | ADM202 pins
 Direction | PC DB9  | (board marking)    | CheckPoint |  RS --- TTL
-----------+---------+--------------------+------------+-------------
 <--tablet | 2 (RXD) | 7 (TXD)            | CP1        |  14 <-- 11
 -->tablet | 3 (TXD) | 8 (RXD)            | CP2        |  13 --> 12
 -->tablet | 4 (DTR) | 6 (/DSR)           | CP3        |   8 --> 9
           | 5 (GND) | 4 (GND)            |            |
 <--tablet | 6 (DSR) | 5 (/DTR)           | CP4        |   7 <-- 10
 -->tablet | 7 (RTS) | 2 (CTS)            | CP5        | R2R --> TR1R


[attachment=2]

[attachment=1]

First remove the ADM202 chip: Dremel or cut the legs then desolder every leg (beware to not lift the "pads" underneath and break the trace. If you break a pad that you need you can find a spot to solder somewhere on the board to connect to that same signal).  You could alternatively just cutout the legs that we care about and make sure you are not soldering to the leg (just the pad).

Pin 9  of the ADM202 should be grounded (this is DB9-DTR).
Pin 10 of the ADM202 should be left unconnected. (this is DB9-DSR)
Pin 11 of the ADM202 should be connected to RX (D2 on Teensy) ( data coming out of tablet )
Pin 12 of the ADM202 should be connected to TX (D3 on Teensy) ( data going into tablet )

Remove the TR1R transistor. The pad that is "alone" is the one we care about. We want to ground the signal. (This is DB9-RTS)

Cut the regulator output leg (near TP1) -- btw TP1 is a Test Point and connects to that same leg. This is our 5V VCC line.

Find a spot to connect the ground -- typically anywhere on the ground plane is good enough or you might try pin 4 of the connector (labeled GND in the markings).  (Keeping it "closer" to this area of the board is probably better)

[attachment=3]
[attachment=4]
[attachment=5]

I did the two ground by soldering a tiny piece of wire (insulation removed) to a nearby ground (pin 9 and TR1R transistor).

Always watch out where and in which position you solder a wire to avoid connecting unrelated traces and vias (i.e. holes).

Next step is to get the firmware on the Teensy. (see next post).


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on July 07, 2011, 04:46:35 AM
Get the distribution package here: http://code.google.com/p/waxbee/ (http://code.google.com/p/waxbee/)  

Get Java 1.6 for your platform (get the 64 bit Java version if you have Windows 64 bits), unzip the distribution package somewhere and double-click waxbee.jar to run.  

EDIT: Windows/JRE 32 bit now works with version 0.10 and up.

Do "File ->  New from Template", pick the "GD-0912-R to Intuos2" template.  Follow the instructions here:  http://forum.bongofish.co.uk/index.php?topic=1930.msg14315#msg14315


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: Drewid on August 01, 2011, 01:48:07 PM
In that last picture what is the black cable going to the cable connector?

edit - Ah just read the other thread, it's the ground connector.   ::)


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on August 21, 2011, 03:46:46 AM
I confirm, black is indeed ground. I try to use cables with meaningful colors [when possible].


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: muda on August 22, 2011, 06:03:14 PM

The mod is primarly targeted to connect to a Teensy, but this is good info to connect to any TTL-serial TX/RX device along with 5V power supply. (like a FTDI breakout board or Arduino)  -- connecting the 5v supply removes the need for an external power adapter brick. This can easily be powered off the USB.


 Can I use simple TTL conversion board for UD 1212 too ? I have one laying around like this : http://arduino-direct.com/sunshop/index.php?l=product_detail&p=165 (http://arduino-direct.com/sunshop/index.php?l=product_detail&p=165)  I cant use waxebee I thing  ?? how to proceed ?

 Or can I use arduino-nano instead, as teensy isnt available where I live.

Thanks


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on August 22, 2011, 06:42:18 PM
welcome muda,

The "TTL conversion board" you are talking about is not precisely the same thing.  It converts from TTL to USB (or more precisely it creates a virtual serial port inside a PC that physically connects to RX/TX TTL level lines).

In summary:

  • A PC talks RS-232 level.
  • A UD-1212-R talks RS-232 level AND talks TTL-level internally
  • A Teensy talks TTL-level

Your board is TTL on one side and USB on the other side. The USB is meant to be connected to a USB host like a PC or Mac. A Teensy is not a USB host!

To avoid opening the UD-1212-R case and connect to a Teensy, what you would need is a RS-232 level to TTL-level converter (like a MAX232 chip).  I did a few searches and I was out of luck finding one the form of a "DIY breakout board".

-------

The Waxbee software is meant to run on a ATMEGA32U4 AVR cpu. Any board that has that chip should work - there are Teensy clones out there but they often have a different CPU as well.  There are other AVR processors and some of them would work (but not without modifying the code). For example, the AT90USB1286 (Teensy++ 2.0) is an example that might requires a little tweak. You need an AVR CPU that supports USB.  Arduino CPUs do not support USB**. 

**BUT! There is an exception to this rule: The Arduino UNO has 2 AVR CPUs. The second one (an Atmega8U2) supports USB and is normally used to do exactly what your board is doing (TTL to USB conversion) and they claim that it can be reprogrammed -- (but I do not know how -- would have to check that).

So in theory, you could probably reprogram that second CPU (disregarding the main Arduino AVR CPU !!).  You would also need to find the UART TX/RX TTL signals on the uno and hook yourself there (maybe will have to cut a few traces or desolder something) to talk to the UD-1212 tablet. Because I have such board at home, I might be able to try to do it to help you (and others that would be in the same situation).

I say "in theory" because I would have to check how much RAM and FLASH this AVR device supports, etc.

-------------

Where do you live to not being able to get a Teensy??


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: Drewid on August 22, 2011, 06:45:00 PM
Or someone else could get a teensy and pass it on.


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: muda on August 22, 2011, 07:01:28 PM
Thanks for explanation and salutation bernard !

My living place is Lithuania. I have no problems shipping from Hong Kong or China (EU aside)  ,but USA usualy is pain int the ...  :-\
Anyway I thing all other workarounds seems too complicated for my skills. I better need to try contacting teensy guys - possibly ill find some luck there.


Can you please see : http://www.dealextreme.com/p/designer-s-teensy-usb-development-board-for-ps3-47609 (http://www.dealextreme.com/p/designer-s-teensy-usb-development-board-for-ps3-47609) If this is gona work at all ?


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on August 22, 2011, 08:28:06 PM
On parle fran├žais en Lithuanie?

This dealextreme board is, I believe, a Teensy 1.0 clone and use another AVR chip than the Teensy 2.0. I do not know if it will work.

Try contacting Paul (or his wife Robin) for shipping. This thing is so small !!

To do the mod, you still need some basic soldering equipement & skills (or find someone that has).


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: muda on August 22, 2011, 08:39:31 PM
Soldering isnt new to me. Just finished DIY arduino light controller for my tank. (DIY led drivers including).

In Lithuania we speak Lithuanian, by the way :)  Parle in Lichtenstein I thing.


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on August 22, 2011, 08:58:57 PM
French: Oops! sorry, "salutation" is a french term -- but I forgot it was also an English term for a second -- duh!  :)

-----

AFAICT, Adafruit's Atmega32u4 Breakout Board+ will work fine. It has the same CPU. Distributed in a few European countries.

http://www.robotshop.com/eu/adafruit-atmega32u4-breakout-board.html
http://www.eztronics.nl/webshop/catalog/product_info.php/products_id/412 
http://www.robot-italy.com/product_info.php?products_id=2026


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: muda on August 23, 2011, 01:17:17 PM
Emailed Paul. Lets see how it turns.

Teensy on its way to me. Cant wait to start mod  ;D


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: benoitb on June 26, 2012, 10:44:51 PM
Hello. I have a GD-0912-R and I just made the modification on it.
I installed the latest wacom drivers on my win7 64bit PC but it then says when I plug the teensy No tablet found and the tablet doesn't work on the computer.

The led on the tablet is working and I could successfully flash the Teensy with the "GD-0912-R to Intuos2 9x12.tmpl" template.

Some pics of my mod:
(http://i.imgur.com/iF8fS.jpg) (http://imgur.com/iF8fS)
(http://i.imgur.com/GzlLI.jpg) (http://imgur.com/GzlLI)


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: benoitb on June 26, 2012, 11:01:31 PM
I got some improvements by unsinstalling the 6.30 wacom driver and installing the 6.20 that is listed as compatible with the Intuos2 tablets. It seems like they removed support recently of the Intuos2.
Now the driver sees my tablet but it still doesn't work:
(http://i.imgur.com/wK9w6.png) (http://imgur.com/wK9w6)


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on June 27, 2012, 02:30:00 AM
Have you grounded the two serial handshake signals? I do not see clearly on the picture.  your green wire appears to go on the wrong pad -- but again, I do not see clearly on the picture.

EDIT: I saw your picture directly from the hosting site, connections appears ok.

There are ways to test this.  

#1- If you have Windows 7 64 bits, you can try my wacom hid dump tool (download from waxbee site) -- it will decode and output the packets sent as intuos2. That's a way to see if the tablet is sending anything to Windows.

#2- You can use hidlisten along with the "debug" version of the template for the GD-x. See what it outputs. Look up the forum to find how to use (and find) those tools.  

#3- The next step would be to flash the virtual serial port and use a tool like RealTerm. (again look up the forum to find examples and how-tos)


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: benoitb on June 27, 2012, 05:52:50 PM
Thanks for your help :) I was a bit worried I would have stupidly destroyed my tablet.

Have you grounded the two serial handshake signals? I do not see clearly on the picture.  your green wire appears to go on the wrong pad -- but again, I do not see clearly on the picture.

EDIT: I saw your picture directly from the hosting site, connections appears ok.
Yes I did the grounding on those 2 points and checked with a multimeter that the points were grounded and also that the pins 10 and 13 are not connected.

There are ways to test this.  

#1- If you have Windows 7 64 bits, you can try my wacom hid dump tool (download from waxbee site) -- it will decode and output the packets sent as intuos2. That's a way to see if the tablet is sending anything to Windows.
#2- You can use hidlisten along with the "debug" version of the template for the GD-x. See what it outputs. Look up the forum to find how to use (and find) those tools.  
#3- The next step would be to flash the virtual serial port and use a tool like RealTerm. (again look up the forum to find examples and how-tos)

#1
This is what I get:
Quote
USB devices with VendorId = 0x056A (Wacom):
index: 0
index: 1
vid: 0x056A, pid: 0x0043
2: Wacom Intuos2 9x12 (ProductId = 0x0043)

#2
And with HIDListen, holding the pen above the surface of the tablet for a fraction of second.
Quote
Waiting for device:
Listening:

RS: 80 00 78 78 00 78 00
RS: (?!)80
RS: (?!)80 78
RS: (?!)80
RS: (?!)F8 00
RS: (?!)80 00
RS: (?!)80 00 00
RS: (?!)F8 78
RS: (?!)80
RS: (?!)F8 78 78 00 78
RS: (?!)80
RS: (?!)80 00 78 00 00 00 78
RS: (?!)80
RS: (?!)80 78 78 00 78
RS: (?!)80
RS: (?!)80 00 00
RS: (?!)80 00 00
RS: (?!)80 00 78 78
RS: (?!)80
RS: (?!)80 00 78 00 78 00
RS: (?!)80 00 78
RS: (?!)F8 00 00
RS: (?!)80 00 78 78
RS: (?!)80
RS: (?!)80
RS: (?!)80 78
RS: (?!)80
RS: (?!)80
RS: (?!)80
RS: (?!)F8 00
RS: (?!)80 00 78 00 00 00
RS: (?!)80 00 78 78
RS: (?!)80 78 78
RS: (?!)80
RS: (?!)80
RS: (?!)80
RS: (?!)80 00
RS: (?!)80 00
RS: (?!)F8 78 00 78
RS: (?!)80
RS: (?!)F8
RS: (?!)F8 78 78
RS: (?!)80
RS: (?!)80 00
RS: (?!)80
RS: (?!)80
RS: (?!)80
RS: (?!)F8 00 00 00
RS: (?!)80 00 78
RS: (?!)80
RS: (?!)F8
RS: (?!)F8 78
RS: (?!)F8 00
RS: (?!)80
RS: (?!)80 00 78 00 78 78 00 78
RS: (?!)80 00 78
RS: (?!)80
RS: (?!)F8
RS: (?!)F8 78 00 00 00 00 00 00 00
00(*!)

#3
I don't really know what I should do for now with the virtual serial port. I'm going to read the other posts.

Overall, good news, aren't they ? It seems like the driver finds the tablet and the tablet sends data when I use the pen or the mouse.

By the way, I used waxbee-0-11c.zip to flash the firmware.
When you flash the debug firmware, it doesn't remove the waxbee firmware ?


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on June 30, 2012, 02:41:16 AM
#1 is not looking good - there is no activity reported. This is confirmed in #2...

The data in #2 is dead wrong. Looks like a misconfiguration like the serial port baud rate (speed) or a bad connection (pin is floating?). Please redo #2 but connect the usb (teensy) -after- starting hidlisten to get the startup messages. You missed them it seems?

When you program (flash) the teensy, it always replace the whole thing on the teensy.  You can always reflash back anything. I've done that hundreds of times. The template (along with the template parameters that you can edit) also get flashed as part of the firmware.

A .hex file represents a firmware that can be flashed. For the virtual com port .hex in the download section you can flash it using prjc.com tool (teensy loader).


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: benoitb on July 31, 2012, 07:15:41 PM
Sorry about the time gap before I answered.

I posted here on youtube a recording of me redoing step #2:
http://www.youtube.com/watch?v=fRH9xp0sCTs&feature=youtu.be

Here is a screenshot of the part you requested:
(http://i.imgur.com/CSvRg.png)


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on August 02, 2012, 12:51:03 AM
Looks like the serial is correctly connected... at least enough to make it talk through the initialization since we are seeing the proper version string coming from the tablet.

One detail I am aware is that this first portion gets through even if the serial handshake signals are wrongly connected or floating (not connected).

Next step is to fiddle with the virtual serial port and capture the data sent by the tablet. We need to understand what's wrong!   Btw i am away for 3 weeks, i might not answer if i don't have internet access.


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: Attangemonk on October 14, 2012, 11:24:40 PM
Hdd that problem too with a gd 1212 R 00, i switched to 19200 during operation and now it seems to work


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: henkul on January 06, 2013, 12:50:27 PM
This is my second conversion. The first is at http://forum.bongofish.co.uk/index.php?topic=2241.msg17893#msg17893

This GD-0912 is working at 19200, not working at 38400.

Waiting for device:....
Listening:
WaxBee 0.12a -- bzz! bzz!
Serial/ADB tablet to USB converter.
 slaveXMax:30480 slaveYMax:24060 usbXMax:16704 usbYMax:12064
protocol5_serial::init()
~#GD-0912-R00,V1.2-7
Serial Tablet - GD-0912-R00,V1.2-7
Intuos

I have tried to put the Teensy inside the box

[attachment=1]

This was not working. The wires was squeezed or the reset button was pressed all the time or ..? When I opened the box everything was working again.

I found http://forum.bongofish.co.uk/index.php?topic=1928.msg16707#msg16707

from an XD 0608, it seems to have more space but I will give it a try.

 


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on January 06, 2013, 04:20:18 PM
Was it shorting?  It appears to be directly against the Wacom board!   Yes, if the reset button is held down, it won't work, when you close the case, it was maybe creating a pressure (bad!).  Using a drill, make a round hole big enough for the reset button (hopefully nothing crucial is on the wacom board at this location!

When I put Teensy inside stuff, I try to have a way to press the reset button for reprogramming purposes.

This version is 1.2-7  -- and both tablets work at 19200 (?)  Hum.  Maybe *all* GD board uses this speed afterall? I would have to re-check mine again. (one day...)


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: hermanvereycken on October 08, 2013, 09:01:51 PM
Hi Guys!

via via i found this thread to get my wacom intuos2 working again, so i immediately bought me a teensy2.0. really looks like a nice and simple arduino kit.

my mod is not as clean as the others i have seen in this thread and i fully understand your warning notice at the beginning of the thread.

anyhow, i believe i have hooked up the teensy correctly and tested with the teensy USB2serial project that is in the arduino software development kit.

if i check the serial term, i see that there is communication (also via real-term) but it looks like gibberish

when i load the GD 0912 R (either 9x12 or 12x18 and even debug) template, i dont see any commonucation on the wacom hid dump.

how can i make sure that the data sent by the tablet is correctly interpreted ?

i dont know where to check for the 'bzz! bzz!" signs of the waxbee rom, because once i have loaded waxbee on the teensy, i can no longer connect to com9 in my realterm.

many thanks in advance for this great project!

H


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: hermanvereycken on October 08, 2013, 09:30:05 PM
some pics (sorry, i dont have a hosting)

[attachment=1] serial nr
[attachment=2] wacom pcb mod
[attachment=3] teensy 2.0 connection
[attachment=4] usb2serial communication sniffer


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on October 09, 2013, 01:52:44 PM
- Your mod looks good. I did not look if it was all correctly connected, but it looks fine at first glance.

- Oh wait, the model of this board is GD-0912-R00 -- This is a "GD" board! Intuos2 models starts with letters "XD".  Intuos1 models starts with "GD".  You have an Intuos (1) board, not Intuos2. Make sure you pick the good template!!!

- Debug templates work with the hid_listen tool ( http://www.pjrc.com/teensy/hid_listen.html ) -- this is not using serial COMx ports at all, so it is normal it is not going to work with RealTerm/TeraTerm/Putty.  I would recommend that you start with checking on the hid_listen output before digging with a virtual serial port (COMx). NOTE: Always start hid_listen *before* plugging in the USB port to catch the first messages.  Copy them here in the thread.

- In case you want to dig more with virtual serial COMx port, (you need to understand the underlying protocol), you can also try to use my tweaked version of the virtual serial port instead of the one from PRJC.com (go to download section of WaxBee project to grab the .hex file).  NOTE: You have to setup the good baud rate.  There are only 3 speeds that Wacom serial tablets uses: 9600, 19200 or 38400. Some tablets uses 2 speeds -- one to start with and then you can send a command to make the tablet talk to a higher speed.




Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: hermanvereycken on October 09, 2013, 10:05:04 PM
Hey Bernard, thx for the quick reply!

i downloaded the hid_listen from the PJRC site and here is what i got

two attempts using the GD 0912 R debug template


however, when i load the GD 0912 R 9x12 template, linux discovers a device XD-0912-U

Code:
[ 1061.852099] usb 2-1: new full-speed USB device number 3 using uhci_hcd
[ 1062.243138] usb 2-1: New USB device found, idVendor=056a, idProduct=0043
[ 1062.243148] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1062.243156] usb 2-1: Product: XD-0912-U - WaxBee emulation
[ 1062.243163] usb 2-1: Manufacturer: WACOM
[ 1062.245405] input: Wacom Intuos2 9x12 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0/input/input8

as such, i'm a bit confused on which template to use...

EDIT....

if i understand the waxbee template system correctly, by loading the GD 0912 R 9x12 template, the teensy will emulate an XD-0912-U Intuos2 device, so the operating system is fooled in a way. i'll try to get it working in windows first before i move to linux then[attachment=1]


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on October 10, 2013, 01:24:02 AM
Yes -- you are getting it I think. Typically in WaxBee we emulate Intuos2 (XD-xxxxx).  There is no need to match your real tablet to what it is emulating. That's the point actually, as most of the serial tablets do not have a USB equivalent!! Only the Intuos tablets have a USB equivalent. In the case of the Intuos1, it is very close to Intuos2 so there is little need to emulate a USB Intuos1. We picked Intuos2 because it had lots of features and the USB version was available for relatively cheap in aftermarket to analyse it.

Linux or Windows it does not really matter. It is true that it was mostly tested in Windows, so you have better chances with Windows.  Caveat with Windows: The Intuos2, last time I checked, was not supported in recent Windows versions.   That is why we started emulating an Intuos5 (which works but is not very stable).

Looking at the two trace outputs: now that's weird!  BTW, you know you can always upload pictures right here in this forum. (Click on Additional Options).

The one with giberrish is really weird -- normally it does not output stuff like that. Not sure what went wrong there.  And for the other one, clearly the bytes are wrong too (but at least the debug messages make sense, it is not gibberish).

Okay -- I would suggest that you pick the "GD-0912-R to Intuos2 9x12.tmpl.txt" template (like you already did I think) but then modify it (using the WaxBeeConfig tool) so the "Normal" baud rate is set to 19200 instead of 38400 (leave the initial to 9600).   

If that does not work, try again the debug template+hid_tool and pick "GD-0912-R Debug.tmpl.txt" but again, modify it so the "Normal" baud rate is set to 19200 baud instead of 38400 (leave initial baud rate to 9600).  I think some older GD boards run at 19200. It might be what you are experiencing.


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: hermanvereycken on October 10, 2013, 08:13:45 PM
yeps! 19200 works like a charm! thx a lot!

ps, thx for the tip of the upload feature, i will upload the imgs so that others are maybe served by it aswell!

cheers to the lot of you!

H


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: hermanvereycken on October 23, 2013, 05:41:27 PM
Bernard,

i've quickly skimmed the forum to understand a bit better some glitches i'm witnessing on my mod. i haven't been able to find something similar to my case.

there are two types of glitches i experience.

1) brief pen pressure at 100% (causes unwanted clicks in menu's/ icons when hovering, or pencil dots in the image)
2) while applying pressure, the pen slips(offsetted) about 1 inch downward (or upward i think) on the Y axis

I've been using the pen now mainly for sketching, so an occasional slip is not an issue, but for finer work, its a bit cumbersome.

are these side effects been witnessed on other mods as well?

H.


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on October 23, 2013, 08:30:56 PM
hum. strange stuff.  I think the only way to find out for you is to use the debug output.  See what is happening under the hood. 

The main question is:  does these glitches coming from the pen or board  or really WaxBee has an issue or maybe we could find a way to workaround it with a patch in WaxBee (skip when something is seems "out-of-whack").

B.


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: hermanvereycken on October 26, 2013, 01:51:41 PM
Hi bernard!

i have made two hid_listen dumps, one for both problems.

1) unwanted pen pressure (not sure if it's 100%). in this test, i just hovered the pen over the tablet without touching it for the entire duration of the test

[attachment=1]

2) pen slips(offsetted) on the Y axis. in this test i was drawing 8's horizontally, i'm not sure if i was able to catch such an event

[attachment=2]

hope it will provide some clues!

Herman


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on October 26, 2013, 04:23:37 PM
The traces sometimes contains (?!) it seems some bytes are lost -- that might be due to the fact that the debug outputs too much and the buffers gets overloaded.  I see nothing else that sticks out. I could write a program to analyse this further, but I do not have that much time. We'll use the tools we already have, just need more time on your side.

The idea is to pinpoint something "wrong" in the data and discover a "pattern".

Let's try something else:  Put back the "normal" template (non-debug), then using my Wacom hid tracing tool, reproduce the issue and send me that.  The "best" is to be able to spot that precise area where it fails.  What you could do is to try to find that interactively:  you look at the data as you move your pen and when you the issue is occuring with your pen you attempt to look if you see the issue in the data (jump in x,y or pressure values). Then you find a way to send me your findings.

On another front, I might be able to modify the debug to specifically output the information we are seeking (can't output too much else buffers gets overloaded and data starts to be dropped (loosed).

The idea here is to find what exactly is going wrong and either adjust the parameters or add some special "filtering" to workaround the issue. I am sure it can be done.


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: hermanvereycken on October 27, 2013, 10:25:20 PM
Hi bernard,

i'd be glad to help you out there. i have been able to trace the pressure point, below you will find some examples

[attachment=1]
[attachment=2]
[attachment=3]

hope this gives you some more indications


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: hermanvereycken on October 27, 2013, 10:52:16 PM
I've also been able to pinpoint the Y-axis glitch after some testing:

[attachment=1]

*first graph is a scatter plot x-to-y axis
**it's strange that we see on the x-axis a lot more glitches, however, these seem less noticeable in reality

[attachment=2]

[attachment=3]

hope you see some clues in those extracts  ???


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on October 28, 2013, 02:53:12 PM
Good analysis!  It does not tell us the root cause, but it does helps a lot for pinpointing the data.  One thing I was looking if there was other data that was different, weird or out of whack in those cases.

Can you make more live tests (no need to send me all the data, rather the results) and:

#1- When there is a "glitch" is it only for a "single" packet at a time? (for Y and Pressure glitches)
#2- Y: When there is a "glitch" what is the minimum y-delta?  What algorithm would work to safely ignore those while not "breaking" good cases? It is easy to remember what's in the past (although much more difficult to look into data that comes after).
#3- Pressure: same question as #2 but for the pressure?


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: Aerendraca on October 28, 2013, 09:45:23 PM
I notice that you say that the x-axis has a lot more glitches than the y-axis, but that it is not as noticeable on the x-axis. In reality I believe that the y-axis is actually showing more glitches than the x-axis as the scatter chart offset is not the same on both axis. If you made it so that the scale on x was the same as the scale on y then you would get a better presentation of the scatter distribution, and I think you would see that the y-axis is significantly more glitchy than the x-axis, explaining why you don't notice it on the x. Lots of 'x' and 'y'x there but I hope you get the gist.

Actually on reflection it might not be as significant as I first thought, but still worth doing anyway.
 


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on October 28, 2013, 10:59:14 PM
One thing to check is if the glitch has to do with a specific "bit" being "flipped wrong". The only way to tell is to pinpoint it in the original serial port data.

Hopefully on the next round, we have enough information to help in pinpointing the problem in the serial data (i.e. when in debug mode).  We'll see.


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: hermanvereycken on October 29, 2013, 07:36:22 PM
Hi Guys, can you just elaborate a bit on the bit flip thingie, are there some specific things that i can take into account and look for while doing the analysis? (besides the things mentioned by bernard)

cheers!


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on October 29, 2013, 07:57:03 PM
Hum, difficult to tell what to look for without writing a long post.  I'll try to summarize. The serial data contains values that is encoded as "bits" (binary), each bit is send one at a time. In Intuos boards, the pen data pressure is sent as binary over the air as well.  In binary, numbers are represented as series of 0 and 1. An 8 bit number range from 0 to 255.  If, for example you flip one bit, you can get a 1 where there shouldn't be (like 10000000 )  and this would yield the hexadecimal 80 or decimal 128.  So if the sudden "delta" difference is close to 128 then maybe that 8th bit was flipped to a 1.  The numbers to look for are powers of two:  32, 64, 128, 256, 512, 1024, etc.  Typically serial communication include advanced techniques to detect and even "correct" errors (bit flipping), so even if it occurs, it does not affect anything. In the serial data that Wacom sends, there is no such error detection or correction mechanism.  If the line is really "noisy", then it could yield bad data like that.  One reason for a line being noisy is that the grounds are not properly connected or the wires are very long and pickup various "radio" frequencies.  Only a tool like an oscilloscope can be used to see this condition normally.


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: SONB on October 30, 2013, 06:11:32 PM
Hi guys! Yesterday I finished my first mod. This was my first experience with soldering as well, but I guess I did pretty well  ;D
I had to switch the tablet to 19200 to make it work. Now I'm in the same boat with hermanvereycken: Having random clicks and vertical jumps. I noticed an issue with the layout as well. It's like the tablet area is mapped with an offset. I mean when I touch the bottom edge with the pen, the cursor can't reach the Windows taskbar. When the cursor touches the top edge of the screen, there is still place left at the top of the tablet.


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on October 30, 2013, 07:16:08 PM
Oh okay, so two people having the same issue?  Hum, that actually makes me think it might be easier to fix. Maybe it is just the way the data is interpreted, not that something is broken inside a particular unit or not well connected.

About the Offset: Are you sure that the intuos2 is correctly mapped to the whole screen in the configuration? 

There *is* actually a permanent vertical offset because of the way the "top button strip" is handled. But normally the provided templates were supposed to "hide" this.  This is controlled in WaxBee configuration's Y coordinate mapping. Are you getting a "menu" on the screen when you move your pen at the top-most area of the tablet?  Or is there some other weird configuration of the Intuos2 that could have an effect on this (look for disabling/enabling the menu strip maybe?).


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: SONB on October 30, 2013, 11:06:13 PM
A small update:
Sorry, there is nothing wrong with the top area of the tablet. Those 1200 points in the template, reserved for the menu strip, perfectly match the offset on the tablet. The menu itself doesn't work. Tried copy, paste, cut etc. and switching between modes (pen, mouse), nothing worked. For example, I opened a text file with some text and every time I touched a button in the menu, the window just lost its focus. Like on a simple click on the desktop. And there is no visual feedback, no numbers appear at the top, nothing. I never used the menu, so it's not a big deal for me.

The problem is at the bottom area of the tablet. Like I said, I can't reach the taskbar with my pen. It stops close above its top edge.
Then I noticed that there is a template converting a 9x12 to 12x18 and flashed it. And it's mapping perfectly. Well, almost perfectly. There is a tiny offset on the X-axis. But now I can reach the taskbar. I guess I should flash the initial template and play with the Y-numbers.

I don't know, if it's important, but I'm using Windows 8.1 Pro (64bit) with the latest Wacom legacy driver for Windows 7. Might be the reason, why the menu strip doesn't work.


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on October 31, 2013, 03:01:51 AM
Make sure you do not have the "keep proportions" option ON or other special options like that in the Wacom Driver. 

Yes, you can always adjust the "mapping" by playing with the numbers -- either within the Wacom Driver settings itself (the "counts") or within the WaxBee configuration before flashing it.


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: SONB on November 09, 2013, 03:40:39 AM
I thought I'd share photos of my mod. Managed to hide the tweensy inside the tablet. The reset button is the cap of a stabilo pen  ;D

[attachment=1]

[attachment=2]

[attachment=3]

[attachment=4]

[attachment=5]

[attachment=6]

[attachment=7]


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on November 09, 2013, 04:28:09 AM
Wow! Really a perfect fit! The cable connector inside like this is really great!  Have you put some isolation between the teensy and the main board?  they seem to overlap and be quite close...

And this is one of the nicest reset button I have ever seen!


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: SONB on November 10, 2013, 12:39:48 AM
Thank you! I'm really proud of my first mod  8)
You're right, this is the perfect place for the connector. This way it can't be pulled out and the Teensy and its USB slot are safe.
Well, the Teensy and the mainboard indeed overlap, maybe 1mm, and there are at least 3mm between them. I first tested the tablet without isolation and noticed no negative changes, so I left it as it is. The functionality is the same as it was before, with the Teensy outside the tablet, with much longer wires and my cat on the tablet  ;D I even had to resolder all wires to fit them in.

And this is one of the nicest reset button I have ever seen!

Haha! I like it too  ;D First I wanted to make a simple hole and press the button with something sharp, but then decided to give my dried out Stabilo pen a second life.


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on November 10, 2013, 09:44:13 PM
I would put something like tape, "glue bump", cardboard, plastic or whatnot between the boards -- yes, it is 3mm, but the Teensy is just glued and movements can occur through the cable and in the long run it could move.  It would be a shame if it is broken (through a short-circuit) just because of a detail like that!   ..but it's your choice, I still find your mod to be quite neat.



Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: SONB on November 12, 2013, 12:00:06 AM
You're right. Before it breaks and I have to buy another Teensy and spend an hour replacing it, I'll better spend 5 minutes isolating it. Just found a piece of plastic card, it would perfectly fit between the boards.
Thanks for the warning!  :)


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: SONB on November 18, 2013, 06:05:13 PM
Hey, Bernard.
Any progress with filtering the random clicks and vertical jumps?
Sorry for being impatient, I'm thinking about making a DIY Cintiq soon... Or invest the money in a cheap tablet  :-\



Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on November 18, 2013, 06:12:27 PM
I already have made a change that I hope will help, (to not drop serial bytes). But I could not test it yet. (takes time because I need to setup a board, etc.) I sent it to the other person that has a similar board in case he wants to try it before I even try it myself. I am pretty busy with life atm (the portion of life that pays the bills).

It is going to take more days. I still have good hope that we will eventually put our fingers onto the issue and fix it (or workaround it).  It is possible that there are actually 2 problems (like the pressure or clicks would be fixed, but the Y jumps would still occur for example).  We'll know more in a few days.


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: SONB on November 18, 2013, 06:34:12 PM
Ah, the bills...
Bernard, I'm glad to know that you're still on the case. I know, personal life has highest priority, so take your time.

And thanks a LOT for taking time for us, with our ancient boards  :)


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: SONB on November 28, 2013, 12:59:08 AM
Hey, Bernard! I flashed your new build and there is NO false clicks and NO jumps! Great job! Thanks a lot!

There is another issue: There is absolutely no jittering of the cursor (which is good!) BUT when I move it across the screen, it's stuttering, it feels like playing a game at low frames per second. It doesn't move smooth, it makes kind of micro jumps, as if it doesn't get enough information (coords) from the tablet. And I guess, this is why I can't draw smooth lines.
It's not the fault of your last fix, it was working like that with v0.14 as well. Maybe this is the low baud rate? Does the other guy with the same board have this issue?

And the Intuos 5 template... I don't know if you made any changes but it still doesn't work. No reaction from the tablet. And the Wacom Configuration App shows only "Touch" under the tools, there is no pen. I switched the baud speed, no success.


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: bernard on November 28, 2013, 02:51:42 AM
Do you have other high-speed devices connected to USB?


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: SONB on November 28, 2013, 04:02:58 AM
Nope. Disconnected every USB device, even the mouse. Doesn't get better.


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: SONB on December 16, 2013, 06:18:14 PM
Bernard, thank you very much! The latest Waxbee solved all problems with my board. No stuttering, no jumps.

Thanks again!  ;D


Title: Re: Converting Wacom GD-0912-R from Serial to USB
Post by: benoitb on February 19, 2014, 09:00:29 AM
Looks like the serial is correctly connected... at least enough to make it talk through the initialization since we are seeing the proper version string coming from the tablet.

One detail I am aware is that this first portion gets through even if the serial handshake signals are wrongly connected or floating (not connected).

Next step is to fiddle with the virtual serial port and capture the data sent by the tablet. We need to understand what's wrong!   Btw i am away for 3 weeks, i might not answer if i don't have internet access.
Hello !

I am back from a 1.5 year trip, and came back home to follow up on this project. Thanks to all of you, I installed the waxbee 0.15a firmware, setting the normal baudrate to 19200 as you suggested on my youtube video. It works perfectly on my Windows XP laptop !  :D
Thank you for your help.

The tablet behaves badly on my windows7 64bit machine, I guess this is because of some driver mess. Is there a recommended driver for that OS ? I installed the official 6.20 Wacom driver on that PC.