Compare commits

...

5 Commits

Author SHA1 Message Date
Nimayer 9e65be7ab7
Align license statement on README.md to current license 2021-01-05 22:08:39 +01:00
Nimayer 0693b3cfef
Update README.md
Fix typo
2021-01-05 21:56:39 +01:00
Federico Amedeo Izzo 62c22c3c83 README.md: Add build instructions and requirements 2021-01-05 21:55:22 +01:00
Federico Amedeo Izzo 1a6901488d Fix compilation with GCC 10, defaulting to -fno-common. solve issue #52 2021-01-05 20:52:43 +01:00
Nimayer 0f5816b63a
Update README.md
Add credits section
2021-01-05 20:26:19 +01:00
4 changed files with 33 additions and 18 deletions

View File

@ -1,5 +1,8 @@
# DMRconfig
DMRconfig is a utility for programming digital radios via USB programming cable.
Supported radios:
## Supported radios:
* TYT MD-380, Retevis RT3, RT8
* TYT MD-390
@ -50,6 +53,24 @@ Update database of contacts from CSV file:
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
On Linux, a permission to access USB device is required.
@ -72,20 +93,12 @@ To activate it, run:
Then re-attach the USB cable to the radio.
## Sources
## License
Sources are distributed freely under the terms of Apache 2.0 license.
You can download sources via GIT:
Sources are distributed freely under the terms of BSD 3 license. \
For more information see the [LICENSE file](https://github.com/OpenRTX/dmrconfig/blob/master/LICENSE)
git clone https://github.com/sergev/dmrconfig
## Credits
DMRconfig was created by Serge Vakulenko KK6ABQ.
To build on Linux or Mac OS X, run:
make
make install
Regards,
Serge Vakulenko
KK6ABQ
It is currently maintained by the OpenRTX developers.

2
main.c
View File

@ -37,6 +37,8 @@ const char *copyright;
extern char *optarg;
extern int optind;
int trace_flag = 0;
void usage()
{
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.
//
int radio_port;
extern int radio_port;
//
// Read/write progress counter.
//
int radio_progress;
extern int radio_progress;

2
util.h
View File

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