Check If String, Which Receive Via A Serial Port Matches To A String In A Database (access)?

Jun 22, 2010

I got an app, which receives data via a R232 port, convert it to a string and on the other side I got a database, where the strings are saved. How can I find a way to compare the string with all strings in one database column and get back the another stringform the same row in this database. I never programmed a database

View 1 Replies


ADVERTISEMENT

Check When String Entered In A Text Box Matches Field In Data Table?

Apr 17, 2010

How to check if string entered in a text box matches a field in a data table

I have a form with two text boxes for users to enter their Username and Password. When they enter their details and click the 'Login' button I want their details to be

checked against data in a data table to see if they match or not. I am using an 'if...else' statement but can't work out the syntax to use. My code is as follows[code]...Check when string entered in a text box matches field in data table?

View 3 Replies

Serial Port - String To Hex

Nov 14, 2011

I m writing serial port program i can send hex data without any problem but i stuck when I get response in buffer for example response is a string "?-??"

[Code]...

View 22 Replies

DB/Reporting :: How To Check If String Entered In A Text Box Matches A Field In A Data Table

Apr 17, 2010

How to check if string entered in a text box matches a field in a data table.I have a form with two text boxes for users to enter their Username and Password. When they enter their details and click the 'Login' button I want their details to be checked against data in a data table to see if they match or not. I am using an 'if...else' statement but can't work out the syntax to use. My code is as follows:[code]The fields I want to match the textbox strings against in my database table are called 'Username' and 'Password'.

View 2 Replies

Reading From Serial Port Into A String

Oct 22, 2009

For starters I'm using VB 2008 express edition.I have code that writes a string out of a serial port.My issue is that the machine sends data back and I don't know how to catch it.This is my latest attempt at creating an array of characters to create a string later but doesn't work.[code]

View 2 Replies

Reading String From Serial Port

Mar 2, 2010

I do not have much experience with VB.What I need to do is to read a serialport as a hexadecimal string.I've done this with the MSCommlib, but now want to convert to system.io.ports.The equipment wich is connected to the serialport is a RFID card-reader, so the application haft to detect when it is receveing data, and then continue on.[code]

View 5 Replies

Receive HEX Data Through Serial Port?

Jan 5, 2009

I am trying to recieve HEX data from a seriall device. Code is as below . but the required output is not correct. Some chracter code are not correct even in decimal . like for 80 i recieved 3F and for c0 also.for example i recived a string .

10 02 3F 00 10 03 3F 61
but in actual data should be
10 02 80 00 10 03 c0 61

[code].....

View 2 Replies

VB Receive Data From Serial Port?

Apr 20, 2011

I use ReceiveSerialData() function to get a string (20 byte of 8 bit data) from serial portBut I faild and got the error "operation has timeout". I am new in VB 2010

View 10 Replies

Send A Control String From .NET To A Serial Port?

Aug 5, 2010

I am trying to send a control string from VB.NET to a serial port. I am using a pololu trex jr. on the receiving end of the serial port. I have attached a copy of my current code which compiles without errors, but fails to send data. I can tell that it is not sending data because I have a light on the control board connected to the port and it normally blinks when data is received. The program that came with the board drives it perfectly but does not serve the purpose I need it to. I am open to any suggestions as I eventually plan to write a class to contain the control routines.

View 12 Replies

Send Data : String Through Serial Port?

Mar 11, 2010

i knew Serial ports are a type of computer interface that complies with the RS-232 standard. They are 9-pin connectors that relay information, incoming or outgoing, one byte at a time. Each byte is broken up into a series of eight bits, hence the term serial port.And I want to write a program chatting through Serial Port.

View 3 Replies

Send String Through Serial Port To Arudino?

Apr 18, 2012

im very new to visual basic. as in i just started 2 days ago. Currently i have a little program written up that has a couple of radio buttons and then a submit button. when you select a radio button and click the submit button, a little message box with pop up and say "you selected such and such"

