[Featured][Dev] PindurTI (Best Thread 2005)

Here you can find side projects of the staff and great projects which we think should get extra support. (Note that featured projects are not projects by staff members of MaxCoderz)

Moderator: MaxCoderz Staff

User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4141
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

Post by tr1p1ea »

Im pretty sure this has been asked a few times, and probably the reason CoBB wrote the send utility. Its in the same dir as the latest PindurTI build :).
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

Ah, yes, I forgot about that. I'll give it a try, but I doubt it's going to work with Wine...
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
User avatar
NanoWar
Extreme Poster
Posts: 365
Joined: Fri 17 Dec, 2004 6:39 pm
Location: #$&"%§!
Contact:

Post by NanoWar »

Well, it *does* work with wine on my machine (suse 10.1)
Revolution Software
User avatar
GuillaumeH
Regular Member
Posts: 143
Joined: Fri 17 Dec, 2004 8:30 pm
Contact:

Post by GuillaumeH »

The version of Wine matters more.
User avatar
Jim e
Calc King
Posts: 2457
Joined: Sun 26 Dec, 2004 5:27 am
Location: SXIOPO = Infinite lives for both players
Contact:

Post by Jim e »

Does everyone here use linux?
Image
User avatar
kv83
Maxcoderz Staff
Posts: 2735
Joined: Wed 15 Dec, 2004 7:26 pm
Location: The Hague, Netherlands
Contact:

Post by kv83 »

Jim e wrote:Does everyone here use linux?
No *raises hand for him and benryves* Windows FTW!
Image
Liazon
Calc Guru
Posts: 962
Joined: Thu 27 Oct, 2005 8:28 pm

Post by Liazon »

no... does anyone use a mac?
Image Image Image
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

Wow, you're right... it works. Amazing.

And my PTI is running at a whopping average of 75% on my beautiful AMD Athlon64 3000+... That's just as bad as it used to be on my laptop. I'll see what I can do in the area of writing a GTK frontend for PTI...
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

Okay, one evening later I got an interface with the PTI non-interactive linux build through two pipes and a simple but nicely native-Gnome-looking GUI that doesn't really do anything yet. No keypad of course, like the original. And I'm still far, FAR, from having such a lovely display emulation as the original. Or linking, or screenshotting, or...

Anyway, I plan to finish this up tomorrow (please let it be tomorrow :P) to the point where I can load a ROM image and some .8?? files, pass keyboard input to PTI, and I'll give a go at getting the PTI output in a Pixbuf. After that it's open source (even though it's crappy code) for anyone who wants to extend on it's functionality.
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
Andy_J
Calc Master
Posts: 1110
Joined: Mon 20 Dec, 2004 10:01 pm
Location: In the state of Roo Fearing
Contact:

Post by Andy_J »

I see I'm a little late, but yeah everything worked fine for me with Darwine with one of the most recent version of Wine. :) (As evidenced on the previous page, anyway.)
ImageImage
Image
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

Hmm, I'm gonna need a bit of help here from either CoBB or Ben...

I do the following:

Code: Select all

File selected: resources/TI-83.rom
Sending file...OK
Activating slot 0...OK
Running for 1000cc...OK
Pressing ON...OK
Running for 1000cc...OK
But my state dumps tell me that the screen is still off... Why is that? :) Am I too impatient with 1000 clockcycles?

Code: Select all

Dumping state lcd physics...OK
        Busy time min.: 25 cc
        Busy time max.: 47 cc
        Remains busy: 0 cc
        Momentum up: 15%
        Momentum down: 7%
        Contrast factor: 5%
        Op-amp factor: 15%
        White base level: 5%
        Black base level: 100%
        Current white: -65%
        Current black: 30%
Dumping state lcd software...OK
        Power: off
        Contrast: 18
        X-Address: 0
        Y-Address: 0
        Z-Address: 0
        Counter: Y, up
        Word length: 8
        Op-amps: amp1=0 amp2=0
        Test mode: off
        Dummy read: yes
Dumping state model...OK
        Model: TI-83 1.07
Dumping state time...OK
        Clock: 2008
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
User avatar
Jim e
Calc King
Posts: 2457
Joined: Sun 26 Dec, 2004 5:27 am
Location: SXIOPO = Infinite lives for both players
Contact:

Post by Jim e »

Timendus wrote:But my state dumps tell me that the screen is still off... Why is that? :) Am I too impatient with 1000 clockcycles?
Yes

Thats only 1/6000th of a second. You need to press for about 1/2 a second and release and run for a bit longer.

Edit: You should probably give more boot up time than that to.
Image
CoBB
MCF Legend
Posts: 1601
Joined: Mon 20 Dec, 2004 8:45 am
Location: Budapest, Absurdistan
Contact:

Post by CoBB »

Yes, you should wait about half a second after resetting, then press on, then wait half a second or so and you can release it afterwards. Maybe you can get away with less, I guess there are differences between the models too.
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

Code: Select all

Sending file...OK
Activating slot 0...OK
Resetting the calculator...OK
Running for 6000000cc...OK
Pressing ON...OK
Running for 6000000cc...OK
Releasing ON...OK
Running for 6000000cc...OK
[...]
Dumping state lcd software...OK
        Power: off
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

Okay, I figure I owe the rest of the board an update :)

It took CoBB and me about a dozen private messages and a lot of patience to find out that the linux non-interactive build that's on the PTI website is actually broken. It'll never turn the screen on. Once that was clear I tried to recompile a new version of the linux non-interactive build from the original source, but that gave me exactely the same result. So that pretty much got me nowhere. Now I'm just hoping that CoBB will come up with a brilliant idea.

But I've been using the Windows version in non-interactive mode through Wine (talking about an ugly hack :)) to develop my front-end, and it's getting together. Here's a screenshot of the first "Mem cleared" ;)

Image

It emulates a screen, with more or less as pretty looks as the original (though I still have to properly fix an ugly signed/unsigned int error, what you're seeing here is the yucky workaround). It updates the screen 25 times a second, which is the maximum greyscale output frequency of the PTI back-end, and it has the emulator run the corresponding number of clockcycles on every update. In other words; you can see the cursor flashing at the proper speed :)

Interface-wise you can load a ROM image and .8?? files through a fancy file browse interface (Emulator -> Open -> "ROM image" or "Program/Group", can't take a screenshot of that for some reason, so you'll have to take my word for it), you can make the program dump it's status to the command line and you can type in keys which will be passed on to PTI. I still have to add a few more keys though to make it useful :)

It depends on libgtkmm and it should run nicely under Gnome and KDE.

Now the only serious problem is to get a native Linux build that works properly... :( Otherwise this little program doesn't really solve any problem...
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
Post Reply