Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 days ago.
Improve this question
I am creating calling app for windows in C#. I am using Serial port, NAudio, USB gsm dongle. My app is working when I talking to my phone microphone. I can hear voice clearly. But sending voice is noisy and there is clicks and I can't send voice clearly. I am writing my laptop microphone voice to serialport as 1024 length byte chunks. Voice parameter is 16bit PCM 1 channel.
I met some solutions like fadein/fadeout or send voice before accepting.
Serial port parameters: baud rate 4800, data bits 8, Handshake is off, dtr/rts are enabled
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have to use 'NEX 530 NFC RFID' reader in a C# windows application.
The Nex-530 desktop reader is a Mifare ISO14443A, B or ISO15693 read/write device with a typical operating distance of 50‐100mm.
The SDK and sample codes are in C language and I didn't find anything about this device on the internet.
How can I connect to this device on a .NET platform?
It seems to communicate through serial communication.
I suggest you to try to read value this way :
using (var sp = new System.IO.Ports.SerialPort("COM1", 115200, System.IO.Ports.Parity.None, 8, System.IO.Ports.StopBits.One))
{
sp.Open();
var readData = sp.ReadLine();
Console.WriteLine(readData);
}
You can find the serial port in Windows at Computer Management -> Device Manager for example :
To test serial communication, you can use Putty to check if you can read value from the device and to fine-tune serial communication parameters. If it's working with Putty, the code above should work.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I am doing a school project where it would be nice to perform actions in a c# application by pressing physical Arduino buttons.
I have seen plenty of tutorials on how to perform actions in Arduino by pressing buttons in c#, but none of this reversed. I only saw somewhere that I needed to add a "serial port listener" but it wasn't explained and I don't know this term.
Can anyone help me with this?
You can write a C# (.net) program that listens/writes to the serial port the arduino is connected on
Microsoft's page on how to write data from a .form application to a serial device
The arduino can read incomming serial data periodicaly using the following example:
Arduino code on how to "listen" to a serial port
This is just a starting point..
edit: I now see you are asking for the "from arduino to PC" button interaction!
Just send a character over the serial port from your arduino:
send a character over serial with arduino
Receive the character in your windows application:
read a character in a .net application
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
so, I'm super new to using an arduino, and I can't seem to understand what happens when I do SerialPort.Write() to one. like, what function within the standard firmata occurs?
When the computer sends data to the arduino trough a serial port, the arduino receives that data and stores it in a buffer until your arduino code does a Serial.read() (or any other variant used to read the serial data). Once the data is read, the buffer is cleared.
It's worth noting, however, that the handling of the usb comunication is NOT done by the arduino's main chip (the one in which your code runs), but rather in a separate chip installed on the arduino board solely for this purpose. The arduino library's Serial class handles the communication between the main chip and the one that handles the usb comms.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm using C# to command a GSM/GPRS modem via a serial port.
Can I write the commands to the port one after another without a gap or should I wait for the response form the modem after the last command? Using something like Thread.Sleep.
I use it to send SMS to multiple phone numbers.
=======
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need to access Windows Phone 8 contacts/pictures/sms messages from Windows desktop/store app by using c#, when phone is connected with usb cable. How can I do this ?
You can not access the contacts, SMS from the desktop. You have the ability to sync the content of the emulator with the Additional Tools that the emulator comes with. Read this post it shows how to sync the content of the emulator to the hard disk of your desktop. Other than that, you have no access to the contacts, SMS from the desktop.