iRex Forum Forum Index iRex Forum

 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using iLiad tablet as input for a PC

 
Post new topic   Reply to topic    iRex Forum Forum Index -> Stylus Calibration
View previous topic :: View next topic  
Author Message
Adam B.



Joined: 29 Dec 2006
Posts: 364

PostPosted: Thu Jun 07, 2007 3:40 pm    Post subject: Using iLiad tablet as input for a PC Reply with quote

I'm not sure what all would be involved. I'm doing a bit of research myself, but I think it's a bit over my head....

Would using the iLiad as a PC Tablet device fit into this project? I can't find any prebuilt ts modules that provide this function, and I don't know how difficult it would be to write one.
_________________
Openiliad.com - Your source for iLiad Software and Documentation
Back to top
View user's profile Send private message
jharker



Joined: 25 Apr 2007
Posts: 281
Location: Rochester, NY, USA

PostPosted: Thu Jun 07, 2007 4:38 pm    Post subject: Reply with quote

Yow, nifty idea...

I don't really have time to work on it either, and I suspect it's over my head too. But a few thoughts occur to me...

First, you'd have to decide how the iLiad would interface with the computer. Wireless would be best, I think? But USB would be very straightforward.

On the iLiad side, I think the simplest approach would be to simply forward the raw serial port data, either to the USB out, or through the network...

