Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > PocketBook > PocketBook Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-20-2024, 01:43 PM   #1
Michal Jancik
Sorry for my English
Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.
 
Michal Jancik's Avatar
 
Posts: 466
Karma: 3009898
Join Date: Aug 2018
Location: France.Besancon
Device: KOBO.PocketBook.ONYX
POCKETBOOK UART Conect

Hello everyone !!

For those even for less experienced users who are looking for a procedure on how to connect and use UART on Pocketbook readers, I would like to share my following procedure, which you will find:



https://cod-box.net/pocketbook-conne...via-uart-hack/
Attached Thumbnails
Click image for larger version

Name:	make UART pocketbook.png
Views:	707
Size:	170.4 KB
ID:	207734  

Last edited by Michal Jancik; 04-20-2024 at 06:40 PM.
Michal Jancik is offline   Reply With Quote
Old 04-21-2024, 12:41 AM   #2
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,889
Karma: 12981955
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Interesting. Do you have a project in mind now you have a UART connection?
neil_swann80 is offline   Reply With Quote
Old 04-21-2024, 08:29 AM   #3
nhedgehog
Guru
nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.
 
Posts: 801
Karma: 628976
Join Date: Sep 2013
Device: EnergySistemEreaderPro, Nook STG, Pocketbook 622, Bookeen Cybooks ...
Interesting trick with the connection and the clamp. I soldered mine to stay on the connected side.
nhedgehog is offline   Reply With Quote
Old 04-21-2024, 09:44 AM   #4
Michal Jancik
Sorry for my English
Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.
 
Michal Jancik's Avatar
 
