hp 50g & hptalx

Postate qui per tutte le discussioni legate a Linux in generale.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Gnu/Linux in genere, se l'argomento è specifico alla Slackware usate uno dei forum Slackware o Slackware64.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Avatar utente
sya54M
Master
Master
Messaggi: 1665
Iscritto il: mer 6 giu 2007, 14:44
Nome Cognome: Andrea Peluso
Slackware: 64-current
Kernel: ultimo
Desktop: KDE
Località: (Salerno)
Contatta:

hp 50g & hptalx

Messaggio da sya54M »

ciao, ho appena comprato la hp 50g ed ho installato hptalx per poter installarci i programmi, ma come clicco su connetti va in segmentation fault.
presumo che non sia più compatibile con le nuove glibc (quelle in current)
dmesg prima

Codice: Seleziona tutto

USB Serial support registered for hp4X
hp4X 4-2:1.0: hp4X converter detected
usb 4-2: hp4X converter now attached to ttyUSB0
usbcore: registered new interface driver hp4X
hp4x: v1.00:HP4x (48/49) Generic Serial driver

Codice: Seleziona tutto

bash-3.1$ hptalx
Segmentation fault
dmesg dopo

Codice: Seleziona tutto

hptalx[15628]: segfault at 0 ip b6e6d3b2 sp bf9582ec error 4 in libc-2.11.1.so[b6df3000+16b000]
quindi vedo che è riconosciuta dal kernel e raggiungibile a ttyUSB0, ma come la gestisco se quel programmino non funziona?
grazie

Avatar utente
robbybby
Linux 4.x
Linux 4.x
Messaggi: 1223
Iscritto il: sab 16 dic 2006, 10:48
Slackware: 13.1 / 64 bit
Kernel: 3.3.x
Desktop: KDE 4.4.5
Località: Fra Trantor e Terminus

Re: hp 50g & hptalx

Messaggio da robbybby »

Ho anch'io una HP50g. Non ho mai usato hptalx, ma, per trasferire i programmi, uso una schedina SD (una da 256 mega, che giaceva inutilizzata in fondo a un cassetto): piu' semplice, e dal funzionamento sicuro. Un lettore di schede SD (e altri formati) per il computer costa, oramai, meno di 10 euro.

Avatar utente
sya54M
Master
Master
Messaggi: 1665
Iscritto il: mer 6 giu 2007, 14:44
Nome Cognome: Andrea Peluso
Slackware: 64-current
Kernel: ultimo
Desktop: KDE
Località: (Salerno)
Contatta:

Re: hp 50g & hptalx

Messaggio da sya54M »

si lo so che potrei usare una sd, ma perchè dovrei impormi questi limiti?

Avatar utente
robbybby
Linux 4.x
Linux 4.x
Messaggi: 1223
Iscritto il: sab 16 dic 2006, 10:48
Slackware: 13.1 / 64 bit
Kernel: 3.3.x
Desktop: KDE 4.4.5
Località: Fra Trantor e Terminus

Re: hp 50g & hptalx

Messaggio da robbybby »

sya54M ha scritto:si lo so che potrei usare una sd, ma perchè dovrei impormi questi limiti?
Perche' col cavo non funziona? :) :)

Avatar utente
sya54M
Master
Master
Messaggi: 1665
Iscritto il: mer 6 giu 2007, 14:44
Nome Cognome: Andrea Peluso
Slackware: 64-current
Kernel: ultimo
Desktop: KDE
Località: (Salerno)
Contatta:

Re: hp 50g & hptalx

Messaggio da sya54M »

robbybby ha scritto:Perche' col cavo non funziona?
:? :? :?
ma se nel kernel cè un driver apposta ed esistono vecchi programmi (che sembrano non funzionare più) per gestirle... un modo ci deve essere, no? :?:

Avatar utente
robbybby
Linux 4.x
Linux 4.x
Messaggi: 1223
Iscritto il: sab 16 dic 2006, 10:48
Slackware: 13.1 / 64 bit
Kernel: 3.3.x
Desktop: KDE 4.4.5
Località: Fra Trantor e Terminus

