English
Forum

Completed: modem-output, readcom etc.

 

Matthias
Arlt
Hello people,
to längerer absence time again of what me.
I had it already in that RGH-Forum set, now here again to safety... but first time NEN lovely greeting into round !

question on our modem-Experten:

The follow up code should as part of/ one Phone-software serve...

the modem becomes hierbei the Audiosignal the Telefonleitung aufgeschaltet.
my Überlegung was now, whom output (to the Messagebox) in a WAV-File
To write or. on these anzuhängen. any try through @BlockWrite etc.
hit[ed] unfortunately fehl, there me The tidy Filterung (readcom) not succeed...

so far the trouble in the Forum already addressed, watts, have I attempts, the
properly einzuarbeiten, however unfortunately with unbefriedigendem Result.
Perhaps has here someone a helpful idea or quite ne probate Solution.
theoretical should it Yes really machbar his !

Freue me over each Info !

Matthias

---------------------------------------------------------------------------
code-statement:

declare com%,com$,end%
declare comm#,lperror&,byte%,szRxChar#,dwBytesRead&,ovRead#
dim comm#,12
dim ovRead#,20
dim szRxChar#,65000

proc comread
clear comm#,lperror&,byte%,szRxChar#,dwBytesRead&,ovRead#,com$
external(kernel32.dll,ClearCommError,com%,addr(lperror&),comm#)
dwBytesRead&=@long(comm#,4)
if dwBytesRead& > 0
external(kernel32.dll,ReadFile,com%,szRxChar#,dwBytesRead&,addr(dwBytesRead&),ovRead#)
byte%=1
com$=@char$(szRxChar#,0,dwBytesRead&)
return com$
endif
endproc

Proc modemoutput
comread
print com$;
endproc

proc modemCOM and Init-String ggf. adjust
com%=opencom(COM3,65000,65000)
setcom(COM3:9600,n,8,1)
writecom(com%,AT&FE1V1s0=0& C0& D2+MR=2;+DR=1;+ER=1;W2
)
modemoutput(com%)
writecom(com%,at+fclass=8
)
modemoutput(com%)
writecom(com%,at+vsm=130,8000,0,0
)
modemoutput(com%)
writecom(com%,at+vls=1
)
modemoutput(com%)
messagebox(Modemaufzeichnug started,Modemtest,0)
writecom(com%,at+vrx
)
modemoutput(com%)
endproc

Window 0,0-%MaxX,(%MaxY-50)
modem

clear end%
whilenot end%
case inkey$()=~:end%=1
modemoutput(com%)
wend
closecom(com%)
dispose comm#
dispose ovRead#
dispose szRxChar#
end

Anm.: it's about Prf 7.6 under Win XP
 
WinXP SP2, Win7 - XProfan 10/11/FreeProfan32 - Xpia
08/16/05  
 




Michael
Wodrich
[quote:f9there9fffcd=Matthias]
the modem becomes hierbei the Audiosignal the Telefonleitung aufgeschaltet.
my Überlegung was now, whom output (to the Messagebox) in a WAV-File
To write or. on these anzuhängen. any try through @BlockWrite etc.
hit[ed] unfortunately fehl, there me The tidy Filterung (readcom) not succeed...
[/quote:f9there9fffcd]
Steh I there now the pipeline? won't eachone modem-receptions by Audiosignal on The Telefonleitung aufgeschaltet?

usually must You means only one richtiges modem and have The korrekte Baudrate etc. know.

I have already etliche Telefonanlagen angezapft (hotel). either one toggles a Puffer between (only exotic Settings or plenty Datenmüll necessary) or one takes it directly on the interface or by modem on.

have You there closer indicated to the equipment?

have You already a Datenempfang by HyperTerminal hinbekommen? HyperTerminal is under Zubehör - communication to find (must evtl. from the windows-CD nachinstalliert go).

If this program solid Datensatz-Structures indicating, then save you The API-stories. Profan can the too so, though standing in the Help: ReadCom().
The function supply but a String, is means ReadCom$().

One Tipp on the Rande. leave you never hereon, the too really always klare Datensätze arrive. Telefonanlagen choke already time the a or others byte. there must You etliche Plausibilitätsprüfungen install, so the program not Garbage processing.

particularly if a Telefonanlage crashes and a Reset durchführt, alights each crowd diagnosis-Garbage on the pipeline. too go of some facilities in the Zuge one Reset Altdaten transfer, so the horchende Program fehlende Transactions nachtragen can.

Best wishes
Michael Wodrich
 
Programmieren, das spannendste Detektivspiel der Welt.
08/17/05  
 




Matthias
Arlt
Hello Michael,

thanks for your Erläuterungen. myself have me namely with Terminalsoftware etc. yet sooner less engage. this same time beforehand.
and clear, naturally toggles itself each modem quasi the Audiosignal on.

time something to that background the Vorhabens:
here goes it konkret therefore, available Analog PCI-Modems for pure Telefonie-tack weiterzuverwenden. The Mehrzahl this Modems are of course voice-capable, order however not a own Audiochip or -exit.
there one hardwareseitiger invasion from unterschiedlichen Found not pseudo is, must I means softwareseitig on the Audiosignal herankommen, it means audible make (How about as Mithör-function). ideal would there naturally, the signal directly a MCI-Device umzulenken. Since I not knows, whether and ggf. How something like practicable is, try I first of all whom detour over a WAV-File.
in principle functions the indeed, only is even the signal then durchmischt with besagtem Datenschrott, How You indeed write. the momentane trouble is means The Filterung (How and to whom criteria), circa letztlich one sauberes Audio to obtain. Diverse answering machine-programs rule it indeed.

Perhaps there for too another others better Solution. I knows not or come momentarily not on it. therefore my question...

means abstracted goes it around the tidy Auskopplung of reinen Tonsignal.

Greeting Matthias
 
WinXP SP2, Win7 - XProfan 10/11/FreeProfan32 - Xpia
08/17/05  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.570 Views

Untitledvor 0 min.
Walter05/15/21
Uwe Lang11/14/18
iF01/03/16
bastler12/16/13
More...

Themeninformationen

this Topic has 2 subscriber:

Matthias Arlt (2x)
Michael Wodrich (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie