Posté le 22/08/2016 12:13
Planète Casio v4.3 © créé par Neuronix et Muelsaco 2004 - 2024 | Il y a 136 connectés | Nous contacter | Qui sommes-nous ? | Licences et remerciements
Planète Casio est un site communautaire non affilié à Casio. Toute reproduction de Planète Casio, même partielle, est interdite.
Les programmes et autres publications présentes sur Planète Casio restent la propriété de leurs auteurs et peuvent être soumis à des licences ou copyrights.
CASIO est une marque déposée par CASIO Computer Co., Ltd
Citer : Posté le 17/04/2022 17:27 | #
Sur une Graph 85 SD V 02.01.0300 j'ai une erreur :
Stop receive mode on calculator and start it again before re-running p7.
Error was: an unknown error has occurred
Quand j'essaie de transférer un fichier...
Citer : Posté le 17/04/2022 19:02 | #
Relance la commande avec --loglevel=debug de mémoire.
Mon blog ⋅ Mes autres projets
Citer : Posté le 17/04/2022 20:26 | #
Alors j'ai essayé p7 send MyAddin.g1a --loglevel=debug une première fois, pas plus d'informations...là j'ai relancé la commande qui tourne depuis plus de 5 minutes sans réponse
EDIT : Finalement la même erreur au bout de 5 minutes, sans + de détails...
Citer : Posté le 17/04/2022 20:31 | #
Il n'y a pas d'option de log dans p7 3.0 d'après ce que je peux lire.
Citer : Posté le 17/04/2022 21:07 | #
Ah merde.
Citer : Posté le 18/04/2022 12:35 | #
Oh my bad, c'est quand tu construis la libp7 qu'il faut que tu passes --loglevel=debug, pas possible de définir ça au runtime
https://gitea.planet-casio.com/cake/libp7/src/branch/master/configure#L75
Mon blog ⋅ Mes autres projets
Citer : Posté le 18/04/2022 19:03 | #
Alors ça avait l'air d'être plutôt --loglevel=info, donc voici :
[libp7 info] p7_init: Looking for general libusb devices
[libp7 info] p7_libusbinit: getting the device handle
[libp7 info] p7_libusbinit: Detaching kernel driver, if any.
[libp7 info] p7_libusbinit: Claiming the interface
[libp7 info] p7_sinit: looks like the handle wasn't allocated! let's make one.
[libp7 info] p7_sinit: handle prepared, masta!
[libp7 info] p7_sinit: initializing stream settings
[libp7 info] start: so we're active? let's do what active people do then!
[libp7 info] start: sending initial check packet
[libp7 info] p7_send_ini_check: sending check packet...
[libp7 info] p7_send_basic: sending the following basic packet :
[libp7 info] 0530 3030 3730 .00070
[libp7 info] p7_recv_main: receiving packet...
[libp7 fatal] p7_libusb_read: libusb error was -7: Operation timed out
[libp7 fatal] start: couldn't send check/didn't receive answer
[libp7 info] p7_exit: exit is called.
[libp7 info] p7_exit: and handle is still there, so let's go!
[libp7 info] p7_exit: we were active, send sending terminate packet
[libp7 info] p7_send_basic: sending the following basic packet :
[libp7 info] 1830 3030 3730 .00070
[libp7 info] p7_recv_main: receiving packet...
[libp7 fatal] p7_libusb_read: libusb error was -7: Operation timed out
[libp7 warn] p7_exit: couldn't send terminate packet, already disconnected?
[libp7 info] p7_exit: freeing the handle!
The calculator didn't act as planned.
Stop receive mode on calculator and start it again before re-running p7.
Error was: an unknown error has occurred
Ajouté le 19/04/2022 à 17:23 :
Ça a pas l’air de donner plus de détails…
Citer : Posté le 19/04/2022 17:31 | #
Ça. Quelque chose est vraiment bizarre avec le périphérique, pour être honnête. Regarde dans dmesg, on sait jamais...
Citer : Posté le 19/04/2022 17:36 | #
La fin de dmesg après avoir branché la calto puis lancé la commande p7 :
[ 267.464642] usb 1-3: New USB device found, idVendor=07cf, idProduct=6101, bcdDevice= 1.00
[ 267.464647] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 267.464649] usb 1-3: Product: CESG502
[ 267.464650] usb 1-3: Manufacturer: CASIO COMPUTER CO., LTD.
[ 276.947088] audit: type=1400 audit(1650382452.721:59): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/gdm/greeter/applications/gnome-initial-setup.desktop" pid=2499 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 276.976362] audit: type=1400 audit(1650382452.749:60): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/gdm/greeter/applications/gnome-initial-setup.desktop" pid=2499 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 277.663930] audit: type=1326 audit(1650382453.437:61): auid=1000 uid=1000 gid=1000 ses=3 subj=snap.snap-store.ubuntu-software pid=2499 comm="pool-org.gnome." exe="/snap/snap-store/558/usr/bin/snap-store" sig=0 arch=c000003e syscall=93 compat=0 ip=0x7f18daee83cb code=0x50000
Citer : Posté le 19/04/2022 17:37 | #
Et dans lsusb tu as bien une seule calto qui apparaît ?
Citer : Posté le 19/04/2022 17:39 | #
Bus 001 Device 002: ID 13d3:56dd IMC Networks USB2.0 HD UVC WebCam
Bus 001 Device 005: ID 07cf:6101 Casio Computer Co., Ltd fx-9750gII
Bus 001 Device 003: ID 13d3:3530 IMC Networks Bluetooth Radio
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Donc oui je crois
Citer : Posté le 19/04/2022 17:42 | #
Hmm oui tout a l'air normal. J'ai aucune idée de ce qui peut se passer x_x
Citer : Posté le 19/04/2022 17:43 | #
J’ai essayé de changer de câble sans succès non plus…
Citer : Posté le 23/09/2022 17:45 | #
For anyone on Debian/Ubuntu, etc, the https://github.com/cakeisalie5/p7-packaging repo is apparently gone, but https://p7.planet-casio.com/en.html#linux-iconlinux-ico-other-gnulinux-distributions works fine to build.
“They call me the king of the spreadsheets, got 'em all printed out on my bedsheets.” — “Weird Al” Yankovic
Citer : Posté le 23/09/2022 18:16 | #
Hmm, I seem to be experiencing similar behavior to Potter360. Device is an fx-9860G Slim (upgraded to OS 2.0). OS is Debian 11 Bullseye. I'm able to transfer files to/from the calc using CASIO FA-124 inside a VirtualBox Windows XP, so the cable and comms should be okay.
[libp7 info] p7_init: Looking for specific Linux drivers
[libp7 info] p7_init: Looking for general libusb devices
[libp7 info] p7_libusbinit: getting the device handle
[libp7 info] p7_libusbinit: Detaching kernel driver, if any.
[libp7 info] p7_libusbinit: Claiming the interface
[libp7 info] p7_sinit: looks like the handle wasn't allocated! let's make one.
[libp7 info] p7_sinit: handle prepared, masta!
[libp7 info] p7_sinit: initializing stream settings
[libp7 info] start: so we're active? let's do what active people do then!
[libp7 info] start: sending initial check packet
[libp7 info] p7_send_ini_check: sending check packet...
[libp7 info] p7_send_basic: sending the following basic packet :
[libp7 info] 0530 3030 3730 .00070
[libp7 info] p7_recv_main: receiving packet...
[libp7 fatal] p7_libusb_read: libusb error was -7: Operation timed out
[libp7 fatal] start: couldn't send check/didn't receive answer
[libp7 info] p7_exit: exit is called.
[libp7 info] p7_exit: and handle is still there, so let's go!
[libp7 info] p7_exit: we were active, send sending terminate packet
[libp7 info] p7_send_basic: sending the following basic packet :
[libp7 info] 1830 3030 3730 .00070
[libp7 info] p7_recv_main: receiving packet...
[libp7 fatal] p7_libusb_read: libusb error was -7: Operation timed out
[libp7 warn] p7_exit: couldn't send terminate packet, already disconnected?
[libp7 info] p7_exit: freeing the handle!
The calculator didn't act as planned.
Stop receive mode on calculator and start it again before re-running p7.
Error was: an unknown error has occurred
Relevant dmesg
[ 6141.231166] usb 1-3.1: New USB device found, idVendor=07cf, idProduct=6101, bcdDevice= 1.00
[ 6141.231178] usb 1-3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 6141.231184] usb 1-3.1: Product: CESG502
[ 6141.231188] usb 1-3.1: Manufacturer: CASIO COMPUTER CO., LTD.
Bus 001 Device 012: ID 07cf:6101 Casio Computer Co., Ltd fx-9750gII
linux-vdso.so.1 (0x00007fff653ce000)
libp7.so.3 => /lib/x86_64-linux-gnu/libp7.so.3 (0x00007f39387ad000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f39385d8000)
libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0 (0x00007f39385ba000)
/lib64/ld-linux-x86-64.so.2 (0x00007f39387fb000)
libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007f3938592000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3938570000)
linux-vdso.so.1 (0x00007fffbe765000)
libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0 (0x00007fee244e9000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fee24314000)
libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007fee242ec000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fee242ca000)
/lib64/ld-linux-x86-64.so.2 (0x00007fee2454c000)
Linux kitty 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02) x86_64 GNU/Linux
Build commands:
./configure --udev --loglevel=info && make && sudo make install
# p7utils-3.0
./configure && make && sudo make install
“They call me the king of the spreadsheets, got 'em all printed out on my bedsheets.” — “Weird Al” Yankovic
Citer : Posté le 30/09/2022 21:27 | #
I installed Arch in VirtualBox and installed the p7 package using yaourt. p7 unfortunately still doesn't work. Note that CASIO FA-124 running on Windows XP under VirtualBox works fine, and I confirmed that my VirtualBox USB settings are the same for both.
The calculator didn't act as planned.
Stop receive mode on calculator and start it again before re-running p7.
Error was: an unknown error has occurred
$ uname -a
Linux arch 5.19.12-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 28 Sep 2022 13:21:25 +0000 x86_64 GNU/Linux
$ lsusb | grep Casio
Bus 001 Device 003: ID 07cf:6101 Casio Computer Co., Ltd fx-9750gII
“They call me the king of the spreadsheets, got 'em all printed out on my bedsheets.” — “Weird Al” Yankovic
Citer : Posté le 21/06/2023 18:28 | #
@LephenixNoir (et d'autres si jamais ils sont intéressés): il y a moyen d'utiliser p7utils sur un tél Android 6+ non-rooté en utilisant Shizuku !
Bref, le lien vous redirige vers un tuto pour configurer Shizuku.
Et voilà le Readme.
On unrooted devices, Shizuku needs to manually restart with adb every time on boot. Before Android 11, a computer is required to run adb. Android 11 and above have built-in wireless debugging support, user can start Shizuku directly on the device.
C'est bon, je vous ai mis l'eau à la bouche ?
Après avoir installé l'app Shizuku, vous pour configurer rish, une commande qui sera utilisée dans Termux (qui fait office de sudo).
Petit rappel, si vous comptez installer Termux télécharger la version sur F-Droid ou sur GitHub (et PAS sur GPlay Store...).
Voyez ici comment le configurer :
To set up rish, open Shizuku, navigate to 'Use Shizuku in terminal apps', and follow the setup instructions. Please note that you need a basic understanding of shells, terminals, and essential commands to use this efficiently.
After rish is set up, you can use it together with any apps that support calling any shell script or executable, even if the app doesn't support Shizuku itself.
Note: Because rish's location is not in $PATH, you may need to manually specify the path to the executable to launch it. If it is located in your current working directory, use ./rish to launch it.
Une fois configuré il vous faut encore avoir p7utils compilé puis le tour est joué ! Vous devrez exécuter "rish -c 'p7 ...'" et tout devrait fonctionner.
Franchement j'adore cette idée. Je ne vais personnellement pas faire ces manipulations, préférant largement avoir un appareil rooté. D'ailleurs, si vous utilisez Shizuku, vous devrez à chaque boot lui réattribuer les permissions.
Bon, je sais que ça parait un peu overkill, mais j'aime vraiment ce bidule xD
Si qqn est dans le besoin, je peux regarder et essayer de compiler statiquement libp7 et p7utils pour Android avec une architecture aarch64 .
@RdP si ça existe toujours.
Citer : Posté le 19/07/2023 02:09 | #
Hello!
I'm having problems with compiling p7utils-3.0 from https://p7.planet-casio.com/pub/p7utils-3.0.tar.gz . Before that I successfully installed libp7-3.0 and added /usr/lib/pkgconfig to PKG_CONFIG_PATH.
So this works:
-I/usr/include/libp7-3.0
I ran configure:
Configuration loaded, you can make now.
But make gives me this message:
make: Nothing to be done for 'all'.
and refuses to compile.
Reading into PKGBUILD from AUR I found that it should be compiled using make all-p7 .
I ran it, this is the error:
mkdir -p obj/p7
gcc -c -o obj/p7/args.o src/p7/args.c -Wall -Wextra -Wno-unused-macros -Wno-vla -std=gnu11 -O2 -D NAME="p7utils" -D VERSION="3.0" -D MAINTAINER="Thomas \"Cakeisalie5\" Touhey <thomas@touhey.fr>" -D DEFAULT_STORAGE="fls0" -D DEFAULT_ZOOM="8" -D BIN="p7"
In file included from src/p7/args.c:10:
src/p7/main.h:15:11: fatal error: libp7.h: No such file or directory
15 | # include <libp7.h>
| ^~~~~~~~~
compilation terminated.
make: *** [Makefile:145: obj/p7/args.o] Error 1
And there's a blank space where -I/usr/include/libp7-3.0 should be. Any thoughts how to fix this?
Citer : Posté le 19/07/2023 03:24 | #
Did you try make install instead of just make ?
Citer : Posté le 19/07/2023 03:48 | #
Did you try make install instead of just make ?
Yes, this is the output:
make: Nothing to be done for 'install'.
since nothing is compiled
Citer : Posté le 19/07/2023 03:50 | #
Try starting from files here : https://p7.planet-casio.com/en.html#linux-iconlinux-ico-other-gnulinux-distributions
does it change something ?