Create A Program That Sends & Receives Data Via Rs232?

Apr 15, 2010

I need to create a program that sends & receives data via rs232. I have done it many times in VB6 with easy.

Why is so hard in vs2008?

I managed to send (or so I think). Because I can see the LEDs flashing on my board connected to the pc. But I do not get any response back from the board.

The reason I do it in vs2008, is because I need the program to run on a PDA. But to understand how rs232 works in vs2008, I just created a simple program for the pc to talk to my board.

for example, I send:

SerialPort1.Write(Chr(2) & "I" & Chr(3)) and I expect back (into a textbox), a hex string 25 characters long.

The board also send data to rs232 sometimes, without me requesting it.

View 6 Replies


ADVERTISEMENT

Create A Shortcut For Program That Sends The User To The World Map Of A Website With The Press Of A Button?

Jun 7, 2011

I'm trying to create a shortcut for my program that sends the user to the world map of a website with the press of a button, but it isn't working. Here's my code:

Private Sub Game_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Game.KeyDown
If e.KeyCode = Keys.M Then
Game.Navigate("http:fallensword.com/index.php?cmd=world")
End If
End Sub

"Game" is a WebBrowser control.

View 4 Replies

Make A Program In Vb 2008 To Real All The Data Rs232?

Mar 12, 2012

Somebody know how I can read data from a device connected rs232?Im write it in a text box?

View 4 Replies

Create An App That Receives Text Input On A Form And Outputs To Printer?

Mar 12, 2010

I am attempting to create an app that receives text input on a form and outputs to printer but I haven't any idea where to start for the coding. the form was relatively easy, now how to code. I have labels that give questions and 16 text boxes 5 list boxes and 10 check boxes to receive input from users how can I arrange the input into a paragraph and output to printer?

View 5 Replies

VB In A Laptop Through USB Port And A USB-RS232 Converter To Communicate With A Microprocessor Using RS232 Protocol

Oct 18, 2010

I have developed a microprocessor based devise. It can communicate with laptop through RS232 as a VB application. Now most of laptops have USB port only. So I want to use USB replacing RS232 port on laptop side but not change anything on the device side. Can I do this using a USB-RS232 converter? How to change the VB software?

View 1 Replies

Work The Program Receives The Radio Waves Into .net 2008?

Dec 19, 2011

How do I work the program receives the radio waves into vb.net 2008 With the use of computer ports?

View 1 Replies

Make A Programm That Receives Is Data From My Database On Web

Oct 21, 2009

i have database(ms access)in my web site i would like to get email stocked in my database to my programm(vb 2008)

View 5 Replies

DB/Reporting :: Inserts Data To A Sql Server Db When It Receives Input?

Aug 25, 2008

I have an application that inserts data to a sql server db when it receives input. The problem is that i see many duplicate entries in the table. I have checked my code and it shouldn't do that:

[Code]...

View 4 Replies

.net Program That Sends Email?

Dec 15, 2009

Vb.net program that sends email?Can we do that?

View 1 Replies

VB 8 Program To Communicate With RS232?

Aug 31, 2009

I chose Visual Basic 8 as a computer interface to communicate through RS232 (serial) to my microcontroller, which in turn will do its own thing to transmit data it receives from the VB GUI through wireless

I have used VB before but it's been a long time. I looked at some of the settings and it looks like it has a SerialPort com component I can use. Will it suffice for this project?Might be a simple question, but just want some tips from experienced developers.

View 11 Replies

Program In VB That Sends Emails To More Than One Recipient?

Dec 24, 2008

i want to do a program in VB that sends emails to more than one recipient i have already done that for one recipient and it works nicely

[Code]...

View 12 Replies

Sends The Output To Our Charting Program?

Jun 4, 2009

2.0 Framework.Our software does some measurement and then sends the output to our charting program. Right now it is taking 20-30 seconds for the results to print after our chart has sent the data to the printer since the printer is in sleep mode. What we are wanting to do is send a command to wake the printer at the end of our test, before it sends the results to the charting program, so the printer is (hopefully) done "waking up" by the time the chart program auto prints.

