Wiki » History » Revision 9
Revision 8 (Frédéric Blanc, 2024-03-29 11:20) → Revision 9/109 (Frédéric Blanc, 2024-04-04 11:22)
h1. Wiki h2. XY6015L !clipboard-202403251011-lfrn1.png! µC AT32F421 ARM® Cortex®-M4 core Ctrl EG1163S BUCK DC-DC de Rectification synchrone 300kHz MOS NCE82H140 Baud rate 9600 ? Modbus registers: U_SET = 0 I_SET = 1 UOUT = 2 IOUT = 3 POWER = 4 UIN = 5 Ah = 6 PROTECT = 7 # not tested Wh = 8 Time = 11 Temp = 13 Lock = 15 CV_CC = 17 ONOFF = 18 Celsius = 19 MODEL = 22 # ? VERSION = 23 # ? h2. GUI Python h3. venv — Création d'environnements virtuels <pre><code class="shell"> $ python3 -m venv venv </code></pre> Pour activer l'environnement, exécutez <pre><code class="shell"> source venv/bin/activate </code></pre> <pre><code class="shell"> . venv/bin/activate </code></pre> Vous ous devrez « quitter » ou « désactiver » votre environnement virtuel à l'aide de la commande <pre><code class="shell"> deactivate </code></pre> https://docs.python.org/fr/3/library/venv.html h3. XY6015L_pyGUI !clipboard-202404041117-w53xm.png! configuration du port com le port série peut être corrigé en modifiant le paramètre "port_set" dans "dps5005_limits.ini". <pre><code class="shell"> [SectionZero] The parameters below limit the code from incorrectly transmitting extreme values entered by the user: if threshold exceeded value defaults to zero: This file may be adapted for other versions of 'DPSxxxx' power supplies: [SectionOne] #leave empty "" for automatic port scanning or set serial port e.g. "/dev/cu.wchusbserial1410" or "/dev/ttyUSB0": port_set: "/dev/ttyACM0" # #The parameters below limit the code from incorrectly transmitting extreme values entered by the user: #if threshold exceeded value defaults to zero: </code></pre> h2. Sources https://github.com/AntaresAdroit/RDTech_PS_Comm https://github.com/lambcutlet/DPS5005_pyGUI https://github.com/kbs3056/XY6015L_pyGUI