|
this is the code:
serialPort1.DataReceived += new SerialDataReceivedEventHandler(serialPort1_DataReceiver);
serialPort1.Open();
string answer;
serialPort1.Write("ATM2\r");
answer = serialPort1.ReadLine();
serialPort1.Write("ATL3\r");
answer = serialPort1.ReadLine();
serialPort1.Write("ATDT" + phone + "\r");
answer = serialPort1.ReadLine();
serialPort1.Write("ATH\r");
answer = serialPort1.ReadLine();
serialPort1.Close();
'answer's' value are commented.
thanks.
|
|
|
|
|
Hi,
please try ATM1\r instead of ATM2
bye
|
|
|
|
|
I tried, but there is still now voice
|
|
|
|
|
I don't know, however I would insert a big delay (3 seconds as a first experiment) between every pair of statements, so the system can settle before your program continues; as it is now, it is all done in a few milliseconds, maybe something isn't fast enough to keep up.
If that helps, you then can reduce the delays until it starts to fail again.
|
|
|
|
|
tried to put 3 seconds sleep between each command, but it still dials withut the sound.
|
|
|
|
|
try this below
serialPort1.Write("ATDmyphone;\r");
put ";" after your phone number
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
AFAIK, ';' tells the modem to return to return to command mode after the phone was dialed. How this may help?
I tried it, but still there is no sound
Thanks for your advice.
|
|
|
|
|
Then..,
that is very difficult to solve your problem by us, you have to debug the dialer software that which "AT" commands are sending to the modem,
Use a Serial Port Monitor to see the AT commands are sending by the dialer software..,
download the serial monitor from the following link
http://www.hhdsoftware.com/products/[^]
Thanks & Regards
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
Did you ever resolve this? What modem type are you using?
|
|
|
|
|
Hi
I am looking for a solution to have self-written services supervised by a Network Management System using SNMP. From the second picture in the Article A simple guide to WMI providers it should be possible to use the WMI mechnism inside the services and expose the data through the SNMP service. But I din't find any useful ressource in the web. All I found were describing the SNMP Provider to access devices with a running SNMP agents.
Can you give me some useful ressources about exposing the data through the SNMP service? Maybe you've done it already and can give me an example? Or is it not possible?
Thanks for your help!
Greetings
Roland
|
|
|
|
|
Hi All,
Can you pls explain with example what is difference between Expression<Func<>> and Func<> in linq to sql query generation?
Thanks in advance,
Anish Patel
|
|
|
|
|
Probably you can find here someone that could answer you, but I think that you have too much more chances if you move you post to the LINQ forum
|
|
|
|
|
Hi,
is there any restriction to the AccessibleName Property of a control? Must be the value unique within a winform?
thank you in advance.
|
|
|
|
|
By default, they're all null , so no, they don't have to be unique.
But they have a lot more value for persons using assisted-computing technologies/screen readers to help them use your software.
In and of the fact that you're using the field suggests that you might want to think about unique names, unless you know your users well.
Cheers.
|
|
|
|
|
Thanks for the Feedback, so we try to use this property as an identifier for the control-content. The issue you write about, i will have a deeper look...
|
|
|
|
|
i' trying to pass a file path to a batch file. and i'm using
"path"
but in the batch file it takes the path half , means it stops at the first spae occurs in the
path.
and i can't use the
%~f1
, because the file path is another location , not int program folder.
any idea to solve this.
thank you in advance.
|
|
|
|
|
Are you using the Process object to execute your batch file.
In this case, you can do this -
Process myProcess = new Process();
myProcess.StartInfo.FileName = "my.bat";
myProcess.StartInfo.Arguments = "/myArg";
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
yes ,i'm sending it this way
ProcessStartInfo ps = new ProcessStartInfo(@"C:\batch1.bat");
ps.Arguments = "\""+dllFolder+"\"";
Process.Start(ps);
|
|
|
|
|
prasadbuddhika wrote: ps.Arguments = "\""+dllFolder+"\"";
Are you trying to pass in \dllFolder\?
You need to pass in the drive too, right?
As in just try @"C:\dllFolder\" ;
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
here dllfolder is the path of the dll that the user browse and select. it might contains the path with spaces, so when i pass this as a parameter , in the batch file it takes the path up to the first space.
|
|
|
|
|
Is the content of dllfolder between quotes? If it is not, it should. Try this before:
dllfolder = "\"" + dllfolder + "\"";
Let us know if this helped you.
|
|
|
|
|
??? Hmmm...
You didn't use
%~1 for batchparameter access I hope, this would remove quotation marks.
I can not see any other problem. Can you show how you use the parameter in the batchfile?
|
|
|
|
|
Hi all,
I want to build my own feature like "Find all references" in VS 2008.
Is there anyone know how to build it?
Pls. help me.
|
|
|
|
|
I think that the answer stays inside the Visual Studio Extensibility and the Visual Studio SDK. Try starting from here[^]...
|
|
|
|
|
Thank you for reply.
But I want to build independent tool (not a add-in tool)
|
|
|
|