Name Of Port Associated With Modem?

May 11, 2011

I am using a 3rd party communication component and it is able to tell me the names of installed modems. Given the modem name, I need the com port associated with that modem (so that I can set the modem baud rate directly through the serial port). I also need a way to determine if that port is already in use.

View 4 Replies


ADVERTISEMENT

Serial Port Example Code - Connect To A Modem Thru The Serial Port

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

Get Data From This Radio Set Through A Modem And A Serial Port?

Mar 6, 2009

I have spend about a week trying to get data from this radio set through a modem and a serial port. The data is transmitted by the transmitter in 5-databits at baud rate of 50. An existing vb 6.0 program in windows 98 receives the data correctly with port settings of Speed = 50, Databit = 5, Parity = none and Stop bit = one. The data is received at every 9 sec, presumably with the help of a timer. I have to write a program in .net frame work 2.0 to get the same data. My problems are:

1. The program hangs when I execute SerialPort1. ReadLine().Trim or SerialPort1.ReadExisting

2. When I collect SerialPort buffer after every 9Sec, and try to get the strings out of each byte using following code, I get only repeated squares instead of characters.

[Code]....

View 5 Replies

VS 2010 Auto Find Com Port Of GSM Modem

Jan 14, 2012

how to automatically find the correct com port of my GSM modem.i can retrieve the available ports of the computer by using My.computer.Ports.Serial PortNames.can i find the right port using the display name property of the device?

View 2 Replies

Communications :: Serial Port Communication Via Null Modem Cable?

Sep 4, 2009

I have a VB.net app running on one computer, displaying text into 2 texboxes or labels.I need to see the two values in two sperate textboxes or labels from the two labels on another computer via a null modem serial adapter.

1st computer.

Code:

serialport1.writeline(label1.txt)

straight forward right?

2nd computer to read the data

Code:
Private Sub SerialPort1_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived
dim s as new string = serialport1.readline()
label1.text = s

This is what I was thinking;

Code:
serialport.writeline(label1.text & label2.text

This would send the two values over the serial port. How would I seperate the two values and display them in two different texboxes?cannot use them together)Am I on the right path at all? Or using the serialport.writeline method won't work at all....

View 4 Replies

Receive Data From Serial Port Link To Itegno Modem W3800

Sep 17, 2009

I am wondering is there any code to get the text reply from the modem? I am using the itegno W3800 modem. I have used the below method so far but apparently VB.NET windows form doesnt see the incoming data. The message box comes out empty. But when i try the same method with the TMAS Siemens GSM modem, VB.NET can see the incoming data and display out the data string.

here is the code that i have written:

serialPort.Write("AT" & vbCrLf) 'set command message format to text mode(1)
receiveddata = serialPort.ReadExisting()
it works for the TMAS gsm modem.

The baud rate for the TMAS GSM modem is 9600 and the baud rate for the itegno modem is 115200.

For the itegno modem, the data is sort of like stuck at the serial port as after every time i pressed on the button for example "AT"

this "AT" command gets "stuck" at the serialport and run only when i have connected through the serial port in hyper terminal.

I am thinking is it the baud rate for 115200 is too fast for VB to handle? And also is there any way to solve this problem?

i have to revert back to the itegno modem for use for my project at the end of the day.

View 2 Replies

Call A Remote Modem Using A Local Modem Connected Via USB?

Oct 12, 2011

I am attempting to call a remote modem using a local modem connected via USB. Programming language is VB.NET and I am using the SerialPort control to talk to the modem.

Communication is as follows:

I send: ATZ0[CR]

Modem responds: ATZ0[CR][CR][LF]OK[CR][LF]

I then try to dial a number:

I send: ATDTnnnnnnnnnn[CR] where nnnnnnnnnn is a valid number

The modem responds with:ATDTnnnnnnnnnn[CR][CR][LF]ERROR[CR][LF]

All other commands seem to work without any issues

For info the modem is a MultiTech MT5634ZBA-USB-V92

If I use hyperterminal and type the same commands in it works as expected and dials the number, so it must be something I am doing in my code, possible some setup in the SerialPort control

View 5 Replies

Streaming Video Through Modem To Modem?

Oct 27, 2009