Well now im trying to make something that will send a string to arduino through the usb cable. Basically it will use the same set up as stated above but instead of a pop up message it will just send the string through the port. for example Radiobutton1 - when selected and submit button pressed will send "1" (no quotes) through the serial port Radiobutton2 - when select and submitted will send "1" and then maybe "3"

and so on and so. Some radio buttons will only send 1 string through them and some may send multiple. Now, i dont need help with arduino, i have that already set up to wait for the strings to come through the com port. just need to figure out how to do it in VB.

View 1 Replies

VS 2008 Using Serial Port To Read String?

Jun 9, 2009

I have an application in Electronics to communicate with serial port. With using VB I have succesfully read a character using

Serialport1.ReadByte
or
Serialport1.ReadChar

[code].....

View 5 Replies

Communications :: Receive Hex Data On Serial Port?

Jan 5, 2009

I am trying to recieve HEX data from a seriall device. Code is as below . but the required output is not correct. Some chracter code are not correct even in decimal. like for 80 i recieved 3F and for c0 also. for example i recived a string .

10 02 3F 00 10 03 3F 61

but in actual data should be

10 02 80 00 10 03 c0 61

Public Sub DataSeriallReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort.DataReceived
Dim buff As String

[Code].....

View 2 Replies

Communications :: Receive Text From Serial Port

Apr 23, 2008

I'm trying to receive data from the serial port and display onto a text box in my gui in vb. I'm using xp pro sp2 and vb 2008 exp.What i've done so far:

- I'm able to send data successfully (tested) to the serial port
- I can dispaly what data is being sent (tested)

Steps taken:

- I have looked around on this forum for something similar to what I have but no similar posts are here
- Will look into MSDN help shortly
- Will also try some vb books I have lying around. But the problem is most of the vb books deal with sql server and database stuff and not really interfacing to hardware.

View 1 Replies

Receive Data From Serial Port To Page?

Feb 28, 2011

I am working on my project "PREPAID RESTAURANT CARD USING RFID TECHNOLOGY" in which i sent 12 digit number (rfid tag id) to serial port through my hardware and receive at my vb.net 2008 page.but i don't know how to receive data in vb page in the textbox using which cammand.

View 1 Replies

Receive Data From The Serial Port After Message Is Being Sent?

Aug 4, 2009

I am doing a project on sending and receiving sms from a serial port. But I have a problem on receiving sms. About the receiving sms, how can i show the received sms in the textbox using the serial port. Do I have to use the DataReceived Events. Here is the code i am using:

Public Class Form1
Private WithEvents serialPort As New SerialPort
Private ReadThread As Thread[code]....

View 1 Replies

Receive Datas From EPBX Through Serial Port?

Jul 22, 2009

How can receive datas from EPBX through Serial port in vb net

View 1 Replies

Receive Incoming Data From Serial Port?

Mar 23, 2011

I am having problem receiving data from serial port. Btw, I am new to Visual studio 2010 too.

I do a test program on my PIC so that when button1 press, it will send character "Y" to visual studio; when button2 press, it will send character "N" to visual studio. I know for VS 2010, sending data out is by the command

[Code]...

View 1 Replies

Receive Wrong Caracters From Serial Port?

Dec 15, 2011

I need to communicate with a PLC in serial port. PLC sends 4 possible data: 0, 1, 2 or 3 (which are status).My vb.net program uses IO.Ports.SerialPort class. When I read the data, the "1" and "2" are good, but the "0" and "3" are received as "?". I tried all the Read method (ReadByte, ReadExisting, Read, etc), it always give the same result. In HyperTerminal, it's fine.I made a test program in another computer (Win 7). Test was perfect, I received all 4 status correctly. I ran the same test program on the original computer (Win XP) and once again, I got the "1" et the "2" but the "0" and the "3" was "?" (ascii 63).

View 1 Replies

Send And Receive Data From A Serial Port?

Jul 8, 2011

