Compare commits

..

No commits in common. "9e65be7ab704297ccb12dc6f6300a28039abc3a6" and "e47491e58b789d47143eb7bca05ef9c906716f4b" have entirely different histories.

4 changed files with 18 additions and 33 deletions

View File

@ -1,8 +1,5 @@
# DMRconfig
DMRconfig is a utility for programming digital radios via USB programming cable. DMRconfig is a utility for programming digital radios via USB programming cable.
Supported radios:
## Supported radios:
* TYT MD-380, Retevis RT3, RT8 * TYT MD-380, Retevis RT3, RT8
* TYT MD-390 * TYT MD-390
@ -53,24 +50,6 @@ Update database of contacts from CSV file:
Option -t enables tracing of USB protocol. Option -t enables tracing of USB protocol.
## Compilation
Whenever possible use the `dmrconfig` package provided from by Linux distribution
If you want to compile `dmrconfig`, follow these instructions:
* Install dependencies
* On Ubuntu `sudo apt install git build-essential pkg-config libusb-1.0-0-dev libudev-dev`
* On Arch Linux `sudo pacman -S git base-devel libusb`
* On Mac OS `brew install pkg-config libusb`
* Clone this repository
```
git clone https://github.com/sergev/dmrconfig
```
* Compile and install
```
make
sudo make install
```
## Permissions ## Permissions
On Linux, a permission to access USB device is required. On Linux, a permission to access USB device is required.
@ -93,12 +72,20 @@ To activate it, run:
Then re-attach the USB cable to the radio. Then re-attach the USB cable to the radio.
## License ## Sources
Sources are distributed freely under the terms of BSD 3 license. \ Sources are distributed freely under the terms of Apache 2.0 license.
For more information see the [LICENSE file](https://github.com/OpenRTX/dmrconfig/blob/master/LICENSE) You can download sources via GIT:
## Credits git clone https://github.com/sergev/dmrconfig
DMRconfig was created by Serge Vakulenko KK6ABQ.
It is currently maintained by the OpenRTX developers.
To build on Linux or Mac OS X, run:
make
make install
Regards,
Serge Vakulenko
KK6ABQ

2
main.c
View File

@ -37,8 +37,6 @@ const char *copyright;
extern char *optarg; extern char *optarg;
extern int optind; extern int optind;
int trace_flag = 0;
void usage() void usage()
{ {
fprintf(stderr, "DMR Config, Version %s, %s\n", version, copyright); fprintf(stderr, "DMR Config, Version %s, %s\n", version, copyright);

View File

@ -139,9 +139,9 @@ extern unsigned char radio_mem[];
// //
// File descriptor of serial port with programming cable attached. // File descriptor of serial port with programming cable attached.
// //
extern int radio_port; int radio_port;
// //
// Read/write progress counter. // Read/write progress counter.
// //
extern int radio_progress; int radio_progress;

2
util.h
View File

@ -35,7 +35,7 @@ extern const char *copyright;
// //
// Trace data i/o via the serial port. // Trace data i/o via the serial port.
// //
extern int trace_flag; int trace_flag;
// //
// Print data in hex format. // Print data in hex format.