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