Communications :: Receiving RS-232 Corrupted Data?

Jan 8, 2009

I got a CRC checksum now and I get a Message in this Format SOH, Length Of Incoming Message, Message, CRC Checksum So I have a nice little look to processes the message and everything, Now I have questions on two events, While this loop is running it awaits for Data on the wire to come through and Checks for the SOH, I always get that but what are the chances of NOT getting a SOH, and if I don't what should I do with the Buffer Dump everything Till I come to another SOH? And on another scenario If two Packets are clashed together in one buffer should I always try to Peek and see if the Next byte after the CRC is a SOH to see if there is more Bytes and an whole another command to start Parsing and then take action?

View 4 Replies


ADVERTISEMENT

Communications :: File Corrupted After FTP Transfer With FtpWebRequest?

Sep 3, 2008

It's working kinda, but at the end when transfer is finished the file on the ftp is corrupted. I found about 3 ecamples online with this class and they all give me the same corruption

Code:
Imports System.Net
Imports System.IO

[code].....

View 2 Replies

Corrupted Data On External Drive Using VB2010?

Mar 11, 2010

I am presently using VB2010 to develop charting application. I have noticed that whent he applications are developed on my hp dv7-2270us notebook and stored on an external harddrive, if these same applications are then opened on my dell latitude d610, i will recieve a corrupted external harddrive error. Usually this can be repaired with check disk.

View 1 Replies

Data Table Internal Index Is Corrupted 5?

Feb 3, 2011

<p style="margin:0cm 0cm 0pt"><span style="font-family:Calibri; font-size:small">Im Anhang finden Sie ein VB-Programm zur Reproduzierbarkeit des Fehlers „Data Table Internal Index Is Corrupted 5".</span></p><p style="margin:0cm 0cm 0pt"><span style="font-family:Calibri; font-size:small">Folgende Schritte sind durchzuführen:</span></p><p style="margin:0cm 0cm 0pt"><span style="font-family:Calibri; font-size:small">Entzippen in ein geeignetes Verzeichnis</span></p><p style="margin:0cm 0cm 0pt"><span style="font-

[code]....

View 7 Replies

When I Copy A Large Table, The Data Gets Corrupted?

Feb 7, 2011

