|
If you want to receive "data", then use :
while(true)
{
try
{
string receivedMessage = serialPort1.ReadLine();
Console.WriteLine(receivedMessage);
}
catch(TimeoutException)
{
}
}
Put this method in a new thread.
If you want to receive the "sound" from the person, I don't know how to do that.
I think, the "sound" is analog, that's why the modem is an analog modem.
You need something to digitalized it, something like Analog-Digital-Converter.
|
|
|
|
|
No,
now it's important for me that when the person speaking, I receive data.
no exactly sound.
in the str I receive data.
how ?
Best wishes
|
|
|
|
|
A normal analog modem doesn't do that.
If the modem receive a "sound", you receive nothing
from serial port. You can only hear from the modem
speaker that your partner say something.
|
|
|
|
|
And if he presses any key of phone device, then again I can't receive any data ?
Best wishes
|
|
|
|
|
Hello
When a caller presses a button in a voice call something called DTMF tone is generated. To learn how to handle DTMF tones revise your TAPI documentation in MSDN
Regards
|
|
|
|
|
Hello
mehrdadc48 wrote: I want to receive data from the calling phone, that a person is speaking.
Modems actually work in several modes. Two of them are
1- Voice calls
2- Data calls
You can not transfer data in a voice call. On the other hand you can transfer voice -as a data stream- in a data call. This is called Voice Over IP.
If you are making a voice call -for example an ordinary phone is calling your phone line, and you want to record this using your computer-. In this case you should capture the audio stream from the modme speaker's audio line.
If you are developing something like a messanger that works on phone line instead of the internet. Transfer your voice as an audio stream. This way you can transfer data with it-eg. files, pictures, text, etc...-
Your loop should work if it's a data call -supposing that your modem's AT command is working-. Yet take care that this loop will go forever until you call a break;
It it's not working for some reason or another, post more details on your problem, so that we could get more oriented with it.
Regards
|
|
|
|
|
"you should capture the audio stream from the modme speaker's audio line"
please tell me how to do this ?
And how this?
"Transfer your voice as an audio stream"
I prefer that do this in managed code in c#
-- modified at 11:34 Tuesday 15th August, 2006
Best wishes
|
|
|
|
|
|
My freind,
I want to capture analog sound from modem ..
"You can not transfer data in a voice call"
I want to recieve voice in voice call(not data call), in my application not on modem speaker
-- modified at 5:37 Wednesday 16th August, 2006
Best wishes
|
|
|
|
|
Hello
I was only giving you all the possible options in using the modem.
If it's only voice you want to receive then using voice call would work fine. As I told you before you would use TAPI -ie. Telephony Application Programming Interface-.
Read TAPI documentations for details. For more specific help, you may repost.
Regards
|
|
|
|
|
Hi,
I have a variable called 'fromDate' which is a DateTime value and I need to pass it into the following scenario:
DataTable table = myclubDataSet.Tables["TresReports"];<br />
string expression;<br />
expression = "ReportDate = #1/01/2006#";
DataRow[] foundRows;<br />
foundRows = table.Select(expression);<br />
for (int i = 0; i < foundRows.Length; i++)<br />
{<br />
int rowis = (int) (foundRows[i][0]);<br />
totalBF = Convert.ToDecimal(myclubDataSet.Tables["TresReports"].Rows[rowis]["BalanceOH"]);<br />
}<br />
Thanks,
Glen Harvy
|
|
|
|
|
Like this:
expression = "ReportDate = #" + fromDate.ToString("dd/MM/yyyy") + "#"
Verify the date format, though. I had to guess, as you are using a date format that doesn't follow the ISO 8601 standard.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks for the response. I should have remembered this - it's getting late at night here
Format's OK - we're just different here in Australia
Glen Harvy
|
|
|
|
|
In my MasterPage I have this code:
private string _callbackResult = null;
protected void Page_Load(object sender, EventArgs e)
{
string cbReference = Page.ClientScript.GetCallbackEventReference(this, "arg", "Result1", "context");
string cbScript = "function UseCallback1(arg, context)" + "{" + cbReference + ";" + "}";
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "UseCallback1", cbScript, true);
}
public void RaiseCallbackEvent(string eventArg)
{
string res = AgentLogin(eventArg).ToString();
_callbackResult = res;
}
public string GetCallbackResult()
{
return _callbackResult;
}
When I open the first page - everything is ok! But when I move to the second page I can see that there is no "UseCallback1" JavaScript function in HTML!
Help me please to fix this problem!
-- modified at 4:16 Tuesday 15th August, 2006
|
|
|
|
|
How could i set righttoleft for listbox when im using draw item event and the listbox Drawmode is set as OwnerDrawFixed.
i tried following code in drawitem event:
this.li_author_persian.RightToLeft=RightToLeft.Yes;
but it doesnt work.
|
|
|
|
|
OwnerDraw means your settings on the item do nothing, it's your own code that controls how it is drawn.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks, so how can i set it right to left ?!!
|
|
|
|
|
If you're owner drawing, then you're drawing it yourself, aren't you ? Does DrawString have properties to support this ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Dear Christian
Unfortunatly DrawString have not RightToLeft property?
|
|
|
|
|
I'm sorry, I've never drawn a righttoleft string, all I can tell you for sure is that if you've set the control to be owner drawn, no other property is going to matter, your own code is completely responsible for how it is rendered.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
How to asynchronously invoke three different tasks and interact with UI simultaneoulsy.
I have three different screens where i should be able connect to same database and interact with UI asynchronously.
Can anyone help me.................
|
|
|
|
|
Hello
pranu_13 wrote: How to asynchronously invoke three different tasks and interact with UI simultaneoulsy.
Using multithreading, but I think you already know that!!
pranu_13 wrote: I have three different screens where i should be able connect to same database and interact with UI asynchronously.
So what is wrong with that?? Each form will make an independent connection to your database. Whether they are 3, or even 100 screens. Each will make its own conection without knowing about other connections or screens.
pranu_13 wrote: Can anyone help me.................
If you still need more help, yes! If you post more details perhaps.
Regards
|
|
|
|
|
hello
i want to get drives in tree shape, how is it possible using tree list or in any other way.
syntax is requires?
muhammad mahmood ilyas
|
|
|
|
|
hello
procedure is required.
muhammad mahmood ilyas
|
|
|
|
|
hi, whenever you run the project , exe file is made. for 2003 , exe is in debug or release folder in the directory of the project.
|
|
|
|