Re: hp 50g & hptalx

Messaggio da robbybby »

Boh. Non ho mai provato.
Ho installato i programmi che mi servono con la SD, e poi non me ne sono piu' preoccupato.
La SD la uso anche per fare il backup della calcolatrice.

Hai personalizzato le opzioni, per renderla piu' funzionale?
Hai messo il programma che ti da' esattamente lo stato di carica della batteria? E' comodissimo, e ti evita di rimanere a secco quando ti occorre.
Io la uso in RPN: la modalita' algebrica, la mia calcolatrice l'ha avuta solo per pochi secondi, appenda accesa la prima volta :)
Hai notato che, se premi i tasti in rapida successione, a volte nel perde uno? Sai che c'e' una maniera per fare in modo che non li perda?
Lo sai che devi tenere l'orologio visualizzato sul display (nell'angolo in alto a destra) per evitare un fastidioso bug che le fa ignorare un tasto se lo premi nel momento in cui sta andanndo in sleep?

Avatar utente
sya54M
Master
Master
Messaggi: 1665
Iscritto il: mer 6 giu 2007, 14:44
Nome Cognome: Andrea Peluso
Slackware: 64-current
Kernel: ultimo
Desktop: KDE
Località: (Salerno)
Contatta:

Re: hp 50g & hptalx

Messaggio da sya54M »

:shock: non so nulla di questi 2 bug... mi puoi spiegare meglio? ...e io che scelto hp dopo aver letto dei bug della texas...
e il programma per la batteria dove lo trovo?

Avatar utente
robbybby
Linux 4.x
Linux 4.x
Messaggi: 1223
Iscritto il: sab 16 dic 2006, 10:48
Slackware: 13.1 / 64 bit
Kernel: 3.3.x
Desktop: KDE 4.4.5
Località: Fra Trantor e Terminus

Re: hp 50g & hptalx

Messaggio da robbybby »

Il bug e' solo quello legato all'orologio.
Per il resto vai tranquillo: e' un'ottima calcolatrice.
Io prima avevo la 28S: non so piu' fare a meno della notazione RPN, sulle calcolatrici. Mi trovo molto meglio che con l'algebrica.
L'altro, e' solo un timing di scansione della tastiera troppo prudente: io me ne sono accorto dopo qualche mese che la usavo, un giorno che stavo facendo conti a raffica.

Il programma della batteria si chiama batstatus, e lo trovi su http://www.hpcalc.org:
http://www.hpcalc.org/details.php?id=6585