This is a problem with MS Access, but I can't seem to find an MS Access Forum, so I'm asking it here.I have a large table of just one field. The field type is Byte. I use CTRL C and CTRL V to make a copy of the table.I then compare the Source and Destination tables and lo and behold they are different at about record number 8 million.I also tried an Append Query to append to an empty table (I haven't tried a Make Table query).But, similar corruption.The source and destination tables do not end up the same. The Record where the failure occurs varies, but it is always greater than 8 million.I tried this on MS Access 2002 and 2010 (both with an Access 2002 database).

View 1 Replies

VS 2005 Packaging Namespace 'file Contains Corrupted Data'

Sep 29, 2009

I'm using the System.IO.Packaging namespace to compress a file. I'm getting an error that says 'file contains corrupted data'. So i tried using a txt file with just a few characters, and I got the same error. I read where someone said to make sure you have all streams closed and I checked this and do so I'm not sure what to try now. Here is my code.

[Code]...

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

.net - Tcp Client Not Receiving The Entire Data Response Data From Server?

Apr 19, 2011

I have a small program which is a tcp client. I send a string from this client to a device over ethernet (it acts as the tcp server). As soon as the device recieves the input string it will respond back with response data. My problem is i am not getting the entire response data back from the server. (device).

Dim serverStream As NetworkStream = clientSocket2.GetStream()
Dim outStream As Byte() = System.Text.Encoding.ASCII.GetBytes("my-cmd")
serverStream.Write(outStream, 0, outStream.Length)

[code]....

View 4 Replies

Receiving Data From USB?

Mar 23, 2007

Actually my project is based on rfid. The transmitter sends data to the remote reciever that is attached to the pc through USB. Now i have to design a VB.net interface for the recieved data.I dont know how to program and get data from USB and utilize it. I only have to receive the data and not to send.

View 14 Replies

TCP Receiving / Sending Data

Nov 11, 2009

Im woundering how does Receiving/Sending data work in a TCPClient/Server that is connected in the same networkstream.

View 4 Replies

Data Receiving With Socket?

Sep 27, 2011

i am working on 3rd party chat software, when ever i send data to server i get incorrect buffersize of data. like when i convert that data to hex to matching header for splitting data i got huge lengths data

in the above textbox of image i have got some 0000000000000000000.... with the hex data, how can i get only only original data. The code i have used to receive data is

[Code]...

View 1 Replies

Sending And Receiving Data To Or From PIC Through RS-232?

Nov 14, 2011

Currently I had write a simple VB code, my aim is when i click "Forward" button then the vb will send a character "A" to PIC, "Reverse" button will send "B" so I write my vb code for sending as below:

Dim Forward As Char = "A"

SerialPort1.Open()

SerialPort1.Write(Forward)

For the receiving part, after I received the data from PIC then I will show it at the label which act it as a screen. the receiving code as below:

SerialPort1.Open()
receive = SerialPort1.ReadChar()
If receive = "A" Then[code]....

View 14 Replies

Sending And Receiving Data Via USB?

Dec 4, 2011

I am working on system support for an electronics project wherein I have to receive an 8 bit (binary) data through a USB port and store either the binary or the corresponding decimal into a variable. How can I implement this in visual basic 2010?

View 11 Replies

TCP Client Receiving Data?

Dec 6, 2009

I have made this code:

Dim tcpClient As New System.Net.Sockets.TcpClient()
tcpClient.Connect("usuarios.lycos.es", 80)

[Code]...

View 4 Replies

.net - Passing And Receiving Data Between A Php And .exe Application?

Apr 24, 2012

there is a complex situation wherein, I have to pass a string data to a .exe application and this .exe application would process the string and respond back to my php data. I prefer not to use a TCP/IP connection.

View 1 Replies

Not Receiving All Data With Networkstream.read

Dec 11, 2011

I'm using the following code to get newsgroups from a server[code]...

When I execute the code, the routine only receives one block of the data. However, if I go into debug mode with a breakpoint at the loop instruction, I receive all of the blocks of data.Am I missing something in the code, like a wait or something, that would allow the program to receive all data like happens with the debug?

View 1 Replies

Not Receiving All Data With Networkstream.read?

Dec 8, 2011

I'm using the following code to get newsgroups from a server:
sendBytes = Encoding.ASCII.GetBytes("LIST active microsoft.public*" & ControlChars.CrLf)
networkStream.Write(sendBytes, 0, sendBytes.Length)

[code].....

View 2 Replies

Receiving Data From Serial Port?

Nov 30, 2008

i was not getting o/p properly when i tried to receive data from serial port using the following code.

Public Class form1
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If SerialPort1.IsOpen Then

[code]....

View 4 Replies

Receiving Data With MScomm From Modem?

Jul 1, 2009

I am making aproject in vb6 with MScomm. Computer A connected with a device on serial port. I can receive the data from serial port in a text box. Computer A can also dial cmputer B to make connection. But it is unable to send data on modem or computer B is unable to receive data from modem.Here is the code for sending and receiving computers1- Computer A

Option Explicit
'button to open data port to receive from device
Private Sub cmdOpen_Click()

[code].....

View 3 Replies

Receiving Wrong Serial Data?

Dec 13, 2009

I have a program that receives serial data from a microcontroller and displays it.If I use windows terminal I get the right data.For some reason my program is not displaying the right data.What is sent is temperature.So the actual data is 24 degreesC and my program is showing 10 degreesC.

Private
Sub SerialPort1_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived

[code]....

View 8 Replies

Clients Stop Receiving Data Suddenly

Jan 23, 2009

I am working on a client/server application. Everything seems to go well for a while (a few hrs, a few mins its kind of random) then suddenly clients stop receiving data. maybe 1 or two, or all of them. in the end I end up having to restart the server piece to resolve it, but I am trying to understand why its doing this. I've added try catches around the send piece, but it doesnt error out. When the app fires, the listener is started on its own thread. When a new connection is made, that connection is passed to a class that handles all of my connection data(send/receive, responding to commands, etc). The class is started in its own thread, so each connection is running in its own memory space. This issue seems to happen with 1 client connected, or 20, it doesn't really seem to matter.

This causes other issues, like a customer who thinks he is disconnected, will shut down his app, which is supposed to send a command to close the connection on the server side which it does not., so now I have several "closed" connections still open on the server, which is obviously also bad. Another thing I dont get is that it worked fine when I was developing the pieces on my dev box, so I dont get why I have all of these "timeout" issues now. (I put that in quotes, because the timeout period is the default of 10 mins, and I xmit data, at LEAST every minute when the server pushes data updates to all clients)

Here is some of the relevant code
vb
'Command Object, this holds all of the command information being passed back and forth to tell the server what to do, and as well as hold the response.
'The strCMD is the command, strParms is the parameters of the command, obj is ANY object I want to send along with this information
<Serializable()> Public Structure CommandData
Public strCMD As String
[Code] .....

View 7 Replies

Increase Speed Of Receiving Data Through GPRS

May 13, 2010

How to increase speed of receiving data through GPRS? We connect through UDP Protocol and sync method for receiving DATA. Can you suggest me to best way to communicate with GPRS? [Code]

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

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

Check When Serial Port Has Stopped Receiving Data?

Dec 20, 2009

What I am doing is creating an app to send and receive CNC programs to machine tools via the RS232 interface. At the moment I am testing the software with 2 laptops linked together through a cable I have made up. which all works. I have added a serial port to my form 1 and using the code below I can send and receive data. However with the send button I can open the comm port send the data and then close the comm port (No Problems there). With the receive button I want to open the comm port receive the data and close the comm port. The problem I have is checking when the app has finished receiving data so I can then close the comm port

Private Sub Btn_Send_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btn_Send.Click
Try

[Code]....

View 2 Replies

Forms :: Serial Port, Continuously Receiving Data?

May 11, 2011

I have serial port object which continuously receiving data from weighing device, which sends data in 0001450= format (8 Bytes). I read about datareceived event, and implement that, but i must use Thred.Sleep to get all data and read with serial.ReadExisting. Does the ReadBytesTreshold=8 raised DataReceived event after 8 bytes of data??

Is there any way to cancel, abort, stop DataReceived event?

View 4 Replies

Receiving Data From Text Boxes And Inserting It Into Database?

Feb 15, 2012

I'm trying to accept two pieces of data from two textboxes, which will then be inserted into a database on pressing enter, along with a date stamp, and a time stamp. My two text boxes are called; txtindicatorand txtemployee, the database is called; Database11 (Database11DataSet1).

The data would be imported into a table named; Data_Collection and the fields would be; Employee ID (which would come from the info the user inserted into 'txtemployee'), Time (automatic time stamp), Date (automatic date stamp), Type (which would be identified from textbox 'txtindicator').

View 2 Replies







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