Project

General

Profile

Actions

Bug #11370

closed

Firmware non reconnu

Added by Philippe Pichon 22 days ago. Updated 22 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
06/04/2024
Due date:
% Done:

0%

Estimated time:
Chirp Version:
legacy
Model affected:
uvk5 (8)
Platform:
Windows
I read the instructions above:
Yes

Description

Bonjour
J'utilise uvk5 avec firmxare "cec 0.5HF" et j'obtiens un message d'erreur lors du chargement de la config avec le fichier de débogage py. Quelqu'un a une idée??
Merci


Files

2024-06-04_115352.jpg (84.3 KB) 2024-06-04_115352.jpg Philippe Pichon, 06/04/2024 03:03 AM
2024-06-03_182427.jpg (95.4 KB) 2024-06-03_182427.jpg Philippe Pichon, 06/04/2024 03:03 AM
uvk5_CEC_05_HF_DO4KLA.py (78.5 KB) uvk5_CEC_05_HF_DO4KLA.py Philippe Pichon, 06/04/2024 03:04 AM
uvk5_CEC_05_HF_DO4KLA_fix20240604.py (78.5 KB) uvk5_CEC_05_HF_DO4KLA_fix20240604.py Fixed driver that doesn't hard-code a Unix path Alexandre J. Raymond, 06/04/2024 10:15 AM
Actions #1

Updated by Alexandre J. Raymond 22 days ago

  • Status changed from New to Feedback

Bonjour,

Je n'ai pas regardé l'entièreté du fichier Python fourni, mais l'erreur que vous rapportez est causée par une tentative d'écriture dans un répertoire Linux (/tmp), alors que vous utilisez Windows.

Pour corriger cette erreur bien précise, vous pourriez apporter la modification suivante au fichier Python, par exemple:

diff --git a/uvk5_CEC_05_HF_DO4KLA.py b/uvk5_CEC_05_HF_DO4KLA.py
index b82e09e..e8f58d4 100644
--- a/uvk5_CEC_05_HF_DO4KLA.py
+++ b/uvk5_CEC_05_HF_DO4KLA.py
@@ -38,6 +38,8 @@



+import os
+import tempfile
 import struct
 import logging

@@ -630,7 +632,7 @@ def do_download(radio):

     if DEBUG_WRITE_RADIO_HEXDUMP:
         hex_data = _convert_to_intel_hex(eeprom)
-        _save_to_hex_file(hex_data, "/tmp/radio_dump.hex")
+        _save_to_hex_file(hex_data, os.path.join(tempfile.gettempdir(), "radio_dump.hex"))

     return memmap.MemoryMapBytes(eeprom)
Actions #2

Updated by Philippe Pichon 22 days ago

Merci pour la réponse, mais je ne sais pas comment modifier un fichier python ni a quel endroit insérer les lignes de commandes, pourriez vous m'aider?

Actions #3

Updated by Alexandre J. Raymond 22 days ago

J'ai corrigé le problème précis que vous rencontriez.

Vous pouvez utiliser le menu "Aide / Chargement module pour un problème" et inscrire le problème 11370 pour valider le correctif.

Notez que je n'ai pas de radio UVK5 pour tester ce pilote ou ma modification. À vos risques et périls.

Actions #4

Updated by Philippe Pichon 22 days ago

Merci beaucoup, je viens de tester et il fonctionne parfaitement, vous m'avez été d'une grande aide et je vous remercie bien sincèrement, je peux désormais accéder à mon uvk5 modifié en utilisant chirp. Tous mes remerciements

Actions #5

Updated by Alexandre J. Raymond 22 days ago

  • Status changed from Feedback to Resolved

Content d'avoir pu vous être utile!

Actions

Also available in: Atom PDF