I have created a program to send and receive data from a serial port, some of the data needs to be stored in certain strings for a export to excel. However the data takes while to to send be sent back. So in order to get the right information in the right strings I have to put pauses in my code. I have added a timer to my form:

On my timer's tick event I have the following code:

Public Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
iTick = iTick + 1
End Sub

View 3 Replies

Unable To Receive Data From The Serial Port (VB)

May 4, 2011

I am writing a VB based program which will receive data from a Micrcontroller (programmed in C) via UART. The data that is transmitted from the Microntroller can be displayed on Hyperterminal when I set it up with the correct settings (Baud, Parity etc), so I know that Microcontroller end is working fine. The VB-based program however (written in Visual Studio 2010 Express), does not however receive any data and I always get the TimeOut exception (despite the fact that Microcontroller is sending data via UART, I have an onboard LED to indicate this). Here is the VB code, it is an adapted version from the MSDN library:

[Code]....

View 11 Replies

Display The Serial Port String In A Label Or Text Box?

Dec 19, 2011

I'm trying to read a string(what's going on) from my Arduino and display it in either a label or text box. but its not wanting to display the characters, or string i want it to. So I could really Here's the code I have right now:

Imports System.IO
Imports System.IO.Ports
Imports System.Threading

[code].....

View 14 Replies

Receive Continuous Incoming Data From A Serial Port (MCU) In Vb?

Mar 7, 2012

I am working on a project to receive and send data to a micro controller using a Visual Basic application. I am using Visual Studio 2008. I have done coding to send data on button click event.

But I am stuck at how to receive incoming data to serial port continually from MCU and store it to an integer or string type data in VB.

View 1 Replies

Splitting String Received From Serial Port And Converting To Double

Apr 26, 2012

I'm new to VB, I'm now want to know how to convert received string to double. I'm receiving string like this 420.8 280.9 140.2 from serial port.. and transferred it into textbox.. I'm using following code to split string and to convert to double

[Code]...

View 1 Replies

Serial Port - Receive Incoming Data From Radio Equipment?

Apr 8, 2009

I have an application that receives incoming data from a Radio Equipment through a hardware modem. How can I replace the hardware modem? Could I use the PC Sound Card in place of the modem?

View 9 Replies

Serial Port Communications - AT Commands - Send And Receive Data

Apr 12, 2009

I have a USB modem that can detect caller ID and can detect dialled digits when special AT commands activated, How to send and receive data. The sent data will be the AT command such as AT+VCID-1 to activate the caller ID, the received data will be caller ID information and the digits dialed. I'm new to prgramming and using Visual Basic 2008 Express.

View 8 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

Convert A Byte Array From Socket Into A String To Replicate - How The Serial Port Receives Data

Sep 21, 2010

I've inherited a tested function that processes incoming data from a .NET Serial Port. (Dim RXBuffer as string = serialport1.ReadExisting) I've written a different part of the application that processes a byte array as received from an asynchronous .NET socket.

Is there a way I can convert the byte array into a string as if it arrived from the serial port?

I would prefer to rewrite a very long 'if statement' into byte array functions syntax that look like:

dim b as boolean = IsBitSet(state_buffer(i), j) 'rather than:

dim b as boolean = (Asc(Mid(RXPacket.Pdu, CInt((i - (i Mod 8)) / 8) + 1, 1)) And CInt(2 ^ (i Mod 8))) > 0

View 3 Replies

Padding Receive "Hex" Data From Serial Port?

Dec 12, 2009

How do you add the "0" to the Hex value? What I get: 881 Should Be: 8801

Dim ByteCounter As Integer = 0
Dim DataPacketLenght As Byte
Dim Databyte(DataPacketLenght - &H1) As Byte

[code]....

View 2 Replies

Check State Of Serial Port?

Jan 8, 2011

I am very new to this but i have with alote of help maked a program that comunicates with a relay board over rs232.

[code]...

View 2 Replies







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