4 Commits

Author SHA1 Message Date
Gerolf Ziegenhain
183e60aa16 adjust interface number 2016-10-03 16:30:35 +02:00
Gerolf Ziegenhain
fde22697d8 cleanup beep buzzer 2016-10-03 16:26:58 +02:00
Gerolf Ziegenhain
5286a77c70 reduced docu 2016-10-03 16:25:37 +02:00
Gerolf Ziegenhain
b29dc7281a cleanup beep 2016-10-03 16:23:41 +02:00
4 changed files with 3 additions and 43 deletions

View File

@@ -2,36 +2,6 @@ irmc - Internet Relay Morse Code
================================
IRMC stands for Internet Relay Morse Code and is an implementation of [MOIP](http://8ch9azbsfifz.github.io/moip/).
# How to build?
## Install dependency: morse keyer library
```
wget https://github.com/8cH9azbsFifZ/morse/archive/v0.1.tar.gz
tar xzf v0.1.tar.gz
cd morse-0.1
libtoolize
./autogen.sh
./configure --with-portaudio
make
sudo make install
```
## Debian (Wheezy)
Some dependencies have to be installed:
```
apt-get install -y alsa-oss oss-compat build-essential autoconf libao-dev libtool
```
Afterwards compilation with `make` should work. If something went wrong, you may have
to adjust your `LD_LIBRARY_PATH`. Alternatively try:
```
LD_LIBRARY_PATH=/usr/local/lib ./irmc mtc-kob.dyndns.org 7890 33 123
```
## OSX (Yosemite)
Compilation with make :)
For the USB serial devices you need a PL2303 driver
(i.e. [PL2303_Serial-USB_on_OSX_Lion.pkg](http://changux.co/osx-installer-to-pl2303-serial-usb-on-osx-lio/)).
# Hardware interface options
A good description on how to build different interfaces (telegraph key, sounder or both)
is given on the [MorseKOB Website](http://kob.sdf.org/morsekob/interface.htm).

View File

@@ -20,11 +20,6 @@ typedef struct
uint32_t freq;
} paTestData;
static int patestCallback( const void *inputBuffer, void *outputBuffer,
unsigned long framesPerBuffer,
const PaStreamCallbackTimeInfo* timeInfo,
PaStreamCallbackFlags statusFlags,
void *userData );
void buzzer_set_freq(int frequency);
void buzzer_beep(int frequency, int msecs);
int buzzer_start(void);

View File

@@ -1,4 +1,4 @@
#define INTERFACE_VERSION "irmc v0.02"
#define INTERFACE_VERSION "irmc v0.3.3"
// Structures for the packets: unsigned short command
#define DIS 0x0002 // disconnect

View File

@@ -19,13 +19,6 @@
#include <sys/time.h>
#include <stdio.h>
#define BEEP_MORSE
#ifdef BEEP_MORSE
#include <morse/beep.h>
#else
#include "portaudio.h"
#endif
#ifdef __MACH__
#include <mach/clock.h>
#include <mach/mach.h>
@@ -40,6 +33,7 @@
#define MAXDATASIZE 1024 // max number of bytes we can get at once
#include "cwprotocol.h"
#include "beep.h"
int serial_status = 0, fd_serial, numbytes;
@@ -406,6 +400,7 @@ int main(int argc, char *argv[])
send(fd_socket, &disconnect_packet, SIZE_COMMAND_PACKET, 0);
close(fd_socket);
close(fd_serial);
buzzer_stop();
exit(0);
}