Access Com Port And Sending Data

Nov 9, 2011

have gps constantly sending data but can read it from the com port

View 5 Replies


ADVERTISEMENT

Sending Data From A VB Program To USB Port?

Apr 23, 2009

I'm working on a project that involves sending information through a GSM module, this module is connected to the system through a USB port. the information to be sent is gathered from a database using VB, now I need to send the information from my VB program to the USB port for onward delivery to the GSM module.

View 2 Replies

Sending Data To Serial Port?

May 1, 2010

i am doing a project in vb 2008 .net.during execution of the code, a different number is generated every second. the numbers are either 0,1,2,3,4, or 5. how do i send this number every second to the serial port. at the serial port i have a microcontroller connected which should accept this number and light up an LED coresponding to the number received.

View 1 Replies

Sending Hex Data Through Serial Port?

Mar 1, 2010

I am trying to send a command through my serial port to a external device. The format of the command frame is, more or less, like this:

'0x0A 0x03 0x20 0x00 Checksum'

What I've written on my code is just this:

VB code
num_dec = &HA + &H3 + &H20 + &H0
checksum = DecToHex(num_dec) '2D
data=&HA & &H3 & &H20 & &H0
SerialPort_RFID.Write(data & checksum)

The problem is that when I stop the program on the Serial...Write line, I see that the data I sent is on integer format instead of Hex format.

View 8 Replies

Sending / Receiving Data To Serial Port

Aug 13, 2009

I'm trying to control a serial port device that both send and receives data. I can receive data quite happily from the serial port but I don't appear to be able to send data to the device. The device works perfectly as I can test it using putty, I open putty select serial and select 1200 baud, the device immediately lights up and can send and receive. However when the port is set up and opened in VB the device doesn't light up so I can't send data to it but can receive data from it. According to the instructions I need to send either ASCII 'X' Hex '$58' or Decimal '88' to make the device ready.

Code (VB Studio 2005) :-
Public Sub New(ByVal synchronisingObject As ISynchronizeInvoke)
ComPortUsed = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINESoftwareNJB", "COMUSED", Nothing)
PricePerTrack = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINESoftwareNJB", "PRICETRACK", Nothing)
Me.synchronisingObject = synchronisingObject
[Code] .....

View 11 Replies

Sending Data Into VB Through A Serial Port On Computer?

May 2, 2009

I am sending data into VB through a serial port on my computer, from a microcontroller. The data enters VB in an ASCII form, but I need it as a number. I can use the Asc command to convert numbers 0-127 however after this it dosent work. I believe this is becaus the ascii character map only goes through 127. So how can I convert the rest of the data (128-256) to a numbers?

View 3 Replies

Sending/receiving Serial Port Data?

Feb 22, 2011

Opening and closing the port works fine, and as far as i can tell, the serial.write("blahblah") should be writing to the output buffer, but I am unable to test or verify this by reading it in. the commented "Receive data from serial port" and subsequent DoUpdate() function are where i am having trouble. It doesnt seem to actually be reading in the data if it is in fact writing it correctly.

[Code]...

View 9 Replies

VS 2008 Sending And Receiving Data Via Com Port?

Aug 16, 2010

I have a very basic knowledge of coding, just enough to understand some PicBASIC Pro and program a microchip to send the values of some variables to a PC via the com port. I've used a terminal utility like Hyperterm to confirm the right variables are being sent, so I thought it would be cool to have a custom application on the PC to display these variables, and possible set them via the application by writing the new one back to the PIC. So I downloaded VB express 2008 - and whilst it was "simple" to draw a box and add a few text boxes I'm lost at how to actually do anything practical with it

[Code]...

Could someone advise me in laymens terms exactly what I need to do inorder to populate the text boxes with the data from the PIC micro. Whilst I understand the basics about BASIC, I have no idea on things like classes etc

View 5 Replies

Dead Simple Example Of Sending Hex Data To A Serial Port?

Jul 6, 2011