Posts: 466
Karma: 3009898
Join Date: Aug 2018
Location: France.Besancon
Device: KOBO.PocketBook.ONYX
Quote:
Originally Posted by nhedgehog View Post
Interesting trick with the connection and the clamp. I soldered mine to stay on the connected side.
Hi.
I had to use the clip because I often had a problem getting into the console, I had to disconnect and reconnect (on the fly) in order to type commands (to appear after pressing ENTER #,it didn't even help when I sent ^C through the terminal)

..as always, everything has its pros and cons
However, there are also disadvantages to using a clamp, such as the other side of the clamp touching the screen.
Also, you can't move the electronic reader too much so that the terminal doesn't move outside the UART pins on the motherboard. .

PS : Unfortunately, I don't have any projects or ideas, I don't even have time, as unfortunately it often happens in the life of a mere mortal

Last edited by Michal Jancik; 04-21-2024 at 09:49 AM.
Michal Jancik is offline   Reply With Quote
Old 04-22-2024, 11:43 AM   #5
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,889
Karma: 12981955
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Quote:
Originally Posted by nhedgehog View Post
Interesting trick with the connection and the clamp. I soldered mine to stay on the connected side.
nhedgehog... do you do anything cool with the UART/RS-232 connection to the pocketbook?
neil_swann80 is offline   Reply With Quote
Old 04-22-2024, 12:13 PM   #6
nhedgehog
Guru
nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.
 
Posts: 801
Karma: 628976
Join Date: Sep 2013
Device: EnergySistemEreaderPro, Nook STG, Pocketbook 622, Bookeen Cybooks ...
Sorry no, just keep it in mind in case I brick it (again), sic.
But I do like to read with it!
nhedgehog is offline   Reply With Quote
Old 04-22-2024, 12:36 PM   #7
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,889
Karma: 12981955
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Quote:
Originally Posted by nhedgehog View Post
Sorry no, just keep it in mind in case I brick it (again), sic.
But I do like to read with it!
Can you force-flash the FW over serial?
neil_swann80 is offline   Reply With Quote
Old 04-22-2024, 01:42 PM   #8
nhedgehog
Guru
nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.nhedgehog ought to be getting tired of karma fortunes by now.
 
Posts: 801
Karma: 628976
Join Date: Sep 2013
Device: EnergySistemEreaderPro, Nook STG, Pocketbook 622, Bookeen Cybooks ...
Didn't try it. I did not have a deeper look into it and wouldn't do it as long as I don't have a way to safely backup and flash the board.
nhedgehog is offline   Reply With Quote
Old 04-22-2024, 03:02 PM   #9
Michal Jancik
Sorry for my English
Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.
 
Michal Jancik's Avatar
 
Posts: 466
Karma: 3009898
Join Date: Aug 2018
Location: France.Besancon
Device: KOBO.PocketBook.ONYX
Quote:
Originally Posted by neil_swann80 View Post
Can you force-flash the FW over serial?
I would also be interested in that.
I know that it is possible to start an update with a swupdate command (for updating from the swupdate.bin file, which must be in the root directory), but in this case it is not a re-flash but an update.

I am interested in Re-Flash because I have a broken pocketbook that I need to reflash.
After powering on, an error is displayed:epdc_default_init ERROR cannot open eink

When holding down [ESC] key at start-up you can also get into UBOOT, but for now I didn't have time to look up how to re-flash the unity..

Last edited by Michal Jancik; 04-22-2024 at 03:26 PM.
Michal Jancik is offline   Reply With Quote
Old 04-23-2024, 12:35 PM   #10
wold
Zealot
wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.
 
Posts: 137
Karma: 87012
Join Date: Apr 2021
Device: Lux 5, Libra 2, PRS-T2N
Nice fix One could also consider adapting an IC clamping tool (for BIOS), provided its prongs/beaks/... reach that far.

Click image for larger version

Name:	proxy-image.jpeg
Views:	208
Size:	17.6 KB
ID:	207784

Quote:
Originally Posted by Michal Jancik View Post
I would also be interested in that.
I know that it is possible to start an update with a swupdate command (for updating from the swupdate.bin file, which must be in the root directory), but in this case it is not a re-flash but an update.

I am interested in Re-Flash because I have a broken pocketbook that I need to reflash.
After powering on, an error is displayed:epdc_default_init ERROR cannot open eink

When holding down [ESC] key at start-up you can also get into UBOOT, but for now I didn't have time to look up how to re-flash the unity..
Is the USB FEL mode an option?
See for example: https://linux-sunxi.org/PocketBook_Touch_Lux_3#FEL_mode
wold is offline   Reply With Quote
Old 03-02-2025, 05:40 AM   #11
koraks
Junior Member
koraks began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2025
Device: PocketBook Touch Lux 4
The link in the OP has gone dead (an unfortunate decision); using the Internet Archive it can be mostly recovered. I'll paraphrase the most essential bits here so people don't have to jump through hoops to get to the good stuff.

To get to the UART header, open up the device. The UART connection is exposed in the form of 4 test pads with clear silk scree labeling.

Use a regular USB-UART bridge (FTDI cable, CP2102 adapter etc.) to connect to the device. Observe the Vcc on the eReader side which is 3.3V - don't apply 5V here! In fact, you only need to connect GND, RX and TX assuming the eReader is self-powered. You can solder wire to the test pads, tape stripped wire ends to them or use some kind of pogo-pin clamp thingy.

Access the eReader using a serial terminal app of your choice; PuTTY is a possibility, or something like Termite. Use the following settings:
Baud rate: 115200
Data bits: 8
Parity: None
Stop bits: 1
Flow control: Xon/Xoff

When connected this way, you should effectively have terminal access to the device. From this point onward, it's a matter of command-line talking to the Linux OS on the eReader.

I'll quote the French text from the original page below; this contains a little more info w.r.t. troubleshooting.
Quote:
Salut les bidouiller ! Aujourd’hui, nous verrons comment se connecter à l’interface du Pocketbook à l’aide du port UART. N’oubliez pas que vous êtes vous-même responsable de ce que vous faites et que personne d’autre ne sera responsable des eventueles dommages.

De quoi aurons-nous besoin ?

Liseuse Pocketbook
Logiciel Putty : https://www.putty.org/
Ordinateur avec systéme d’explotation Windows & Linux
Pince|Clips programation UART (Comme je n’ai pas de clip pour UART, j’ai utilisé prise a souder de 3 PINS avec pince a ressort). Dans mon cas je vais utiliser “Adaptateur série USB vers TTL” avec la puce FT232″ acheté à 14,49€ sur Amazon : LINK : DSD Tech USB vers TTL Adaptateur Série avec Puce FTDI FT232RL
Si possible, une carte plastifiée pour ouvrir la liseuse.
fabriquer pince UART
Make UART 3 x Pin
UART - USB to TTL
Clips programation UART fait maison
Puisque je n’ai pas clips programation UART je vais utiliser une alternative fait de prise a souder de 3 PINS et pince pour tenire les pins sur la carte mere.
Pour me connecter à l’UART, je dois connecter 3 broches : GND, RXD et TXD
J’ai collé les broches 3 pin sur le connecteur à l’aide de ruban adhésif (vous pouvez bien entendu réaliser votre connecteur selon vos préférences)
Capture
UART 2
Make UART 2
Installation de l’adaptateur
Branchez adaptateur série USB a votre ordinateur. Si votre adaptateur n’est pas correctement reconnu par votre système d’exploitation, installez le pilote approprié en fonction de la puce de votre adaptateur (dans mon cas FT232) : https://ftdichip.com/drivers/d2xx-drivers/ ftdichip.com/drivers/
Si tout est en ordre et correctement connecté, vous devriez voir votre adaptateur correctement reconnu dans le gestionnaire de périphériques :
check port UART

Vous remarquerez peut-être que dans mon cas le port utilise est le port COM 7, dans votre cas le port peut être numéroté complètement différemment. Vous aurez besoin le numéro de votre port COM utilisé lors de la connexion via Putty.
Connecter le connecteur de l’adaptateur TTL à votre liseuse
Pour accéder au connecteur UART, vous devrez ouvrir votre liseuse. Dans tous les cas, je vous recommande de prendre votre temps. Pour enlever la coque utlisez plutot une carte plastique.
ouvrire liseuse avec une carte

ÉVITEZ D’UTILISER UN OBJET POINTU POUR ÉVITER D’ÉVENTUELS DOMMAGES IRREVERSIBLE.

Avant de vous connecter, assurez-vous d’avoir éteint votre liseuse !
Vous trouverez généralement le connecteur UART sur le côté droit de la carte mère.
Dans mon cas, tout est prêt et je peux fixer le connecteur UART à l’aide d’une pince. Si vous utilisez également une pince, procédez avec précaution pour éviter d’endommager l’écran, n’hésitez pas à utiliser du pad pour renforcer l’écran.
POCKETBOOK conect UART (2)
POCKETBOOK conect UART (1)
UART Pocketbook
POCKETBOOK conect UART (3)
Connexion Pocketbook via le port UART
Ok, notre adaptateur est prêt, on peut ouvrir Putty
Vous pouvez utiliser des réglages rapides ou plus détaillés (voir l’image avec les marquages ​​rouges et verts), l’essentiel est de respecter les réglages suivants:
Name of Specification Features
Serial Line COM7 (choisir votre port COM)
Speed 115200
Data bits 8
Stop bits 1
Parity None
Flow control XON/XOFF
En image
Config UART Pocketbook

BRAVO ! Si tout est connecté et configuré correctement, après avoir allumé votre liseuse et cliqué sur OPEN, vous devriez voir terminal shell avec des information debug:
Pocketbook shell terminal

Lorsque vous appuiez sur la touche [ENTRÉE], vous devriez voir le caractère “#“, après quoi vous ajoutez des commandes système, si vous ne voyez pas le caractère “#”, essayez d’utiliser les touches CTRL+C
Que faire si je vois des artefacts ?
Si vous voyez les artefacts suivants sur l’écran, vérifiez si votre connecteur est correctement sur les broches et n’a pas été déplacé.
S’il n’y a que des caractères à l’écran et que rien ne bouge, vérifiez que vous avez bien réglé la vitesse sur 115200 et non sur 9600.
UART artefaktes

Je n’ai pas l’autorisation de saisir ou de modifier le fichier
En cas de refus d’accès au dossier ou de rendu impossible l’écrasement de certains fichiers (ReadOnly), vous devez configurer certaines partitions système en tant que root.
(juste un exemple) disons que lorsque je souhaite utiliser l’éditeur de Linux vi et écraser le fichier device.cfg qui se trouve dans le dossier ebrmain j’obtiens une erreur “ReadOnly“. Pour modifier le fichier, vous devez remonter la partition en tant que ROOT
mount -o rw,remount /ebrmain/root



Processus de démarrage
Le périphérique utilise un processeur Allwinner SOC et démarre à l’aide d’un chargeur de démarrage spécifique appelé eGONavec des pilotes spécifiques, qui chargent à leur tour une image de démarrage Linux. Le code du bootloader peut être trouvé ici :
https://src.aw-som.com/awsom/

Il est possible de démarrer dans un mode spécial appelé FEL en appuyant sur un bouton pendant le processus de démarrage. Lorsqu’il est connecté avec un câble USB, l’appareil expose ensuite un périphérique spécifique avec lequel il est possible d’interagir à l’aide des outils contenus dans le sunxi-toolspackage.
(source synacktiv)

Les commandes
Il faut savoir qu’il est possible de demarer Pocketbook dans plusieurs modes. Pour changer le mode de démarrage se fait avec la commande :
echo x > /mnt/secure/debug_mode
Remplacez le X par :
0: whole debug to console (user and kernel debug] Default
1: user (monitor and inkview) debug to console
2: user debug (kernel is disabled) to file /tmp/syslog
s: single-user
Pocketbook shell debug mod

Vous pouvez maintenant faire toutes les choses nécessaires que vous aviez en tête, vous pouvez obtenir des informations sur l’appareil, les processus en cours d’exécution, etc.
CPU INFO

cat /proc/cpuinfo



Liste des processus en cours
ps


Kernel info

uname -a



HWconfig
/bin/hwconfig
pocketbok hwconfig info commande

.. aperçu de certains dossiers
embtrain bin
koraks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PW5 Getting UART and UART root shell on PW5 trimen Kindle Developer's Corner 16 07-21-2024 07:34 AM
PRS-T1 PRS-T1 run from SD card / UART recovery from broken internal flash jpa Sony Reader Dev Corner 20 07-29-2023 12:25 AM
Pocketbook Touch Lux 3 PocketBook PB626(2) - Probleme mit SD-Karte + Akku jibrail PocketBook 1 01-16-2019 03:38 PM
PRS-500 PRS-500; UART, U-Boot experts: HELP! Melongasoil Sony Reader Dev Corner 0 01-12-2010 04:09 PM
PRS-500 UART found. Console output demonstrated. obelix Sony Reader Dev Corner 1 12-20-2007 09:47 PM


All times are GMT -4. The time now is 07:00 AM.


MobileRead.com is a privately owned, operated and funded community.