delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/05/22/09:15:08

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=Qfs6emw1hD0kqgvQubcl6oE4dS0VvbcUUUG4vofCXjwBRa7wC/YMz
ZDVle0iOTMPFO5By7UfpS/vc3f2et7lkIKF/axAFmM7ftb/5g/jWJN0HfS8y6pJk
MGK9pOUeyJO5Agskn9fBWY8G2c5n+vMSkprCuBcU8VDoJACNFjykyA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=84x3x+XO7+AOeYxlvxZxYtNnxg8=; b=gZSh3zx6uyVlbTeLLy/KDm8IRXNh
yiW24sV7L2SgHOTD/66LyFoL9aANPsUs6X12JjLyUtDqrM+klZrfgqB0hDJXW9tR
s8ZBppYuT5IoXZd/ZUn8WG0bqs96nEvfEhuhcO61yZ1Ni5a2is6qrxkjPQzlAwQv
A+Jv5e6yur42PbE=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=BASE64_LENGTH_79_INF,BAYES_50,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Subject: Re: file-transfer-over-soundcard
Date: Fri, 22 May 2015 13:14:17 +0000 (UTC)
Lines: 1
Message-ID: <loom.20150522T142634-661@post.gmane.org>
References: <mjik7r$kq3$4 AT ger DOT gmane DOT org> <8604DCD9-8901-46AD-9FA1-D20543B09680 AT etr-usa DOT com> <mjk00u$ib4$1 AT ger DOT gmane DOT org> <EA5E51E0-2160-4830-A9D2-B52804CAD0CE AT etr-usa DOT com> <mjml8i$ckt$1 AT ger DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id t4MDExE4003672

Spet <spora <at> email.it> writes:
> -------- Original Message --------
> > On May 21, 2015, at 1:03 AM, Spet <spora <at> email.it> wrote:
> >>
> >> When i execute from dos console:
> >
> > Why aren’t you using Cygwin Terminal instead?
> This is my first time.
> However I have to use it in windows console.
> >
> > The Cygwin Terminal has a huge number of features missing from the
Windows console, some of which allow it
> to work better with Cygwin programs.  (UTF-8 support, for example.)
> >
> > Meanwhile, the DOS console offers zero advantage over the Cygwin
Terminal when it comes to running Cygwin executables.
> Ok
> >
> >> ./generate.exe -b 25 -r 48000 -o out.data /etc/fstab

> > Anyway, it works here.  I get a 25 MiB sound output file for a 531 byte
/etc/fstab.
> Now here, I understood better how it works.
> >
> >> generate.exe -b 25 -r 48000 -o "k:\TEMP\a.txt" c:\cygwin\etc\fstab
> >
> > Are you sure you built it with the Cygwin C compiler, and not something
else, like the MinGW or Visual Studio
> compilers?  That’s the only explanation I can think of for why the POSIX
path (/etc/fstab) would fail,
> but a DOS path would succeed.
> I've only done "makefile" in terminal.
> >
> > I have to ask: Why do you even want this software?
> Just a curiosity to transmit files via audio and compile a C source 
> Linux in Windows.
> 
> Finally, the compilation work.  The sound file is recorded and the audio 
> capture works.
> But the transmission of the file fails because I get a bit sequence 
> completely different from the original.
> 
> Ty :)

The original article
https://github.com/vlofgren/file-transfer-over-soundcard author tried to
reinvent the wheel - badly! 
He tried to build a bit to audio converter - a modem in software, softmodem
aka soundmodem, which does in software what a modem does in hardware,
ignoring almost a century of development since the news wires started using
teleprinters. 
His hardware interface was a microphone taped to headphones rather than a
simple cable connection - no wonder he had noise problems limiting him to 25
bps, the same rate achieved by IBM with cards in 1942 - see
https://en.wikipedia.org/wiki/Modem#History - when lines used one wire, and
switching was relays, electro-mechanical, or plugboards. 

Look instead for something reasonable - search for softmodem or soundmodem
e.g. http://www.araneus.fi/audsl which gets 9.6kB/s duplex over kms of wire
pair. You can also find code to do regular V.92bis dialup modem emulation. 
Regular soundcards should be capable of 4x dialup bandwidth, allowing up to
72kB/s. 
-- 
Take care. Thanks, Brian Inglis

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019