Redirect Audio Stream To/from The Serial Port?
Jan 19, 2011
I'm writing a program that will allow me to send SMS and call using a GSM modem.
I'm communicate with the modem using AT commands.
I have a problem with "connect" sound from the modem to the speakers.
After installing the modem is visible in the system as two ports.
On one of them sends and receives commands.
The second is just for voice communication.
I can't redirect PC audio input/output to the modem serial port. (So I can't hear callers and vice versa)
From what I've managed to find I have to use SAPI. (ISpVoice::SetOutput)
View 10 Replies
ADVERTISEMENT
Aug 16, 2011
i am a absolute beginner and i want to use vb to receive data from micro controller through serial port using rs232 standards, i found this code to receive the data serially, can any one tell me where should i paste this code, so that the data received will be displayed in message box.Private Sub DataReceived(ByVal sender As System.Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) HandlesSerialPort1.DataReceived
[Code]...
View 9 Replies
Oct 26, 2011
The link below has code to connect to a modem thru the serial port but it is for an earlier version of VB. when I convert the code, it does not fully convert and has 4 errors that prevent building the project. can someone tell me what needs to be changed or added?
[URL]
Note: the error: not CLS-Compliant
View 8 Replies
Oct 22, 2009
I don't know VB very well, but I need to create a wrapper program for any executable that logs the arguments, all input, output and err information:
My wrapper is called: e.g. someApp.exe arg1 arg2
Logs to someApp.log: arg1 arg2
Calls original executable: _someApp.exe arg1 arg2
Must log and forward any console input to _someApp process inputstream
Must log any output and error stream from _someApp process
I'm stuck at point 4 now:
Dim p As New ProcessStartInfo
p.FileName = execute
p.Arguments = Command()
p.UseShellExecute = False
p.CreateNoWindow =
[Code] .....
After _someApp ends I am able to read out and err stream to log it, but I still need to provide my own wrappers input to the process and I want to read out and err stream as it happens.
View 2 Replies
Mar 28, 2006
I have a stand alone VB.Net 2005 application that uses a serial port that generally stays open while the application runs on a Windows XP system. In trying to bullet-proof the UI, I ran into a problem when the USB to Serial Converter normally used to provide the serial port is disconnected while the serial port is open. In trying to handle the resulting error when accessing the port, I find I cannot close the port.
When trying to do so, the error message says something like "unable to close the port. You may not have sufficient permissions." Reconnecting the USB/Serial Converter does not reactivate the port.
[Code]...
View 8 Replies
Nov 27, 2010
I'm mohammed from Oman ,I'm visual studio.net programmer How I can Read the Data From Barcode Weight scales By Serial port and TcpIp port
View 7 Replies
Jul 25, 2011
I have a Windows form.in windows form have a combo box that give me a list of available port serial with it code (Dim ports As String() =SerialPort.GetPortNames())for example( Com1,Com8,Com15,...).but I want to give me fullname of serial port in device manager for example in dvice manager is these (Comunication Port(COM1) - Printer Port(LPT1) And USB Serial Port(COM8)).how to Get it?
View 2 Replies
Nov 18, 2009
I have link: [URL]
I want capture the audio stream on my computer in mp3/wav.
I have no idea from what i should start. What should i use for start developing? I'm working in VS2008 on VB. Can i do it in VB? What additional software i need?
View 2 Replies
Aug 2, 2011
If I uninstall the COM1 and reboot, it works. If I shut down (power off) and restart, I get the message below. If I uninstall then click on Scan for Hardware Changes,The given port name does not start with COM/com or does not resolve to a valid serial port. Parameter name:portName
View 8 Replies
Jun 21, 2011
Is it possible to capture all/any audio played by a PC into a system.io.stream, so that it can then be run through speech recognition (System.Speech.Recognition.SpeechRecognitionEngine)?Essentially I'm looking to pefrom speech recognition on any audio on the client PC, google seems to suggest that capturing a stream like this can be done using Microsoft.DirectX.DirectSound, however I cannot honestly determine how.
View 1 Replies
Jan 4, 2011
I'm using vb.net and "my.resources" to store wav audio files.I know I can play such files using:
My.Computer.Audio.Play(MyProjectName.My.Resources.Resources.resourcename, AudioPlayMode.BackgroundLoop)
However I want to use bass.net to play the file and it requires either the the file name on the file system or a stream. how do you get the data inside an audio resource into a stream?This is what I have so far:
Dim imgByteArray() As Byte
imgByteArray = CType(MyProjectName.My.Resources.ResourceManager.GetObject("resourcename"), Byte())
stream = New System.IO.MemoryStream(imgByteArray)
[code]....
I get this error on the bold line above:
Unable to cast object of type 'System.IO.UnmanagedMemoryStreamWrapper' to type 'System.Byte[]'.
1. Is there a way to cast from System.IO.UnmanagedMemoryStreamWrapper to type System.Byte?
2. What would be the best method to get the audio resource into a stream format?
View 5 Replies
Sep 21, 2010
I am trying to write a little synthesizer program, and as a first step I am creating .wav files opened for reading and writing using the code below called from a button click event handler. The audo plays but once, no matter how many instances of the Audio.Play method are called. I also tried closing the file and then calling the Audio.Play method on the full path name. In each case, the audio plays but once. If I click the button again, the file will be played once more. The duration for the audio is one second, so I am sure that it is only being played once every time. I do not want to loop the data. The idea is that when the user plays a new note, I update the file and replay it with the new data. Since the file is recreated every time I click the button, I guess what I *need* is working, but I am still curious why I cannot replay the content of the file.
' Create a file stream object for reading and writing.
Dim FS As New IO.FileStream(fileNamePath, _
IO.FileMode.Create, _
[Code]....
View 9 Replies
Aug 24, 2010
I have a standard WMA stream, streaming in constantly via the internet. I need to write an application to stream this audio, and looks for any periods of 'silence'. When it detects silence, it runs an event.
For the purposes of this, silence is defined as three seconds of zero-level audio. The stream keeps going in a technical sense, but there is no audible noise coming through it.
However, I want the program to detect the silence while it is still in the 'buffer'. That is, the user won't hear this silence before the program detects it is there.
The audio shouldn't stop as it is analysing this silence - it needs to keep playing the audio constantly to the user.
I'm open to using whatever suitable API is out there - such as BASS, or the Windows Media extensions built into the dot net platform.
View 2 Replies
May 6, 2011
It SOUNDS simple. In aVusual Basic application, how do I made an open (or controlled thread) connection to continuausly stream the microphone to the speakers?
View 1 Replies
Oct 26, 2009
I am developing an application where in I need to stream audio and video in the local area network. There is calling option from my application where users can call each other(audio call or video call) in the LAN.
View 3 Replies
Oct 15, 2008
Im having problem with the Serial Port. When i run my program, "Access to the port 'COM1' is denied". What does that mean? Im not sure whats happening because theres no error in my code. Someone suggest me to use 'COM2'. Which is also the same result. I have a microcontroller, programmed and run it. And i need to capture the data onto my vb, which is on a multiline textbox. How to i do that?Just to double check my code?
[code]...
View 1 Replies
Sep 4, 2010
The RX data from the serial port is as follows:
FE FE FA E0 00 23 45 FD
I need to truncate everything else and just have positions 5, 6 and 7 output in the hex in a TEXTBOX. See below:
452300
Instead it will put the the whole steam in the textbox and it will be in decimal format, not hex.
View 3 Replies
Jan 28, 2010
I'm developing a standslone system for my school project. I'm developing an audio management system which allow user to add audio files itself into database together with the audio information such as artist name and album year. I just started it few days ago and face some problems.. my song in the playlist wont continue to play after 1 finished and i need some idea on how to store the audio files into database ... in blob types may be?
Heres the screenshot and codes
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt_add.Click
[CODE]............................
View 2 Replies
Jun 3, 2012
I am trying to buld a DLL in VB.NET 2010 that will be use to control a vending machine.Whin a call into the DLL to a function to open and setup the comport the first time its opens it just fine, but if a call into the DLL again it does not know that the port is open even if it is still open. I can check with another program and is shows the port is open and if I try to call into the DLL again to open the port I get an error that the port is already open. Any idea how to set this up so it will work
View 7 Replies
Dec 30, 2009
i'm creating a windows form to send/receive data to/from serial port.At first : i send the data as string to the serial port .Second: i tried to read the string again for test the successfull transmission , but i recieved empty string
[Code]...
View 4 Replies
Oct 21, 2011
I can find documentation (preferably with code samples) that will guide me through all the steps to activate and read from a serial port?
View 6 Replies
Oct 31, 2010
For my application a need to set a breakstate on/off of 25ms.In Xp this runs fine when I set breakstate=true and wait for 25ms and then breakstate= false and wait 25ms.In CE6.0 when I set breakstate = true, it only throws a puls.It is even not possible to keep breakstate on.
how to solve this or is there an alternative to simulate a breakstate?
View 3 Replies
Jan 15, 2011
can we communicate to Serial port COM1 through Microsoft Robotic Studio?We are developing wireless robot which will take data from serial por
View 14 Replies
Mar 8, 2010
For many years, I have sent data between 2 computers using serial ports."Here is the data", "Thank you for that data!" type stuff.Where do I get more information for doing the same thing with 2 computers that are networked together? Assume a local ethernet connection.I have experimented with serial-ethernet modems and that works well but I don't want any more hardware.Is there a good thread here I should read?I want 2 VB programs running and I want to exchange data periodically.
View 2 Replies
Apr 23, 2006
I know things have changed in VB2005.net and i have Express and i want to controll the serial port. I have a program from VB6 that i understand and i tried to convert it but i get alot of errors and i have know idead what they mean. As you can tell i haven't been programming very long.
If someone can point me in the right direction for programming the serial port in VB2005 .net i would appreciate it or tell me what differences there may be.
View 12 Replies
Nov 9, 2009
I am developing a UI for an embedded device that I have designed and built. The device uses an FT232 chip which, when connected via USB is automatically assigned one of the COM ports. I was wondering if there is a way to set up a loop which would automatically detect which COM port the device has been assigned. I could then add some handshaking to verify that the port is correct.
View 4 Replies
Feb 16, 2009
I have a little code for get the serial port available in the system.
For Each pn As String In IO.Ports.SerialPort.GetPortNames
Debug.WriteLine("NAME : " + pn.ToString)
Next
[Code]....
So, The PORT1 and PORT5 its ok (because this are real serial port, with a real RS232 interface), but PORT4, I don't know.
How I can do for get only true serial ports ?
View 3 Replies
Jan 30, 2011
I am facing problem reading data from Serial port. Actually I am connecting with the hardware device called Crimp Force Analyzer. It gives the data on hyperterminal and I have to read that data from my <acronym title="Visual Basic">vb</acronym>.net program. The data is somewhat like this:
[Code]....
View 8 Replies
Oct 29, 2009
I'm looking for a program that would read and import data from my serial port and then graph it. I don't mind buying it if it's not a free program.
View 6 Replies
Oct 27, 2009
i am new to VB.net and i am writeing a program to read a serial port and if there is any thing in the buffer i want to read the data and put it in a string then clear the buffer
View 1 Replies