I ran into this problem while trying to write a Pan/Tilt/Zoom controller program. I found some very complicated examples, but managed to put the pieces together into this simple test program.I first import System.IO.Portsthen I define a new serial port and give it the required parametersI open the com port when the form loadsI have two working buttons, one to pan left, one to stop panning. The hex commands are pre-configured.The one for Stop is A0 00 00 00 00 00 AF 0FThe one for Pan Left is A0 00 00 04 14 00 AF 1FI declare a byte array to contain the command bytes and put them into the correct position.

Code below:
Imports System.IO.Ports
Public Class Form1

[code].....

View 13 Replies

Sending Data To Access Db?

Apr 7, 2012

i have created a MDI form and i have a child form that collects data and inserts it into access 2010 DB however it does not work .my code is odd and i am trying to use mysql syntax here is the names and opject types used in the sql code

intID = a text field that is autogenerated with a number
txtFirstname.text (text field)
myDOB is a DATE variable which is collected using a date picker (myDOB = dpDOB.Value.ToShortDateString)

same goes for mysubs

SQL

metag

INSERT INTO members (ID, FirstName, surname, DOB, SubsDate, HouseNo, Street, Town)VALUES ('" & intID & "','" & txtFirstName.Text & "','" & txtSurname.Text & "','" & myDOB & "','" & mySubs & "'" & txtHouseNo.Text & "'" & txtStreet.Text & "'" & txtCity.Text

i then get nothing but errors

View 6 Replies

Sending Data To Access 2007?

May 19, 2010

problem is when i enter any letter in the alphabet in textbox1 it gives me an error but when i enter any number on it, it goes perfectly to the database. i set the data type into text(all 3 of them). the other two textbox work just fine. textbox1 is the only problem.

i just want the textbox1 to accept any input not just a number like the other 2 textbox work..

heres the code:

Imports System.Data.OleDb
Public Class Form2
Dim cn As OleDbConnection

[Code]....

View 2 Replies

Access And Send Data On USB PORT?

Nov 21, 2011

I am currently doing a program to control some device via usb port but i don't know how to interface the usb port using vb.net. i want to send data on a device to make it act like parallel port..

View 10 Replies

VS 2010 - Reading Data From Serial Port And Outputting To Screen And Access Db?

May 1, 2011

I have conquered the problem of the database however what i need is the serial port data sent to a database and outputted on screen however i keep getting cross thread errors ..

Imports System.Data.OleDb
Imports System
Imports System.ComponentModel
Imports System.Threading

[code]....

View 3 Replies

Sending A File Via COM PORT?

Jun 10, 2010

I have only finished about sending string via COM.

View 3 Replies

Specifying Port When Sending E-mail?

May 2, 2011

I'm writing a simple application that can send e-mail;

Must I specify the Port, along with my username and password for the message to sent?

View 4 Replies

Sending Bytes From The Serial Port?

Aug 30, 2010

I'm working with a device using the serial port and i am sending a command from the pc to the device like this:

1. I Change the parity to mark

2. then send a byte

3. then Change the parity to space (here is the problem)

4. Send a lot of bytes

but the device just ignores all the last bytes, im pretty sure its a timing problems, so a timeout occurred attempting to send a command, how can i change the parity without losing time?

View 24 Replies

Serial Port VB Net Error Sending &HBB

Sep 9, 2009

When i try to send the &HBB value through it just sends a &H3F value i think is an error character i use this code:

SerialPort1.Write(System.Convert.ToChar(&HBB))

I am able to send other ascii character using this but i really need to send this &HBB value through serial port.

View 2 Replies

Sending Binary Code To Parrarel Port?

Jul 31, 2010

im interested on electronic and i working on my final project i not to experienced at VB so can anyone figuring this out i really need this , if there was any advance from this forum.

View 2 Replies

Serial Port Sending Numbers As Bytes?

Mar 10, 2010

I'm using 2008 Express and I'm trying to send 1 byte of data on the serial port.

Serialport1.write(123) Sends 3 bytes with the ascii codes representing 1 2 and 3.

I want to send 1 byte that contains 123.

View 2 Replies

TCP Protocols - Sending Command To Specific Port On Same Computer

Mar 10, 2011

I am working on writing a program that needs to send a command to a specific port on the same computer, I have that working fine. There is another piece of software running that is listening to that port for some commands (read on).
Dim myTcpClient As New TcpClient
myTcpClient.Connect("127.0.0.1", 61225)
Dim networkStream As NetworkStream = myTcpClient.GetStream()

However when I try to send a command I get no response...
Dim outStream As Byte() = System.Text.Encoding.ASCII.GetBytes("0x33")
networkStream.Write(outStream, 0, outStream.Length)
networkStream.Flush()

I have been given a list of protocols that I need to send to that port. What I have been told is that the size (in byes) is 1 and the value is "0x33" with no parameters. I am completely new to sockets and sending data through tcp.

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

Sending Data From Text Boxes/combo Boxes To Access Database?

Jan 23, 2011

I'm in the middle of creating an application that will be used to input customer information whilst the customer is speaking to someone over the phone. This involves the customer giving the employee information such as name, address, postcode etc and the employee inputting that information into text boxes and combo boxes that are in the application.

What I would like to be able to do is after the customers information is given over the phone, I need to be able to send that information to a database which will probably most likely be done by button click. In this case, I'm using Microsoft Access. I'm also hoping that I can do this within Visual Basic coding.The database is set out with multiple tables which include a customer table and a ticket table and both have multiple fields such as first name, surname in the customers table. Both of these tables are in use with the information that the customer gives over the phone.

View 1 Replies

Communications :: Serial Port - Run Program, "Access To The Port 'COM1' Is Denied"?

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

GPIB Communication - Sending Data - Receiving Data - Saving Data

Sep 19, 2010

I need to control a device with a GPIB port. I have the commands that I need to use to do this; but I don't know which is the sintaxis in Visual Basic.

For example if I need to send a instruction like "START:0.01" to the external device which are the libraries that I have to include?, how should I write the programming line to do this?

The main tasks that I need to program are sending data, receiving data, and saving data

View 5 Replies

Reading Serial Port Read Data From Serial Port?

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

How To Access GPS Port

May 5, 2010

I want to find the coordinates of a speeding vehicle by accessing the position of the vehicle through GPS(from a server system). how to access GPS port and retreive the data.

View 4 Replies

How To Access USB Port Via .NET

Jan 29, 2007

I am currently doing a program to control some device via usb port but i don't know how to interface the usb port using vb.net. anybody can help me with this problem as which namespace I should use?

View 10 Replies

VB 2003 - Handling Data - Transmitting Data From A Comm Device Via Serial Port

Nov 10, 2009

I'm currently working on a project where I am transmitting data from a comm device via the serial port and resorting the raw data (in binary) to its respective ascii values. The problem I'm facing is determining the most efficient method to accomplish my goal. Essentially, I have 68 bytes coming in, the first and second bytes represent the page and packet number and the data itself ranges from 3 to 64, the remaining for my checksum.

What I am needing to do is, grab 50 consecutive bytes per variable in my array, and that is where I'm confused. I have easily pulled my 3-64 bytes and stored that data to a string. I just don't know the most efficient method to accomplish my goal. Should I write directly to file all my data, as there are like 8 pages, of 128 packet data. [Code] I can capture the the first 50 by using a for-loop easily, but what would be the preferred method to track what data chunk I've taken? The more I think about it, I think I may just want to write to file, all my data, and then just take them back to back in 50 byte chunks. Is that the most efficient method?

View 3 Replies

Access A Port In Program?

Apr 8, 2011

How do i access a port in Visual Basic?

View 3 Replies

VS 2008 Sending Data To A Webpage Via POST, Data Not Getting There

Jun 16, 2010

I've code this code below:

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim hwrRequest As HttpWebRequest = HttpWebRequest.Create("http://www.example.com/web-service.php")

[Code]....

The MsgBox() at the end shows the response, which as I've added to my script, echos the result from the $user and $pass variables which are supposed to retrieve those details being written to the stream above, but they show up empty.

I'm retrieving those values by doing: $user = $_POST["user"]; $pass = $_POST["pass"];

View 9 Replies







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