Wiki » History » Version 10
Frédéric Blanc, 2024-04-04 11:23
1 | 1 | Frédéric Blanc | h1. Wiki |
---|---|---|---|
2 | |||
3 | h2. XY6015L |
||
4 | |||
5 | !clipboard-202403251011-lfrn1.png! |
||
6 | |||
7 | 4 | Frédéric Blanc | µC AT32F421 ARM® Cortex®-M4 core |
8 | Ctrl EG1163S BUCK DC-DC de Rectification synchrone 300kHz |
||
9 | MOS NCE82H140 |
||
10 | |||
11 | 2 | Frédéric Blanc | Baud rate 9600 ? |
12 | |||
13 | 1 | Frédéric Blanc | Modbus registers: |
14 | U_SET = 0 |
||
15 | I_SET = 1 |
||
16 | UOUT = 2 |
||
17 | IOUT = 3 |
||
18 | POWER = 4 |
||
19 | UIN = 5 |
||
20 | Ah = 6 |
||
21 | PROTECT = 7 # not tested |
||
22 | Wh = 8 |
||
23 | Time = 11 |
||
24 | Temp = 13 |
||
25 | Lock = 15 |
||
26 | CV_CC = 17 |
||
27 | ONOFF = 18 |
||
28 | Celsius = 19 |
||
29 | MODEL = 22 # ? |
||
30 | VERSION = 23 # ? |
||
31 | 5 | Frédéric Blanc | |
32 | 6 | Frédéric Blanc | h2. GUI Python |
33 | |||
34 | 9 | Frédéric Blanc | h3. venv — Création d'environnements virtuels |
35 | 6 | Frédéric Blanc | |
36 | <pre><code class="shell"> |
||
37 | 8 | Frédéric Blanc | $ python3 -m venv venv |
38 | 6 | Frédéric Blanc | </code></pre> |
39 | |||
40 | Pour activer l'environnement, exécutez |
||
41 | |||
42 | <pre><code class="shell"> |
||
43 | source venv/bin/activate |
||
44 | </code></pre> |
||
45 | |||
46 | 7 | Frédéric Blanc | <pre><code class="shell"> |
47 | . venv/bin/activate |
||
48 | </code></pre> |
||
49 | |||
50 | 9 | Frédéric Blanc | Vous devrez « quitter » ou « désactiver » votre environnement virtuel à l'aide de la commande |
51 | 6 | Frédéric Blanc | |
52 | <pre><code class="shell"> |
||
53 | deactivate |
||
54 | </code></pre> |
||
55 | |||
56 | |||
57 | |||
58 | 1 | Frédéric Blanc | https://docs.python.org/fr/3/library/venv.html |
59 | |||
60 | 9 | Frédéric Blanc | h3. XY6015L_pyGUI |
61 | |||
62 | !clipboard-202404041117-w53xm.png! |
||
63 | |||
64 | configuration du port com |
||
65 | |||
66 | le port série peut être corrigé en modifiant le paramètre "port_set" dans "dps5005_limits.ini". |
||
67 | |||
68 | |||
69 | <pre><code class="shell"> |
||
70 | [SectionZero] |
||
71 | The parameters below limit the code from incorrectly transmitting extreme values entered by the user: |
||
72 | if threshold exceeded value defaults to zero: |
||
73 | This file may be adapted for other versions of 'DPSxxxx' power supplies: |
||
74 | |||
75 | [SectionOne] |
||
76 | #leave empty "" for automatic port scanning or set serial port e.g. "/dev/cu.wchusbserial1410" or "/dev/ttyUSB0": |
||
77 | port_set: "/dev/ttyACM0" # |
||
78 | |||
79 | #The parameters below limit the code from incorrectly transmitting extreme values entered by the user: |
||
80 | 1 | Frédéric Blanc | #if threshold exceeded value defaults to zero: |
81 | 10 | Frédéric Blanc | ... |
82 | 9 | Frédéric Blanc | </code></pre> |
83 | |||
84 | h2. Sources |
||
85 | 5 | Frédéric Blanc | |
86 | https://github.com/AntaresAdroit/RDTech_PS_Comm |
||
87 | https://github.com/lambcutlet/DPS5005_pyGUI |
||
88 | https://github.com/kbs3056/XY6015L_pyGUI |