If you send data out through USB (possibly working around the iLiad's current USB connection functionality...?), then the iLiad might just show up transparently on the other computer as a TabletPC-type touchpad.

On the other hand, if you forward data through the network, then I suppose you'd need a program on the desktop computer side to grab data from the network connection and use it to create a new pseudo-serial port connection.

Now that I think about it, I suppose all you'd really need would be a program designed to feed serial port data between two computers via ssh or telnet or something. It might have already been done...

...Okay, some brief poking around in SourceForge revealed a couple of programs, ser2net and net2com, which are supposed to basically connect serial port to TCP/IP. So those might be a useful place to start?
Back to top
View user's profile Send private message
Adam B.



Joined: 29 Dec 2006
Posts: 364

PostPosted: Thu Jun 07, 2007 4:49 pm    Post subject: Reply with quote

Brilliant, I didn't think about using it across a network. I was thinking USB, but network should work as well.

So if I link /dev/ttyS0 on my iliad to /dev/wacom on my Ubuntu machine....Ubuntu's built-in wacom driver should work. Correct?
_________________
Openiliad.com - Your source for iLiad Software and Documentation
Back to top
View user's profile Send private message
jharker



Joined: 25 Apr 2007
Posts: 281
Location: Rochester, NY, USA

PostPosted: Thu Jun 07, 2007 7:00 pm    Post subject: Reply with quote

Adam B. wrote:
So if I link /dev/ttyS0 on my iliad to /dev/wacom on my Ubuntu machine....Ubuntu's built-in wacom driver should work. Correct?


Oh! I hadn't thought of /dev/wacom. I don't know exactly how all the linux /dev port stuff works, but my guess would be yes, that should work... let me know if you try it, I don't have time to try it myself right now, but I'd love to know!
Back to top
View user's profile Send private message
Adam B.



Joined: 29 Dec 2006
Posts: 364

PostPosted: Thu Jun 07, 2007 7:07 pm    Post subject: Reply with quote

jharker wrote:
Oh! I hadn't thought of /dev/wacom. I don't know exactly how all the linux /dev port stuff works, but my guess would be yes, that should work... let me know if you try it, I don't have time to try it myself right now, but I'd love to know!


Right now, my biggest concern is a virtual serial port. I can't find any programs that will link a networked serial port to a virtual device. There are plenty that do the serving (mostly for telnet and modem sessions), but not too many clients.
_________________
Openiliad.com - Your source for iLiad Software and Documentation
Back to top
View user's profile Send private message
Adam B.



Joined: 29 Dec 2006
Posts: 364

PostPosted: Thu Jun 07, 2007 8:15 pm    Post subject: Reply with quote

I tried a hacky netcat solution...

On the iLiad

Quote:
nc -l -p 1234 </dev> /dev/ttyS0


On my PC

Quote:
nc 10.1.3.107 1234 </dev> /dev/wacom


I was hoping it would use the /dev/wacom device as both the input and output. But a wacdump couldn't find it.

I'm quickly running out of ideas.
_________________
Openiliad.com - Your source for iLiad Software and Documentation
Back to top
View user's profile Send private message
jayk
Community Developer


Joined: 19 Nov 2006
Posts: 90

PostPosted: Thu Jun 07, 2007 9:24 pm    Post subject: Reply with quote

Adam B. wrote:
I tried a hacky netcat solution...
On the iLiad
Quote:
nc -l -p 1234 </dev> /dev/ttyS0

On my PC
Quote:
nc 10.1.3.107 1234 </dev> /dev/wacom

I was hoping it would use the /dev/wacom device as both the input and output. But a wacdump couldn't find it.
I'm quickly running out of ideas.


The problem is you need to create a node / virtual device that other apps can read from. NC won't do that for you.

You could try using socat... http://www.dest-unreach.org/socat/ It has a 'PTY' mode which essentially creates a virtual serial device connected to the remote side.

I've not tried it, but theoretically it could work. Alternately, you could create a new module for the linux wacom project that just relays the requests.

I'd definitely try the socat way first.

JayK
Back to top
View user's profile Send private message
Adam B.



Joined: 29 Dec 2006
Posts: 364

PostPosted: Thu Jun 07, 2007 10:07 pm    Post subject: Reply with quote

Thanks, I'm making progress

On the iLiad

Code:
 socat TCP-LISTEN:23 /dev/ttyS0,raw,echo=0,crnl


On my PC

Code:
sudo socat PTY,link=/dev/wacom,raw,echo=0 TCP:10.1.3.107:23


Wacdump

Quote:
sudo wacdump -v /dev/wacom
17:04:04.681 INFO: Opening log
17:04:04.681 INFO: Setting baud rate to 38400
17:04:04.681 INFO: Sending reset
17:04:04.015 INFO: Setting baud rate to 19200
17:04:04.015 INFO: Sending reset
17:04:04.351 INFO: Setting baud rate to 9600
17:04:04.352 INFO: Sending reset
17:04:04.879 WARN: Discarding C0
17:04:04.879 WARN: Discarding 20
17:04:04.879 WARN: Discarding 19
17:04:04.879 WARN: Discarding 18
17:04:04.879 WARN: Discarding 32
17:04:04.879 WARN: Discarding 7F
17:04:04.879 WARN: Discarding 01
17:04:04.879 WARN: Discarding 00
17:04:04.879 WARN: Discarding 00
17:04:04.879 WARN: Discarding 00
17:04:04.879 WARN: Discarding 04
WacomOpenTablet: Connection timed out

_________________
Openiliad.com - Your source for iLiad Software and Documentation
Back to top
View user's profile Send private message
jayk
Community Developer


Joined: 19 Nov 2006
Posts: 90

PostPosted: Thu Jun 07, 2007 10:28 pm    Post subject: Reply with quote

Adam B. wrote:

sudo wacdump -v /dev/wacom
17:04:04.681 INFO: Opening log
17:04:04.681 INFO: Setting baud rate to 38400
17:04:04.681 INFO: Sending reset
17:04:04.015 INFO: Setting baud rate to 19200
17:04:04.015 INFO: Sending reset
17:04:04.351 INFO: Setting baud rate to 9600
17:04:04.352 INFO: Sending reset
17:04:04.879 WARN: Discarding C0
17:04:04.879 WARN: Discarding 20
17:04:04.879 WARN: Discarding 19
17:04:04.879 WARN: Discarding 18
17:04:04.879 WARN: Discarding 32
17:04:04.879 WARN: Discarding 7F
17:04:04.879 WARN: Discarding 01
17:04:04.879 WARN: Discarding 00
17:04:04.879 WARN: Discarding 00
17:04:04.879 WARN: Discarding 00
17:04:04.879 WARN: Discarding 04
WacomOpenTablet: Connection timed out


try forcing wacdump into tpc mode - I couldn't get any useful information from it without forcing it into idsv4 (aka tabletPC mode) it might actually be working.

JayK
Back to top
View user's profile Send private message
jharker



Joined: 25 Apr 2007
Posts: 281
Location: Rochester, NY, USA

PostPosted: Fri Jun 08, 2007 12:52 am    Post subject: Reply with quote

Yes, as I recall wacdump must be forced to tpc mode, it won't work otherwise.
Back to top
View user's profile Send private message
Adam B.



Joined: 29 Dec 2006
Posts: 364

PostPosted: Fri Jun 08, 2007 1:25 pm    Post subject: Reply with quote

I've got wacdump to recognize the tablet. However, neither X nor Gimp are detecting it. This is my first dealings with wacom, so I'm sure I still have a lot to learn.

_________________
Openiliad.com - Your source for iLiad Software and Documentation
Back to top
View user's profile Send private message
CommanderROR



Joined: 04 Aug 2006
Posts: 104

PostPosted: Sun Jun 17, 2007 12:54 am    Post subject: Reply with quote

Great to hear that you are working on this kind of functionalty!
I actually had the idea for this way back when I first got my Iliad (actually even before I got it...^^) and also suggested it to the iRex devs back then when they asked me for Software ideas...

I never would have thought of network connection actually, I always assumed it would be handled through USB and a driver for Windows...but it's still cool that somebody reawakened my idea. For me the project has long ago lost it's merit because the reason I was interested was my girlfriend (a designer) who could have then used the Iliad as a makeshift graphics tablet.
She has bought a Wacom Intuos quite a while ago so won't be needing it anymore, but I guss there should be many people out there who would love such an implementation...even if it is only for signing things digitally... Shocked
Back to top
View user's profile Send private message
danielday



Joined: 21 Apr 2007
Posts: 22
Location: Ontario, Canada

PostPosted: Sun Jun 17, 2007 3:03 pm    Post subject: Iliad as tablet / input device Reply with quote

.... that would be cool. I often patch sketched diagrams into papers when I am writing. I tried a Wacom tablet in the past, but for an infrequent/unskilled user, it was not very functional since you can't see where the stylus is; whereas the Iliad draws under the tip. Now on my Iliad, I have to save the sketch, rename the file so I can find it later, transfer it to my PC, then cut & paste; it works well but is quite cumbersome.
DD
_________________
Life is what happens when you're making other plans. (John Lennon)
Back to top
View user's profile Send private message MSN Messenger
mind



Joined: 31 Aug 2007
Posts: 22

PostPosted: Sun Sep 30, 2007 7:34 pm    Post subject: Reply with quote

EDIT: I edited this because it cut some my text (also change "code" with "quote")... A bug in the forum?

Last edited by mind on Sat Oct 06, 2007 7:03 pm; edited 3 times in total
Back to top
View user's profile Send private message MSN Messenger
mind



Joined: 31 Aug 2007
Posts: 22

PostPosted: Sun Sep 30, 2007 8:46 pm    Post subject: Reply with quote

With just netcat you can do:

On iLiad:
Quote:
nc -l -p 1234 RED1 /dev/ttys0

On pc:
Quote:
nc ereader 1234 RED2 /dev/ptysf

Where RED1 is the minor sign and RED2 is the major (the forum has a sort of bug for these signs).
Then if you (on pc):
Quote:
cat /dev/ttysf

you obtain something as just as you move the pen on the iLiad.

Hope this is helpful.
Regards, Gil

EDIT: I edited this because it cut some my text (also change "code" with "quote")... A bug in the forum?


Ok, other news. Put this in /etc/X11/xorg.conf:

Code:
Section "ServerLayout"

[... bla bla bla ...]

        InputDevice    "cursor"    "SendCoreEvents"
   InputDevice    "stylus"    "SendCoreEvents"
        InputDevice    "eraser"    "SendCoreEvents"
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "stylus"
  Option        "Device"        "/dev/ttysf"          # SERIAL ONLY
  Option        "Type"          "stylus"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "eraser"
  Option        "Device"        "/dev/ttysf"          # SERIAL ONLY
  Option        "Type"          "eraser"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "cursor"
  Option        "Device"        "/dev/ttysf"          # SERIAL ONLY
  Option        "Type"          "cursor"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection

After making all said above, startx: now you have an *unusable* tablet!
It shows in gimp (3 device: pen, eraser, cursor) and wacdump, but when you press or move around on display, the cursor move instantly to bottom right corner (I know because it open Calendar on KDE).
I think it just about come config in xorg.conf. Anyway it's seen as c100 table touchscreen like in Adam B. screen.
I referred to this link for config:
http://gentoo-wiki.com/HARDWARE_Acer_Travelmate_C100

I hope someone will find how to fix this ^^
(anyway I just own a table Razz)
Regards, Gil
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    iRex Forum Forum Index -> Stylus Calibration All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


You can find our complete guidelines here.
Powered by phpBB © 2001, 2005 phpBB Group