Bongofish
November 19, 2019, 03:08:29 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: You may have to login twice the first time,  but we don't know why - Erm I mean it's a security thing yeah that's it - security.
 
   Home   Help Search Login Register  
Pages: [1] 2 3 ... 6
  Print  
Author Topic: Help with calibration with waxbee  (Read 20272 times)
bumhee34
Sr. Member
****
Posts: 146


View Profile WWW
« on: October 31, 2013, 03:17:03 AM »

am trying to find best mapping with su 1206e 01x

the real active area of my panel is 245.70 (H) X 184.275 (W)

and the hid listener is showing the following message when i upload debug template.

* min max.JPG (67.86 KB. 666x542 - viewed 322 times.)


Please tell me what to modify in template. Thx in advance.

« Last Edit: October 31, 2013, 09:13:59 AM by bumhee34 » Logged
bernard
Administrator
Hero Member
*****
Posts: 2590


pato mania


View Profile
« Reply #1 on: October 31, 2013, 03:32:44 AM »

Hum, it seems the debug did not correctly found the max X and Y. the Pressure is also way off and the Tilt also.  All values are wrong. Do you always get those weird values?  try it again please. Power the Teensy and the board (i.e. connect the USB) without the pen touching it.

Logged
bumhee34
Sr. Member
****
Posts: 146


View Profile WWW
« Reply #2 on: October 31, 2013, 07:53:21 AM »

Just like this without pen


* nopen.JPG (31.15 KB, 666x438 - viewed 317 times.)
Logged
bumhee34
Sr. Member
****
Posts: 146


View Profile WWW
« Reply #3 on: October 31, 2013, 07:54:44 AM »

with pen in proximity, it shows different numbers


* 22.JPG (52.62 KB, 666x420 - viewed 305 times.)
Logged
bernard
Administrator
Hero Member
*****
Posts: 2590


pato mania


View Profile
« Reply #4 on: October 31, 2013, 01:59:07 PM »

This is not normal. Without the pen it should have received the data. It seems only 3 bytes got in.

Next step is to do it manually:  (I should write a fixed page about this, I think it must be the 20th+ time I write this in this forum).

Flash the virtual serial port .hex file using the Teensy loader. This is found WaxBee download section. This will create a COM port on your system. Use a serial terminal tool like RealTerm that can display hex bytes.  Set it to the appropriate baud rate and enter the commands as per http://sourceforge.net/apps/mediawiki/linuxwacom/index.php?title=ISDV4_Protocol
Set the baud rate to the matching speed in the template.  (was that 38400?)  In RealTerm, put the display to "Hex".
Type 0 (zero) to stop sending pen coordinates, Type 1 to to start it back.  -- this is to check that the communication works.
Type * so it outputs the special packet that talks about the X/Y max, etc. It is all binary, but this packet has more bytes than the usual packet for pen coordinates.

Logged
bumhee34
Sr. Member
****
Posts: 146


View Profile WWW
« Reply #5 on: November 01, 2013, 02:10:39 AM »

I gave up. Don't know why, but under windows 8, the imaginary "COM" port is not activated.
So i could not communicate with my tablet board through usb serial port. Tried with putty, teraterm, and realterm, none of them worked out.
Maybe I did some mistakes with installing usb serial driver. I uploaded usb serial hex on teensy anyway.
Maybe I just need to modify Slave X and Y size by manual (increasing numbers or decreasing..step by step until perfect match).
Logged
bernard
Administrator
Hero Member
*****
Posts: 2590


pato mania


View Profile
« Reply #6 on: November 01, 2013, 02:17:24 AM »

http://www.pjrc.com/teensy/usb_serial.html

Big sorry. Forgot to tell you about this. Follow the steps to enable on Windows.
Logged
bumhee34
Sr. Member
****
Posts: 146


View Profile WWW
« Reply #7 on: November 01, 2013, 04:21:04 AM »

I know about this one. But, actually i cannot install the driver, strange.. Error occurred while installing all the time eventhough with Admin privileges.
Logged
bumhee34
Sr. Member
****
Posts: 146


View Profile WWW
« Reply #8 on: November 01, 2013, 04:35:17 AM »

Solved, there is an issue on windows 8 with signatures. I will update the results later.
Logged
bumhee34
Sr. Member
****
Posts: 146


View Profile WWW
« Reply #9 on: November 01, 2013, 04:41:55 AM »

Just for testing, when pen is in proximity, realterm shows the following characters.

Actually I do not understand what to do with the link, "http://sourceforge.net/apps/mediawiki/linuxwacom/index.php?title=ISDV4_Protocol".

What to do next?


* real.JPG (133.02 KB, 692x579 - viewed 335 times.)
Logged
bumhee34
Sr. Member
****
Posts: 146


View Profile WWW
« Reply #10 on: November 01, 2013, 11:48:15 AM »

This is what i've gotten upto now.

with 38400, if i send *, no response.
after changing to 19200 when i type *, it shows C0 2F 7E 23 and so on.

Is this important information?


* star.JPG (61.4 KB, 695x448 - viewed 295 times.)
Logged
bernard
Administrator
Hero Member
*****
Posts: 2590


pato mania


View Profile
« Reply #11 on: November 01, 2013, 02:18:45 PM »

Yes!  After the * it is supposed to be 11 bytes.  Let me interpret those bytes... (this follows the following table: http://sourceforge.net/apps/mediawiki/linuxwacom/index.php?title=ISDV4_Protocol#Format_of_Stylus_Query_Response )


0  1  2  3  4  5  6  7  8  9  10
C0 2F 7E 23 7F 7F 41 00 00 00 05

                      #7654 3210
bits of byte 6: (41) = 0100 0001


(numbers are in hexadecimal)
Max X = 2F << 7 + 7E << 2 + 2  = 1780 + 1F8 + 2 = 197A  or decimal 6522
Max Y = 23 << 7 + 7F << 2 + 0  = 1180 + 1FC + 0 = 137C or decimal 4988
Max Pressure =  1 << 7 + 7F = FF or decimal 255
No tilt X nor Y
Version = 5

In short:

Max X = 6522
Max Y = 4988
Max Pressure = 255 (as expected)
No Tilt (as expected)

If we look at the physical active area that you told us : 245.70 (X) x 184.275 (Y) that makes about the same ratio and about ~0.0376 mm resolution.
« Last Edit: November 01, 2013, 03:45:04 PM by bernard » Logged
bernard
Administrator
Hero Member
*****
Posts: 2590


pato mania


View Profile
« Reply #12 on: November 01, 2013, 03:47:37 PM »

I do not know why we are missing bytes when running in debug mode -- we only see the first 3-4 bytes and then nothing. Weird. Anyhow. Probably I should add some "wait" time in there to make it more robust.  It does not matter to you since this is only to know about what to put in the template.

Eventually, I might add a feature to auto-detect the size. There are some many variations of ISDV4 models, everybody has to go through a debug phase to find the max x and max y.
Logged
bernard
Administrator
Hero Member
*****
Posts: 2590


pato mania


View Profile
« Reply #13 on: November 01, 2013, 07:10:15 PM »

About windows 8 & signatures: How did you finally managed to install it?

Logged
bumhee34
Sr. Member
****
Posts: 146


View Profile WWW
« Reply #14 on: November 02, 2013, 02:09:00 AM »

About windows 8 & signatures: How did you finally managed to install it?



I refer to this link http://www.pjrc.com/teensy/windows8.txt.

So finally, u interpret the bytes those are 6522 and 4988.
So, in the intuos template, what should I modify? Thx for your great help.
Logged
Pages: [1] 2 3 ... 6
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!