HP Forums
WP34s Flash Question - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: WP34s Flash Question (/thread-225104.html)



WP34s Flash Question - rgray - 06-18-2012

I know I'm late to the party but...I am attempting to flash an HP30b to WP34s under Fedora 12. I run MySamba under Wine and the serial port list is empty. My serial port is "ttyS0" (via a "dmesg | grep tty") so I type that in the "connect to" box. After connecting the calculator to the port, and toggling the cable buttons as per the instructions, I press "Send File" but rather than downloading I get an error message from MySamba "Error, could not connect to calculator". Of course I have now erased the calculator and so cannot turn that on (or is it off) in order to repeat the procedure. I also don't know how to correctly specify the serial port or if that is in fact the problem. Any ideas anyone? Thank you.


Re: WP34s Flash Question - Alexander Oestert - 06-18-2012

Maybe >>>this<<< helps.

Or
>>>this<<<


Edited: 18 June 2012, 9:34 a.m.


Re: WP34s Flash Question - rgray - 06-18-2012

No amount of restarting MySamba seems to help. I guess my questions boil down to:

(i) Does MySamba accept text input for the port ID and if so what is the correct format (if not how does one get a populated drop down list)?

(ii) Now that the calculator is erased, and can no longer be (visibly) turned on how does one get it into a state suitable for flashing ?


Re: WP34s Flash Question - rgray - 06-18-2012

I also tried Pascal's tool wp34sflashcmd. This returns the error "Cannot open serial port" on two different linux boxes.


Re: WP34s Flash Question - pascal_meheut - 06-18-2012

Then you probably have a problem with your serial port... The flashing tools can have problems opening the communication with the HP30b/WP34s but as far as I know, that's all.

"Cannot open serial port" means it cannot open the device you gave as an argument. So you have a problem somewhere with your driver, configuration, cable... Or another program has the serial port already opened...


Re: WP34s Flash Question - rgray - 06-18-2012

Thanks, Pascal. How does one debug a serial port problem and does the state of the calculator affect the program?


Re: WP34s Flash Question - rgray - 06-18-2012

OK, the "Cannot open serial port" was merely a permissions problem. Now wp34sflashcmd crashes with:

./wp34sflashcmd: symbol lookup error: ./wp34sflashcmd: undefined symbol: _ZN13QElapsedTimer5startEv


Re: WP34s Flash Question - pascal_meheut - 06-18-2012

This is better :-)

It comes probably from your QT version being too old. Can you check it?


Re: WP34s Flash Question - rgray - 06-18-2012

I have installed:

qt-1:4.6.3-8.fc12 (i686)

qt3-3.3.8b-28.fc12 (i686)


Re: WP34s Flash Question - Cristian Arezzini - 06-18-2012

Hi rgray, I use Mysamba without problems under Linux with Wine, but there are two things I had to do to make it work:

- Create a symlink in Wine's dosdevices folder, which I called com1 and which points to the actual port (in your case I suppose "/dev/ttyS0);

- Give my regular user the permission to use modems (as on my system, that port is seen as a modem).

After that, I can simply run MySamba, type com1 in the port field, and it just works.

HTH,
Cristian


Re: WP34s Flash Question - pascal_meheut - 06-18-2012

You need at least QT 4.7 or 4.8 to run the WP34s Qt programs.


Re: WP34s Flash Question - rgray - 06-19-2012

Hi Pascal, I have discovered that I actually have qt-4.6.3-8.fc12.i686 installed (excuse my linux ignorance) but have been unable to find an rpm for 4.7 or 4.8 for fc12. I guess this means I must compile it myself.


Re: WP34s Flash Question - rgray - 06-19-2012

Hi Cristian, your information was very helpful and I now can run MySamba (semi) successfully. This of course leads to my next question - since I erased the calculator firmware in my first unsuccessful attempts and hence cannot now (visibly at least) turn the machine on, what sequence of steps do I need to follow to successfully reflash i.e. presumably some series of cable button pressing. MySamba runs but says "unable to connect" (note this is a completely different message from my previous serial port warnings).


Re: WP34s Flash Question - Cristian Arezzini - 06-19-2012

If you have added to your user permission to use the serial port (or modems, depending on how your distro handles this - I use Ubuntu and here it's called modems), it should work, as long as the symlink is good.
To flash it, and to be sure it's on, I usually press Reset on the cable and then On on the calculator. But (I might well be wrong) I seem to remember that in the "flash erased" state, you can't turn off the calculator; so if you left it like that for many hours, it's perfectly possible that the batteries have gone flat.
I personally would try Reset+On, then if it doesn't work I'd put fresh batteries and try again, if it still doesn't work there's something to sort out with serial comms - but while experimenting remove the fresh batteries! :)

Cristian


Re: WP34s Flash Question - pascal_meheut - 06-20-2012

You can download it here:

http://qt.nokia.com/downloads

Then change the library path. Another solution would be for me to add the dynamic libs to the flash & emulator distribs but this is low priority and I'm afraid it may create other problems.


Re: WP34s Flash Question - rgray - 06-20-2012

Hi Pascal, I installed Qt 4.8 via the link you supplied and altered the library path. Now when I run wp342flashcmd I get

"Trying to connect"

and after a brief delay

"Cannot connect to WP34s"

Would this have something to do with the state which the calculator is in? Recall that on my first unsuccessful flash attempt the original firmware was erased and so the display is now blank. I have replaced the batteries as suggested.


Re: WP34s Flash Question - pascal_meheut - 06-20-2012

Connecting to the WP34s is an act of faith more than anything else :-)

On some platforms, I do it relatively quickly, on others it is a long & painful process...
Sometimes, I have to try reset+on or the whole ERASE+RESET, ERASE+ON, RESET ON many times.

No guarantee here, I'm still trying to find a way to make it more reliable. The problem is not on my side of the program as I reproduce what MySamba and SAM-BA do but somewhere between the driver and the way the WP34s tries to adapt itself to the serial port speed.


Re: WP34s Flash Question - rgray - 06-21-2012

Hi Pascal. After many attempts, using every possible combination of cable buttons, I gave up and switched to another machine, different hardware but also running Fedora 12, and it worked first time. I still don't understand what is different but thanks for the help.


Re: WP34s Flash Question - pascal_meheut - 06-21-2012

I do not understand either.