Browse code

minor bug fixes

gandolf authored on 07/11/2022 22:52:36
Showing 2 changed files
... ...
@@ -27,11 +27,14 @@ Notes
27 27
 -----
28 28
 1. The files ft991utility.py and ft991.py should be downloaded from the
29 29
    github repository and placed in the same folder.
30
-2. Before running the utility you may need to edit line 39 or line 40 in
31
-   the "environment setup" section of the file "ft991utility.py".  Be sure
32
-   the com port is correct.  This will depend on whether you are running
33
-   Linux or Windows and on the default serial port assigned to the FT991.  
34
-3. To run the utility, open a terminal session in directory containing
30
+2. *IMPORTANT* Before running the utility you may need to edit line 39 or
31
+   line 40 in the "environment setup" section of the file "ft991utility.py".
32
+   Be sure the com port is correct.  This will depend on whether you are
33
+   running Linux or Windows and on the default serial port assigned to the FT991.
34
+3. *IMPORTANT*  Edit line 41 to match the baud rate setting in your FT991.  From
35
+   the FT991 front panel select "Menu" and scroll to item #031 "CAT RATE".
36
+   The baud rate should be the same as line 41.
37
+4. To run the utility, open a terminal session in directory containing
35 38
    the ft991utility.py and ft991.py files.  Then simply type the utility
36 39
    file name after the command line prompt, e.g.,
37 40
        ~$ ./ft991utility.py
... ...
@@ -39,40 +42,40 @@ Notes
39 42
    to be run as an executable.  To change the permissions on Linux run the
40 43
    command
41 44
        ~$ chmod +x ft991utility.py
42
-4. Windows users will need to have the python 3.8 framework installed.
45
+5. Windows users will need to have the python 3.8 framework installed.
43 46
    Probably, the easiest way to get the framework is to install the
44 47
    Windows Subsystem for Linux Ubuntu platform.  Note that the utility
45 48
    has not been tested on Windows and the developer makes no guarantees.
46
-5. While it is possible to run the utility completely from the command
49
+6. While it is possible to run the utility completely from the command
47 50
    line using command line options, beginning users are encouraged to use
48 51
    the interactive mode.  To use the interactive mode simply type the file
49 52
    name of the utility with no command line arguments, e.g.,
50 53
            ./ft991utility.py
51
-6. The utility saves memory settings in a comma-delimited file that
54
+7. The utility saves memory settings in a comma-delimited file that
52 55
    can be imported into a spreadsheet application for ease in viewing
53 56
    and editing.
54
-7. The verbose mode, available both as a command line option and in
57
+8. The verbose mode, available both as a command line option and in
55 58
    interactive mode, echos raw commands sent to the FT991, as well as
56 59
    raw status returned by the FT991.  This feature is useful for development
57 60
    and debugging purposes.
58
-8. If you already have repeater frequencies and such programmed
61
+9. If you already have repeater frequencies and such programmed
59 62
    in memory, you should first run the 'bm' command in interactive mode
60 63
    to back up your current memory settings.  Unless you change the default
61 64
    file name, this file should appear in your current working directory as
62 65
    'ft991mem.csv'.  Change this file name to something else such as
63 66
    'ft991mem_todaysDate.csv so that you can restore from this file at a
64 67
    later date if necessary.
65
-9. By the same token you should immediately back up your menu settings using
66
-   the 'bu' command in interactive mode.  The default file name is
67
-   'ft991menu.cfg'.  Likewise change this file name to something else.
68
-10. The example file 'example.csv' shows how a memory settings file should
68
+10. By the same token you should immediately back up your menu settings using
69
+    the 'bu' command in interactive mode.  The default file name is
70
+    'ft991menu.cfg'.  Likewise change this file name to something else.
71
+11. The example file 'example.csv' shows how a memory settings file should
69 72
     appear.  To load these settings in your FT991, run the 'rm' command in
70 73
     interactive mode.  When prompted to enter a file name type 'example.csv'. 
71 74
     For example,
72 75
         Enter file name or <CR> for default: example.csv
73
-11. Backup and restore of VHF/UHF split frequency repeater settings is not
76
+12. Backup and restore of VHF/UHF split frequency repeater settings is not
74 77
     supported by the FT991.
75
-12. Please do not edit the menu settings file unless you absolutely know
78
+13. Please do not edit the menu settings file unless you absolutely know
76 79
     what you are doing.  There should rarely be a need to edit this file.
77 80
     Menu changes should be made on the FT991, itself, and then backed up.
78 81
 
... ...
@@ -38,7 +38,7 @@
38 38
 
39 39
 _WINDOWS_COM_PORT = 'COM5'
40 40
 _LINUX_COM_PORT = '/dev/ttyUSB0'
41
-_FT991_BAUD_RATE = 9600
41
+_FT991_BAUD_RATE = 4800
42 42
 
43 43
 import os, sys, serial, time
44 44
 import ft991 # module should be in same directory as this utility