I have been looking around and haven't been able to find anything regarding this. The printer we are mainly using is a Brother HL 5250DN. I have contacted Brother but I have yet to hear anything back from them.

View 1 Replies

Communications :: Program Which Sends Email Automatically?

Dec 6, 2008

I am writing a program which sends email automatically. Sending the mail works fine. The problem is that this will be on portable systems and not always have internet connection.

Is there a way to determine if an internet connection is available before attempting to send.

View 2 Replies

Program Sends A String To A Server Without FTP Or MySQL?

Apr 23, 2012

How could I make it so my program sends a string to a server without FTP or MySQL.

I know it's possible, and I'm thinking about PHP.. Not sure how..

View 1 Replies

Program That Sends Their User And Password On Email

Apr 26, 2011

i made a program that sends their user and password on my email and post in a site a link.But some email me using my gmail that i used in my program. How can i hide my codes on my VB program. im using VB 2010. [code]

View 1 Replies

Netascii - A Host Which Receives Netascii Mode Data Must Translate The Data To Its Own Format

Aug 8, 2010

I am implementing RFC 1350/TFTP in my application. I've got everything figured out and working as expected except for NetASCII transfer mode.

"A host which receives netascii mode data must translate the data to its own format."

That's the part that has been bugging me for a while now. get NetASCII mode working correctly?

View 3 Replies

VS 2008 Make A Program That Sends An AT^ Command To A Port?

Aug 29, 2010

I want to make a program that sends an AT^ command to a port The AT^ Command is

AT^CARDLOCK="TEXT IN TEXT BOX 1"

View 4 Replies

Read Data From Rs232?

Dec 4, 2009

My program connects via the rs232 port to a pump and it managed to start the communication and sending data. But the problem arises when i try to read the return signal from the pump to pc. This is the piece of code i've used:

Code: Dim returnbyte(0) As Byte Dim ByteIndex As Integer = 0
Do While ClassSerialPort.BytesToRead <> 0 ReDim Preserve returnbyte(ByteIndex) returnbyte(ByteIndex) = ClassSerialPort.ReadByte() ByteIndex = ByteIndex + 1 Loop

[code]....

I obtain the following results:

Code:... 6 12 0 0 0 92 ...

From the manual i understand which byte to read. For e.g 6 = ACK. The problem is how to interpret the 4 bytes together in a string for e.g 0 0 0 92 means 9.2ml ?Is there any way to read the decimal point?

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

Get Info From A Scale Using An RS232 Cable Into A VB2010 Program

Oct 28, 2010

So I am trying to get info from a scale using an RS232 cable into a VB2010 program. But before we even start talking about that, I don't know ANYTHING about serial ports. I need to learn how to get the data from the scale without programming first... I am using Win7. I do have a sample program (w/ source) I downloaded [URL]) It runs without any errors, then I have a big USER error, what do I push? How do I tinker to figure out the right settings on this interface? or any interface. These are the sittings for the scale: [URL] I am considering returning my scale and getting something with maybe USB on it, I need to be able to weight things up 100lbs, I am shipping car parts.

View 8 Replies

Reading From CMD - Program Which Creates A Console In Which It Sends A Ping To An Domain

Oct 15, 2011

I was thinking of making a program which creates a console in which it sends a ping to an domain, in this case "www.google.com". then read this into my vb application. Probably looking to read each line into a listbox, this way i can add a parser to only take the data i want.

View 3 Replies

Read A Packet Of Data Which Has Come In From RS232

Jan 10, 2010

I am trying to read a packet of data which has come in from RS232. I need to be monitoring the port until data comes in to be actioned. I have been doing this fine for some time using the following code:

Dim strline As String = Nothing
Dim comPort As SerialPort
Dim bIsOpen As Boolean = False

[Code]....

The code above works without a problem unles byte 1 or two are greater than 127. Basically, all of the characters that are not converted seem to be 128-255.

