Serial Port1 Data Sent Feedback

Feb 2, 2009

I learn vb6 years ago but very limited. My goal is to get good with serial communications. I have bought the 2nd edition book of "Serial Port Complete".I wrote this code to send and receive data. Very crude yet I know. I'd like to display the number of bytes being sent in a label or textbox so the user can see the progress. Not sure why it doesn't work as I step through the For/Next statement. I send one text position at a time and have set the write buffer to one byte to help but no avail! [code]

View 6 Replies


ADVERTISEMENT

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 Port1.ReadByte() - The Operation Has Timed Out?

Feb 2, 2009

When I push in my program button which read data from serial port, then when are here not data, it write this error which stop program:The operation has timed out.When I push in my program button to read data from serial port and when the data exists there, then is all OK...Please what can I do for eliminating this message = when are not data in serial port, then I want become NO DATA and when exists data in serial port then I write this data....Here is shorted program:

Private Sub program_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
Port1.PortName = "COM1"

[code].....

View 2 Replies

VS 2008 Port1.ReadByte() - The Operation Has Timed Out

Oct 14, 2009

When I push in my program button which read data from serial port, then when are here not data, it write this error which stop program:The operation has timed out.When I push in my program button to read data from serial port and when the data exists there, then is all OK...what can I do for eliminating this message = when are not data in serial port, then I want become NO DATA and when exists data in serial port then I write this data....

Private Sub program_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
Port1.PortName = "COM1"
Port1.BaudRate = 9600
Port1.DataBits = 8

[code].....

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

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

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

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

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

Get Feedback From A Class

Jun 28, 2009

The background: I'm in the planning phase of an Application. The Application will work with a set of data which will be illustrated on a diagram. I plan to have a class for dealing with the graphical issues (e.g. creating the diagram plot, zooming, drawing lines on the plot, selecting a data point by clicking, etc.) These will be handled by MouseDown, MouseMove and MouseUp events.

[Code]...

View 5 Replies

Using Shell And Getting Feedback?

Oct 18, 2011

I want to be able to run any command by typing into a textbox.For example if I wanted to get info from "ipconfig".I want to be able to type "ipconfig" into the textbox and for it to then display the infomation into a richtextbox.I have been searching the internet but so far can not find a solution

Code:
Shell("ipconfig", AppWinStyle.Hide)

How do I now display the infomation from the console into a richtextbox?

View 3 Replies

ASP.NET Feedback During Long Submit

Dec 23, 2011

This is probably a really simple thing. Basically, the user clicks a button and a potentially long running task happens. I'd like to do a few things like toggle the button's enabled state, show a spinner, etc. In VB.NET Winforms I'd just do Application.DoEvents() and the updates would happen and the code can continue. How can I do this in ASP.NET? (preferable serverside or minimal javascript)

View 2 Replies

How To Create A feedback Form

Oct 14, 2011

Does anyone know of any documentations on how to create a feedback form in vb? by feedback form i mean a box which the users can type what they thought and click send which sends the text in the box to a pre-determined email address.Iv been looking around for a few hours and all iv found is contact forms which are limited to gmail email accounts?

View 3 Replies

Send Feedback From Website?

Mar 20, 2009

I have the following code which is meant to send an email from the website. I want the your name, phone number, your email and inquiry to be in the body content of the page as an html formate.

[code]...

View 4 Replies

Share And Get Feedback On My Application?

Jul 1, 2010

I've created an application (a simple calendar app w/vb.net) for my own use and would like to share it with you guys. I don't want money for it, just for the fun of sharing, and maybe get some feedback on it, not regarding the code, but the usability and concept.

However, this might not be the right place, as this forum is more about getting help on specific questions regarding code.

I've looked at codeproject.com, but it seems it's about presenting particular topics concerning code.

Does anyone know of a good place/forum to share and get feedback on finished applications?

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

.net - Feedback From Threads To Main Program?

Jan 27, 2011

My software will simulate a few hundred hardware devices, each of which will send several thousand reports to a database server.Trying it without threading did not give very good results, so now it's time to thread.Since I am load testing the d/b server, some of those transactions will succeed and a few may fail. The GUI of the main program needs to reflect this. How should the threads communicate their results back to the main program? Update global variables? Send a message? Or something lese?

Now, if I update only at the end of each thread then the GUI is going to look rather boring (and I can't tell if the program hung). It might be nice to update the GUI periodically. But that might cause contention, with threads waiting for other threads to update (for instance, if I am writing to global variables, I need a mutex, which will block each thread which is waiting to write).

I'm new to threading. How is this normally done? Perhaps the main program could poll the threads, instead of the threads iforming the main program?

View 1 Replies

Feedback Required From All FORUM Users

Jan 2, 2010

With regard to QUIZ questions; Easy - beginner, Medium - intermediate, Hard or Very Hard; I guess we would all like to see an equal balance of such questions, yes? However, my question for beginners and those who consider themselves capable of answering harder questions is, would users like more puzzle-based questions where you have to solve something using either mathematics or / and manipulation of text characters and so on?

This could possibly lead to simple number based games or those games using letters or even both numbers and letters. I am not thinking of programs that would take any longer to run than say 30 minutes maximum or would that be too long? I just thought I would start this discussion as it may help all forum users, especially beginners to improve His / Her own coding skills.

[Code]....

View 1 Replies

VS 2005 ListView Drop Feedback?

May 20, 2011

2 ListViews
Listview1
ListView2
Both have Drop enabled

List 1 has a bunch of invoice #,s in column 1. Column 2 is the amount List 2 has a bunch of clients.Drag invoice from list1 to a client in list2.how do I know what client I dragged to in List2? I would want the rowtag probably.

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

Read Data From Serial Port?

Apr 2, 2012

I am using a VB.NET(VS2010) to read data from serial port. I have 8-bit data to collect through rs232. This data is represented numbers. What reading method should I use and how to convert it to double format?

View 4 Replies

Read Data From The Serial Port?

Nov 12, 2009

I need to read data from the serial port Ive used serialport from the toolbox , but dont know how to use it. I used to do it on a Amiga like this

open serial("serial.device".0.2400.0) rem(open port)
repeat GW.w=readserial(0)
if gw>29 and gw<128

[Code]....

View 1 Replies

Reading Hex Data Through The Serial Port?

Oct 27, 2009

I am having a little trouble receiving data via the serial port. I can send just fine. I am using Serial Port object.

Basically my data expected is in the form of: [0x43 0x35 0x64 0x35...] broken up into bytes. I tried using the SerialPort.Read() function but can't get it to work.

View 8 Replies







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