Per accelerare la scansione della tastiera (non troppo, altrimenti non funziona piu' il debouncing) basta il seguente programmino

Codice: Seleziona tutto

<<
800 ->KEYTIME
>>
PS:
ti posto qui una piccola raccolta di suggerimenti, raccolti in rete, che ho trovato molto utili

Codice: Seleziona tutto

User RPL programs for 48 or 49 can be transferred to a PC via conn4x
and then transferred to the 50g with the same program. The main
gotcha's arise from the existence of a substantial number of new
commands on the 50, which can cause name conflicts. I had variables
buried in some of my directories which resulted in syntax errors since
these are now function names on the 50g. The particular variables in my
case were
LIN, SREPL, HELP, MAIN.  Aside from that, things worked quite well.
I find that it is useful to set the flags as follows:
· CF -79: Textbook mode OFF (personal preference)
· CF -95: RPN not ALG (strong personal perference)
· SF -103: "Complex ON" (I don't actually know what this does ...)
· SF -105: Approx not Exact. Thus entered integers will be reals, not
the new ZINT class of number. A lot of programs will fail if you don't
do this; for example, if you check for the TYPE of an entered number
and you've entered an integer, it will not be type 0 if you are in
Exact mode. On the other hand, port numbers (i.e. tags for STO e.g.
:2:VarName) MUST be entered as simple integers, not via, e.g., ->TAG
with a real on the stack.
· SF -117: Soft menu keys, not choose boxes, for sub-menus (personal
preference)
· CF -128: Complex allowed (again, I did this initially but it
doesn't seem to be necessary except perhaps in CAS)
You will find that your old 48 libraries (e.g., SPARCOM) don't work,
but there are a few at hpcalc.org including the Periodic Table and a
nice Bessel function library. 

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

 > I'm liking the 50g more and more as I set it back to how it should be,
> but I still get that ugly TI menu for stats and numeric solver. Any
> suggestions?

Yes!  HP already fixed the NUM.SLV problem.  Just hold down the shift
key while you're pressing NUM.SLV and you'll see the menu that you
want.  Cool, huh?

As for the STAT key, just assign the HP48-style stats menu to it:

<<  96  TMENU >>
83.3  ASN

Then leave USR mode on all the time.  Pressing the STAT key will then
bring up the STAT menu that you know and love.  (Prepend it with a
SysRPL TakeOver, and it'll even work while you're programming!) 


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

Nate Eldredge wrote:
> This, then, is unrelated to the problem where if a key is
> pressed just as the CPU goes to sleep, it isn't processed
> until after the CPU wakes up again (on the following
> keystroke).  It's the latter that I find more annoying...

A very useful workaround to this so-called "Busy Bug" is to turn the
clock display on (MODE DISP Clock, or -40 SF) and leave it on
permanently.  Any keystroke caught in the evil clutches of this bug
will be released and executed by the next clock display update (every
second) or by the next keystroke, whichever comes first.  The extra
battery drain is negligible, and no keystrokes are completely lost. 
PPS:
per il collegamento USB ho trovato questo, qualche mese fa, ma non ho mai provato:

Codice: Seleziona tutto

Well, after some trial-and-error, my HP50g is working nicely with my
Linux laptop.
Here's how I did it, for anyone who might need it.

Add the following line to both /etc/udev/devfs.rules and
/etc/udev/udev.rules :
BUS="usb", KERNEL="ttyUSB*", SYSFS{product}="HP49g+ Calculator",
SYMLINK="hp50g"

As root:
# modprobe usbserial vendor=0x3f0 vendor=0x121
# modprobe safe-serial vendor=0x3f0 vendor=0x121

Plug in the calculator and turn it on, the following should show you
that the computer detects the device and associates it with the generic
USB serial converter and to a ttyUSB* node in /dev:
# dmesg | tail

To transfer the files, I use C-Kermit (or minicom), with the following .kermrc
configuration file in my home directory:
SET MODEM TYPE DIRECT
SET PORT /dev/ttyUSB0
SET SPEED 9600
SET CARRIER-WATCH OFF
SET FLOW NONE
SET PARITY NONE
SET BLOCK 3
SET CONTROL PREFIX ALL
SET FILE TYPE BIN
SET TRANSFER DISPLAY CRT

And the transfer process is exactly like it was explained in a previous
article in the group:
- Turn on the calculator and start the Kermit server
- on a console: kermit -s <file>

- Nascondi testo tra virgolette -

Avatar utente
sya54M
Master
Master
Messaggi: 1665
Iscritto il: mer 6 giu 2007, 14:44
Nome Cognome: Andrea Peluso
Slackware: 64-current
Kernel: ultimo
Desktop: KDE
Località: (Salerno)
Contatta:

Re: hp 50g & hptalx

Messaggio da sya54M »

grazie mille per tutte le informazioni, devo provare quel modo di trasferire i file...
ma mica conosci qualche programmino di idraulica per questa calcolatrice?

Avatar utente
robbybby
Linux 4.x
Linux 4.x
Messaggi: 1223
Iscritto il: sab 16 dic 2006, 10:48
Slackware: 13.1 / 64 bit
Kernel: 3.3.x
Desktop: KDE 4.4.5
Località: Fra Trantor e Terminus

Re: hp 50g & hptalx

Messaggio da robbybby »

Per il programma di idraulica, prova a cercare su
http://www.hpcalc.org
http://page.mi.fu-berlin.de/raut/WR49/index.htm

Avatar utente
sya54M
Master
Master
Messaggi: 1665
Iscritto il: mer 6 giu 2007, 14:44
Nome Cognome: Andrea Peluso
Slackware: 64-current
Kernel: ultimo
Desktop: KDE
Località: (Salerno)
Contatta:

Re: hp 50g & hptalx

Messaggio da sya54M »

quelli su hpcalc.org li avevo già visti ma sono tutti in spagnolo :?

Avatar utente
sya54M
Master
Master
Messaggi: 1665
Iscritto il: mer 6 giu 2007, 14:44
Nome Cognome: Andrea Peluso
Slackware: 64-current
Kernel: ultimo
Desktop: KDE
Località: (Salerno)
Contatta:

Re: hp 50g & hptalx

Messaggio da sya54M »

innanzitutto grazie ancora delle info...
ho provato a connermi con minicom alla calcolatrice, dice "initializing modem" ma poi rimane offline, se faccio send file non va a buon fine.
ho provato anche a premere sulla calcolatrice shift destro e freccia destra, la calcolatrice mi dice "Xmodem server waiting for command" e rimane con la clessidra attiva... allora provo a riconnettere minicom che questa volta restituisce caratteri strani ma rimane comunque offline e non funziona lo stesso...
cosa sbaglio?

Avatar utente
robbybby
Linux 4.x
Linux 4.x
Messaggi: 1223
Iscritto il: sab 16 dic 2006, 10:48
Slackware: 13.1 / 64 bit
Kernel: 3.3.x
Desktop: KDE 4.4.5
Località: Fra Trantor e Terminus

Re: hp 50g & hptalx

Messaggio da robbybby »

Non saprei dirti cosa sbaglio in quanto, come ti ho gia' detto, non ho mai provato il collegamento USB.
hptalx lo hai compilato tu, o hai preso dei binari gia' fatti? Se hai preso i binari gia' fatti, prova a compilarlo tu, con il solito

Codice: Seleziona tutto

./configure
make
Aggiunta: ho compilato adesso, per prova, la versione 1.3.1a, e (sulla Slackware 12.2) mi va in segmentation fault come a te :(

Avatar utente
sya54M
Master
Master
Messaggi: 1665
Iscritto il: mer 6 giu 2007, 14:44
Nome Cognome: Andrea Peluso
Slackware: 64-current
Kernel: ultimo
Desktop: KDE
Località: (Salerno)
Contatta:

Re: hp 50g & hptalx

Messaggio da sya54M »

comunque lo avevo compilato io...
...e quindi non va nemmeno con le vecchie glibc, senza che lo provo su debian allora...

Avatar utente
sya54M
Master
Master
Messaggi: 1665
Iscritto il: mer 6 giu 2007, 14:44
Nome Cognome: Andrea Peluso
Slackware: 64-current
Kernel: ultimo
Desktop: KDE
Località: (Salerno)
Contatta:

Re: hp 50g & hptalx

Messaggio da sya54M »

ci sono impazzito un po' (è la mia prima calcolatrice grafica) ma ho capito come si installano i programmi, ho instllato quello della pila che mi hai consigliato... comodissimo.
la ho impostata su rpn e devo dire che è un po' contorto a scrivere così ma ciò che si scrive è molto più leggibile perchè non scrive su una sola riga, anche se c'è lo scrittore di equazioni apposta che permette di scrivere così anche in modalità algebrica che per contro però (se non sbaglio) è scomodo perchè bisognerebbe aprirlo ogni volta e sulla schermata dei colcoli vengono visualizzati comunque su una riga... in conclusione mi piace la modalità rpn :)
grazie di tutto

ps: il problema della connessione con minicom rimane, ho dovuto usare un pc con uinzozz :badgrin: per copiare batstatus :x

Rispondi