(from scratch as I've not done this before) how I can stream live through modem-to-modem connection. The modem here refers to dial-up modem (PSTN modem), there is no internet/lan involved.It will be 2 programs, the first is to transmit real-time video from webcam, and the second is to remote video from the first.

View 5 Replies

Read The Data From Barcode Weight Scales By Serial Port And TcpIp Port?

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

Get FullName From Available Serial Port (Com Port) From Device Manager In Windows Form With .net?

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

Detect The Address And Port Number Of The Parallel Port In Computer?

Jun 9, 2010

I would like to detect the Address and Port number of the Parallel Port in computer.

View 4 Replies

The Given Port Name Does Not Start With COM/com Or Does Not Resolve To A Valid Serial Port?

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

Communications :: .net MSComm Port USB 4 Port Relay?

Oct 20, 2011

I am trying to get my 4 port USB relay board to work in VB.net using the COM PORT. I found some code from a poster who has the 16 port USB relay version. When trying his code i can only get it to turn on relays 1-3 all at the same time. The product can be found here: USB 4 port relay

"01+//" - Relay 1 is switched ON
"01-//" - Relay 1 is switched OFF
"02+//" - Relay 2 is switched ON
"02-//" - Relay 2 is switched OFF

[code].....

So i am confused as to how to separate each relay out with that code above and just be able to turn on any number 1-4 relay on or off independently from each other!

View 1 Replies

Call Using GSM Modem?

Mar 28, 2009

I am developing Sms Project in vb.net.I can Send and receive Sms Easily. I can attented Incoming call and dial. but not hearing and talk. I connected with com Port. This is possible or not for talking and hearing

View 2 Replies

Comunication With Fax Modem?

Dec 20, 2010

where can I find an information/learn how to comunicate with fax modem to create something very simple for fax sending?

View 1 Replies

How To Talk To A Modem

Jan 26, 2009

I'm a novice and after toying with some basic ideas on how to talk to a modem with VB.net, I think there may be much more to it than I realize. (?) I know my modem is fine, I can use hyperterminal to call out on it with no problem.So, how involved is it to talk to a modem? My initial thinking was that I could simply talk to it via a serial port using AT commands sent and rcvd as a string.(?)My modem is set up with COM2 9600 8n1.I've setup a serial port with the same parameters in my code.

View 13 Replies

Receive Msg From GSM Modem?

Nov 5, 2009

Imports System
Imports System.IO.Ports
Public Class Form1

[code].....

View 3 Replies

Receive SMS Using GSM Modem?

Sep 15, 2009

I am working on a program to poll SMSes automatically, i am using the serialPort_DataReceived event to detect any SMSes coming through the serialPort

Private Sub serialPort_DataReceived( _
ByVal sender As Object, _
ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) _
Handles serialPort.DataReceived

but the message i received does not contains the full information, may i know that if there is any other received data event that can be used to receive data coming through the serial port which can better receive data from a gsm modem?

View 13 Replies

Send SMS Using Modem?

May 11, 2012

I am trying to implement automated sms(Short Msg ) system.I implemented sms receiving part.but I could't send a sms as reply.

View 5 Replies

Sending Sms Using Gsm Modem?

Mar 12, 2009

i,ve been searching for sending sms code using gsm modem,but i still coudn't find..is there anybody can give me the code or suitable link for me to get sample code?hope got reply as soon as possible because my due date for my project is 2 weeks to go.

View 4 Replies

Usb Modem Controlled By VB

Jan 26, 2012

We are having problem regarding on controlling the broadband with the use of visual basic. We need to transfer data from gsm to usb modem, and the usb modem will read the said data, and transfer it to a data base. Can the visual basic help us regarding our problem?

View 1 Replies

Check If A Modem Is Busy?

Mar 9, 2010

I have created a program using FaxServer and FaxDocument. I want to know if there is a way to determine programically if the modem is busy? Busy in terms of it could be sending/receiving a fax or another program is using it. I just need to know if its in use.

View 5 Replies

Dialing A Voice Modem?

Oct 2, 2010

I need to develop a simple application. That is, with a click of a button, it will call a telephone number through a voice modem.I'm using MS Visual Basic 2010 Express Edition.I refer to this link : [URL]I tried it, by changing phone number and my COM port. I added System as reference too.Unfortunately, it's not doing any good.

View 7 Replies

How To Parse Sms Message From Gsm Modem

Feb 13, 2012

im having a problem parsing this message from textbox, this is actually sms message from sim i read it from textbox

ex. "+CMGR: "REC UNREAD","SMARTLoa",,"12/02/13,17:13:22+32"
13Feb 17:22: 09212363053 Load Wallet Balance: P1055.57. Ref:540018216951"

i want to parse this message and put in the mysql table,

sender = field 1
SMARTLoa
message = field 2
13Feb 17:22: 09212363053 Load Wallet Balance: P1055.57. Ref:540018216951
time/date = field 3
12/02/13,17:13:22+32

View 2 Replies

Make Modem Communication?

Aug 22, 2009

Our project requires machine A to communicate to machine B using modem. For example, machine A will call machine B, issue commands and machine B sends the results back. Also we want machine B to transfer files to machine A if there is something to send.

View 14 Replies

Manage GSM Modem Response?

Aug 10, 2011

I'm creating a small program in Visual Basic, using Visual Studio 2010, which communicates with a GSM modem via serial port.The connection works, I can even communicate properly with the modem and I can also send sms and mms .. But I can not handle the modem answers ... I'll explain:If I send a command like AT + CSQ modem replies with + CSQ 22.0. This command gives me the value of the signal as a response on a scale of 0-30 ... I can see on the screen (in a dedicated console) but I would like to manage the response in the sense that I would do something like that

IF (answer.text = "+CSQ 22,0") Then
label1.text = "Good"
ELSE
label1.text = "Bad"
END IF

View 1 Replies

Read Result Of GSM Modem?

Jul 21, 2009

Read Result Of GSM Modem?[code]....

View 1 Replies

Send Sms Via GPRS Modem With .net?

Jul 7, 2009

I need to send sms via GPRS Modem with vb.net

View 2 Replies

Send SMS Via GSM Modem From .net Application?

Jan 6, 2011

I want to send SMS Via GSM Modem from vb.net application I write code But it is not working .

Here is Code below :

Public Class Form1
Private SMSEngine As SMSCOMMS
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[code].....

View 1 Replies

Sends AT Commands To Modem And VB

Feb 9, 2011

i use Telit Ez 10 ( GM862 ) GSM modem. I tried to write simple program that sends AT Commands to modem and see the responds to these commnads. But it does not work. tp correct the VB code.

M[Code]...

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved