VS 2008 Get Data From USB UART, But Not USB-to-Serial Adaptor?

May 27, 2011

I have written a sketch for Arduino that sends serial data to my VB.Net app. Works great using the included USB port on the board. I need more distance, so I installed a MAX232. This is interesting. I get proper data in TeraTerm for both com ports (the Arduino USB comes up as a com port). I get proper data in my VB app from the Arduino USB (com) port. I get nothing from the MAX232 circuit on the other com port in my VB app. Why would both work in TeraTerm, but only the USB cable on the Arduino, not my MAX232 circuit in my application?

View 2 Replies


ADVERTISEMENT

Update Function On Data Adaptor

Apr 22, 2012

I am working on a simple programme that has a dataset linked combobox that changes the contents of a datagridview when the SelectedIndexChanged event on the combobox occurs. (i.e. you select a client in the combobox and it shows you all of the orders they have placed in the datagrid view). I have got the two set up and displaying the data but cant get it to update back to the database when I add a record to the datagrid view.

Here is my
Imports System.Data.OleDb
Public Class Form1
Dim cs As New OleDbConnection("Provider= microsoft.jet.oledb.4.0; data source=C:VB
wind
wind.mdb")
Dim ds As New DataSet
[Code] .....

Is it because the second data adaptor uses a variable in its sql string which only shows the current record of the combobox? If so how do I get around this and update the records added to the datagrid?

View 4 Replies

VS 2008 Table Adaptor - Error Occurs When Adding Column To Query

Aug 10, 2009

I have a table adaptor that pulls from the sql database, when I edit the table adaptor query it makes this specific table adaptor not a part of the dataset. I have added a column to my database which will contain an integer, when I try to add this column to the query this error occurs, i am using the configure area of the table adaptor.
Error 'AuditProductsTableAdapter' is not a member of 'MemKingClient.MemKingDataSetTableAdapters.TableAdapterManager'.

View 3 Replies

VS 2008 Serial Data - Make Sure The Correct Data Is Received?

Jun 28, 2009

I am using Visual Basic express to create a serial interface to a multi-room audio controller. I have started by creating a form that can connect to the controller and I can receive data from the Controller and display Zone status, volume etc in corresponding texts box thaks to help from Stanav and Tassa in my previous thread.

My next problem is to do with receiving lots of data from the serial port and my application getting out of sync. This is mainly caused by turning the volum control as each time it is turned a little bit the controller sends out the new status of the Zone being effected

eg
****Turning Volume knob on Zone 1***
Status returned from Controller:
#Z01PWRON,SRC3,VOL05<CR>

[Code].....

View 7 Replies

Pass Serial Data From Serial Data Received Event

Dec 13, 2009

I'm trying to pass a data packet from the serial data received event.The code can capture the data without any issues.I'm spinning my wheels on getting the data packet out of the thread for further processing.[code]

View 4 Replies

VS 2008 Serial Data To A Text Box?

Aug 21, 2010

I have a PIC program written in PicBASIC pro that sends out variables in word (ie 260, 458 etc). I would like to write a simple one form application that displays these variables in a box like this (just a mocked up image)In my search for VB code examples on how to use the serial port I came across one basic but functional example

Imports System.IO
Imports System.IO.Ports
Imports System.Net
Imports System.Data

[code]....

This is correct as there is only one variable that contains data at the moment (Temperatures(2) ), so the values are 0,0,261,0 for the first line. the increase in temperature was reflected in subsequent readings as it went up to 26.6C and then 26.8C.However I am now stumped... I don't know how I can adapt the code to brake the data up into the 4 variable and place them in to 4 different text boxes.

View 2 Replies

VS 2008 Serial GUI Data Manipulation

Apr 26, 2010

I have been using Dick Grier's example to attempt to attempt to read data coming from a project.I first have to read 16 bytes for an RFID tag. I have that working and am able to extract the unique ID code and display it (cut out for length).The project samples voltage on an ADC and transmits 120 samples ranging from 0 to 255.I am attempting to buffer in the 120 samples, convert the scaled voltages (195 Vp or so (115% of Vnom)), and calculate Vrms.When I attempt to calculate and display the information, nothing is displayed.[code]

View 5 Replies

VS 2008 - Program In Vb To Serial In Data From My Microcontroller

May 18, 2010

I have written a program in vb to serial in data from my microcontroller and it is working good except for one thing. When I try to send the number 26 to vb it just reads a blank I dont know what is going on? The data that I am reading is being converted to int16, and I am using Encoding 28591 and have also tried Encoding 1252. I have also tried a new microcontroller with no success. I dont know if this is a VB problem or a microcontroller program problem.

Dim ReceiveBuffer As String
Dim portname1 As String = "Com5" ' Serial in through this port
Dim portspeed1 As Integer = 19200
Dim WithEvents COMPort As New System.IO.Ports.SerialPort

[CODE]...

View 13 Replies

VS 2008 Serial Port - Data Type?

Aug 22, 2009

seems to be quite easy but i'm stuck I'm reading a hex string from serial port (f.e. 20FD05C4), but can't read it proper in VS:/ . I've been trying with serialPort.ReadExisting(), serialPort.Read, etc

Is there any way to just read that String or convert it easyly bin/hex ?

View 8 Replies

VS 2008 Reading And Writing Data To A Serial Port

May 25, 2009

reading and writing data to a serial port. the settings for the port are correct (from manual of device):

[Code]...

View 1 Replies

VS 2008 How To Make Serial Data Base That Application Can Connect To

Aug 26, 2009

Can anyone tell me how to make a serial data base that my application can connect to?

View 9 Replies

VS 2008 Application To Reject Serial And Count How Many Times Entered In A Wrong Serial

May 16, 2009

I made my program and now I just need to add in the serial and trial part of the application. I know the application must connect to the host and go to a txtfile. How would i do the trial and serial. Also If the serial is already activated I want the application to reject that Serial and Count how many times they entered in a wrong serial.

View 2 Replies

HSD 32 Bit Data Bus To Serial Converter Via A Microcontroller - Data Sniffer To Read The Data Bus (32Bit)

Sep 3, 2008

Im working on a HSD 32 bit data bus to serial converter via a microcontroller. Now first I want to make a sort of data sniffer to read the data bus (32Bit) .All on the controller side is working and the stream of bytes are coming in via RS232 as 4 bytes in HEX like FD,A5,45,8B . I already converted the bytes in Dec and ASCII to determine what is passed true the bus and how fast and stuff.. Now that is all correct and working very well if the LSB (least significant bit) of the 32 data bus is Data line 0 and the MSB (most significant bit) is Data line 31 but if that is not the case I need to invert the 32Bits (like as I would invert the connector on the bus) . How do I best do this using the 4 bytes I send from the micro controller.

Example:

(MSB) 01001000 01100101 01101100 01110000 (LSB)
HEX= 48 65 6C 70
DEC= 72,101,108,112
ASCII= H E L P

I need to invert it with a button to:

(MSB) 00001110 00110110 10100110 00010010 (LSB)
HEX= 0E 36 A6 12
DEC= 14,54,166,18
ASCII= (SO) 6 : (DC2)

View 3 Replies

What Is The Display Adaptor DISPLAYV1

Feb 29, 2012

I EnumDisplayDevices and see those shown below.I believe the first two are real with monitors but what are the last two adaptors for?

'AdaptorID:0
' Adapter name:\.DISPLAY1
' Monitor name:\.DISPLAY1Monitor0
'AdaptorID:1

[code]....

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

Checking If Network Adaptor Exist In PC?

Mar 4, 2009

How to check if network adaptor is existing in pc or is not exist? (VB.NET sample)

View 3 Replies

Sql - Table Adaptor Error When Trying Update?

Jan 17, 2011

I have a rather perplexing issue. I am using VB.net and SQL for my project.I have a database, to which the connection works. I also have a data table and data adaptor, both of which I know work.I am trying to update something in the database, yet it isn't working. Assume everything listed is declared correctly. What am I doing wrong?

teacher_control_table.Rows(0)("DATA_TeacherLockPasscode") = txtPasscode1.Text
table_adaptor2.Update(teacher_control_table)

That last line throws the following exception:

InvalidOperationException was unhandled. update requires a valid UpdateCommand when passed DataRow collection with modified rows.

View 1 Replies

Multiple Stored Procedures From 1 Table Adaptor

Jun 3, 2010

Can I use different stored procedures from 1 table adaptor that has all the stored procedures in it?

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

Sql - Invalid Cast Exception When Filling Datatable Wth Table Adaptor

Jan 13, 2011

I am using VB.NET 2010 (Visual Basic 2010 Express) on a WPF-based project. I am also using the SQL Server Express built-in to Visual Basic 2010 express.I have just about finished refining my code for hooking up my wpf-based form to an existing SQL database (agentroster.sdf). I have a global data source (AGENT_ROSTER) connected to this database. Connections are confirmed to work properly.This is the first part of the code I'm using, irrelevant code omitted,

Dim table_adaptor As New AGENT_ROSTERTableAdaptors.AGENT_ROSTERTableAdaptor
Dim roster_table As New DataTable("roster_table")
Dim rowposition As Integer

[code]....

how do I fill roster_table with table_adaptor (or alternate method)?

View 1 Replies

Data Not Going To Serial Port As One Data String?

May 25, 2009

I have to send the user-input data to the serial port. From the serial port the Modbus controller reads the data in Modbus/RTU mode.Now consider the following:Private WithEvents sp as serialport Now when I send sp.Write "192" to the serial port, I was that the complete data go as one data packet. Instead what I find that when this data is sent to a hardware controller, I find that the serial port first transmits 1, then 9 and then 2. Because of this my modbus does not recognize this data and throws and error. I tried sending "12" and again i find that it goes as "1" and then "2". Is there any way to send the data as one data packet so that my modbus can read "192" as one data packet value and not as 3 data packets of 1, 9, and 2?

View 3 Replies

Serial Data - Split And Show Data?

Jun 25, 2009

I am using Visual Basic express to create a serial interface to a multi-room audio controller. I have started by creating a form that can connect to the controller and I can type commands into a text box and have set up a button that sends that text to the serial port. This text is displayed in a big text box as well as the feed back from the serial port (multirom audio controller).

Here is an example of what I send and receive to and from the controller;

I send *Z01STATUS (query's the Zone 1 status of the controller)I then receive the data from the controller #Z01PWRON,SRC4,VOL99 (This tells me Zone 1 is on, Source 4 is selected and the volume is at level 99 I can easily create buttons to turn the zones on and off and control the unit. My problem is I want to make things change on my form coresponding to the data received. ie I want to display the current volume of each zone and whether thetay are on or off etc. How do I get the individual bits of data from the data received. IE how do I get the VOL99 to show 99 in a text box?

View 10 Replies

Getting Data From Serial Port

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

Code For Serial Data Transmission?

Mar 2, 2010

I want to the code for serial data transmission in vb.net. and pls give full information abt how to use serial port in VB.net

View 1 Replies

Connect To Serial Port And Get The Data From That Using VB

Jan 12, 2012

I want to connect to serial port and get the data from that using vb.net how to do this.........

i have found one sample and i tried that but in that datareceived event is not firing

View 1 Replies

Data Input From The Serial Port?

Jul 15, 2008

how to write code to read data from the serial port. I have a microcontroller connected to the serial port and I need the C++ program to read the input and to perform a certain task according to the information.

View 19 Replies

Data Logging Through Serial Port For Gps

Apr 8, 2010

Data Logging Through Serial Port For Gps

View 1 Replies

Display Serial Port Data?

Nov 6, 2011

I want a text box in my application that will display the data currently coming from the serial port,So if i will send ascii "hello" from another computer on my program it will diaplay "hello".

View 23 Replies

Handle Serial Data At 10ms?

Mar 14, 2011

how to change the vb.net code to recieve data from serial port. The packect size of data is 23 bytes so the data recevied event is fored after 23 byte. the data from other end is transfering at 10 ms. after recieving data i have to extract data, add it to database & display the extarcted packet in datagridview.the problem is that i m not even handle the data at 100ms properly. it shows 9,10,6,7 packets in 1 sec. and some time thread synchronization error. i am attaching 2 project the vb6 project is transmitting data at 10/100 ms & the vb.net2008 appliction is doing all the stuff.

View 1 Replies

How To Read Data From Serial Port

Jan 3, 2010

I am trying to read data from rfid tag using rfid reader. i can connect reader, but cannot get data?

View 4 Replies







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