I am using VB 2008 express. Clearly I need to read each byte individually and store it as a byte within an array instead of a string but i am not sure how to do this.

how to get around this either through reading bytes properly or through using a different encoding format

View 13 Replies

VS 2008 Reading Data Via Rs232

Apr 6, 2012

i would like to know a method that can read data via rs232 ( i use pic 18f452 to send 5 values(pression, temperature, current, voltage and solar radiation ) of Adc conversion )i successed to read one value at first ( sending one value via pic) , but i couldn't read more than one at end

so, question is how to do that ? how to separate between the data?

[Code].....

View 8 Replies

VS 2008 - Sends Data Via Telnet Locally On The PC

May 17, 2009

I have two main troubles. The most important is the telnet one. I have another program which sends data via telnet locally on the PC. It requires a login and optional pass. I can connect and draw data which comes in 77 byte packets.

The problem is, the first packet of data doesn't display until the 2nd one comes in, which for this arrangement could 10s or 24 hours depending on the final user's intended use. This staggered data rx continues until termination of the program. I've used tcpClient.Available() to confirm that my app is seeing the data almost the instant it leaves the other program but for some reason the message isn't passed until the 2nd packet arrives. I'm sure I've probably implemented this in a most cumbersome way so any streamlining.

The second issue (which is contributing in part to the first) is the timer which here uses a freeby snip from a forum somewhere - it screws with the app's menu's controls and program flow. I've tried the VB2008 timer but can't seem to make sense of the best way to use it in this context. I think I've been looking at the screen too long and can't see the obvious.

Imports System.Net
Imports System.Net.Sockets

Public Class Form1

[CODE]...

View 1 Replies

Read / Write Data From RS232 Port?

Aug 23, 2010

I need to write and read data from a RS232 port. On the RS232 port there is a RFID Card reader-Writer connected. So I need to send hex codes to the device, and have to poll every 1sec if there is a card in the system. If there is a card I need to read the info that is on the card. My biggest problem is I think is that I am not sure how many characters there will be in return after the read command (maybe it is always the same length this I am not sure). What is the right way to read-write to the com port. So I always got the same result and not skipping a code.

View 12 Replies

Read Incoming Data From RS232 Port?

Sep 28, 2011

I want to create an application in VB.net that will read data outputted by a RFID reader on serial port.I want to know how will my application be able to identify the interrupt generated by Serial port and will read data from there?

View 2 Replies

RS232 - Sending And Receiving Bit Data To The Machine ?

Jun 11, 2011

Does anyone knows how to program using vb.net with rs232 module?, all i know is that i should use a compolet, but i can't understand a thing regarding the sending and receiving bit data to the machine..

View 1 Replies

Sending And Receiving Data To RS232/MSComm A VB6.0 App?

Sep 14, 2009

I am developing an application which is pretty much a replacement of a hyperterminal. I am trying to send commands to the serial port using MSComm in VB6.0 When I type in on the hyperterminal h003128 I get a response OK. Or when I type in i003 it displays back some values.

What I am trying to figure out how do I send the h003128 via VB6. I believe I've undertood how to send data to the port. It seems I am not getting the correct formate. This wont work.. the formate iAAADDD where i = i AAA = 003 and DDD = 128 MSComm1.Output "i003128"

View 3 Replies

Communications :: RS232-USB Converter - Send Data To Microcontroller

Mar 13, 2009

I have a problem regarding rs232-usb converter... I'm using toshiba laptop. The problem i faced is i can receive data from my microcontroller to VB but i cant send data to microcontroller... However, when i use the same VB code and same converter, i try at my friend laptop (other brand), it works... May i konw is there any other setting i need to set for my laptop??

View 3 Replies

Read All Data From Serial Port (Com1 / RS232)

Nov 2, 2009

I am trying to make a program in vb 2005 to real all the data from a device connected on Serial Port (Com 1).i did this: [code]and this is how i want to reciveit.when i lounch the program i only receive first line "410001+00000001" and after that i get on the device rs232 error.

View 6 Replies







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