Wiki » History » Version 12
Frédéric Blanc, 2024-04-04 14:39
1 | 1 | Frédéric Blanc | h1. Wiki |
---|---|---|---|
2 | |||
3 | 11 | Frédéric Blanc | h2. Modbus / RS485 isolated |
4 | |||
5 | 12 | Frédéric Blanc | *ADM2865E* Power Isolated, RS-485 Transceivers |
6 | |||
7 | 1 | Frédéric Blanc | !clipboard-202404041435-zyzea.png! |
8 | 12 | Frédéric Blanc | |
9 | |Code Commande |Référence Fabricant |Fabricant / Description| |
||
10 | |4023816 |ADM2865EBRNZ |ANALOG DEVICES Transceiver, RS422, RS485, 25 Mbps, 1 Driver, 1 Récepteur, 3 à 5.5V, -40 à 105°C, WSOIC-28| |
||
11 | |1456395 |SM712.TCT |SEMTECH Diode TVS, SM, Bidirectionelle, 12 V, 26 V, SOT-23, 3 Broche(s)| |
||
12 | |1515786 |BLM15HD182SN1D |MURATA Perle de ferrite, 0402 [1005 Metric], 1.8 kohm, 200 mA, BLM15H, 2.2 ohm, ± 25%| |
||
13 | |1867958 |08053D106KAT2A |KYOCERA AVX Condensateur céramique multicouche CMS, 10 µF, 25 V, 0805 [Métrique 2012], ± 10%, X5R| |
||
14 | |2443238 |BLM18HE601SN1D |MURATA Perle de ferrite, 0603 [1608 Metric], 600 ohm, 800 mA, BLM18H, 0.25 ohm, ± 25%| |
||
15 | |||
16 | 11 | Frédéric Blanc | |
17 | 1 | Frédéric Blanc | h2. XY6015L |
18 | |||
19 | !clipboard-202403251011-lfrn1.png! |
||
20 | |||
21 | 4 | Frédéric Blanc | µC AT32F421 ARM® Cortex®-M4 core |
22 | Ctrl EG1163S BUCK DC-DC de Rectification synchrone 300kHz |
||
23 | MOS NCE82H140 |
||
24 | |||
25 | 2 | Frédéric Blanc | Baud rate 9600 ? |
26 | |||
27 | 1 | Frédéric Blanc | Modbus registers: |
28 | U_SET = 0 |
||
29 | I_SET = 1 |
||
30 | UOUT = 2 |
||
31 | IOUT = 3 |
||
32 | POWER = 4 |
||
33 | UIN = 5 |
||
34 | Ah = 6 |
||
35 | PROTECT = 7 # not tested |
||
36 | Wh = 8 |
||
37 | Time = 11 |
||
38 | Temp = 13 |
||
39 | Lock = 15 |
||
40 | CV_CC = 17 |
||
41 | ONOFF = 18 |
||
42 | Celsius = 19 |
||
43 | MODEL = 22 # ? |
||
44 | VERSION = 23 # ? |
||
45 | 5 | Frédéric Blanc | |
46 | 6 | Frédéric Blanc | h2. GUI Python |
47 | |||
48 | 9 | Frédéric Blanc | h3. venv — Création d'environnements virtuels |
49 | 6 | Frédéric Blanc | |
50 | <pre><code class="shell"> |
||
51 | 8 | Frédéric Blanc | $ python3 -m venv venv |
52 | 6 | Frédéric Blanc | </code></pre> |
53 | |||
54 | Pour activer l'environnement, exécutez |
||
55 | |||
56 | <pre><code class="shell"> |
||
57 | source venv/bin/activate |
||
58 | </code></pre> |
||
59 | |||
60 | 7 | Frédéric Blanc | <pre><code class="shell"> |
61 | . venv/bin/activate |
||
62 | </code></pre> |
||
63 | |||
64 | 9 | Frédéric Blanc | Vous devrez « quitter » ou « désactiver » votre environnement virtuel à l'aide de la commande |
65 | 6 | Frédéric Blanc | |
66 | <pre><code class="shell"> |
||
67 | deactivate |
||
68 | </code></pre> |
||
69 | |||
70 | |||
71 | |||
72 | 1 | Frédéric Blanc | https://docs.python.org/fr/3/library/venv.html |
73 | |||
74 | 9 | Frédéric Blanc | h3. XY6015L_pyGUI |
75 | |||
76 | !clipboard-202404041117-w53xm.png! |
||
77 | |||
78 | configuration du port com |
||
79 | |||
80 | le port série peut être corrigé en modifiant le paramètre "port_set" dans "dps5005_limits.ini". |
||
81 | |||
82 | |||
83 | <pre><code class="shell"> |
||
84 | [SectionZero] |
||
85 | The parameters below limit the code from incorrectly transmitting extreme values entered by the user: |
||
86 | if threshold exceeded value defaults to zero: |
||
87 | This file may be adapted for other versions of 'DPSxxxx' power supplies: |
||
88 | |||
89 | [SectionOne] |
||
90 | #leave empty "" for automatic port scanning or set serial port e.g. "/dev/cu.wchusbserial1410" or "/dev/ttyUSB0": |
||
91 | port_set: "/dev/ttyACM0" # |
||
92 | |||
93 | #The parameters below limit the code from incorrectly transmitting extreme values entered by the user: |
||
94 | 1 | Frédéric Blanc | #if threshold exceeded value defaults to zero: |
95 | 10 | Frédéric Blanc | ... |
96 | 9 | Frédéric Blanc | </code></pre> |
97 | |||
98 | h2. Sources |
||
99 | 5 | Frédéric Blanc | |
100 | https://github.com/AntaresAdroit/RDTech_PS_Comm |
||
101 | https://github.com/lambcutlet/DPS5005_pyGUI |
||
102 | https://github.com/kbs3056/XY6015L_pyGUI |