Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
GeneralRe: ISO extracter? Pin
danzar7-Jul-09 16:45
danzar7-Jul-09 16:45 
GeneralRe: ISO extracter? Pin
Jacob Dixon7-Jul-09 17:08
Jacob Dixon7-Jul-09 17:08 
GeneralRe: ISO extracter? Pin
Jacob Dixon7-Jul-09 17:08
Jacob Dixon7-Jul-09 17:08 
QuestionWhat is happening is info from one child form is being received or listen to by the wrong child form. Pin
Lecutus17-Jul-09 9:59
Lecutus17-Jul-09 9:59 
AnswerRe: What is happening is info from one child form is being received or listen to by the wrong child form. Pin
Christian Graus7-Jul-09 10:23
protectorChristian Graus7-Jul-09 10:23 
AnswerRe: What is happening is info from one child form is being received or listen to by the wrong child form. Pin
DaveyM697-Jul-09 12:38
professionalDaveyM697-Jul-09 12:38 
GeneralRe: What is happening is info from one child form is being received or listen to by the wrong child form. Pin
Lecutus18-Jul-09 4:17
Lecutus18-Jul-09 4:17 
AnswerRe: What is happening is info from one child form is being received or listen to by the wrong child form. Pin
Alan N7-Jul-09 17:28
Alan N7-Jul-09 17:28 
Hi,

Lecutus1 wrote:
I had to do this because sometimes the sending form would receive info string from another truck.


That is the sentence I noticed in your post because unexpected data read from the serial port is indicative of a fault. The question is why is bad data being received? Where to route the response is relevant only when the data is good.

From your description each request that is sent is tagged with a truck ID. I assume that all trucks attached to the serial port will receive the request but only one will recognise the ID and respond using that same ID. Is that correct and can you verify that all the trucks operate correctly?

Clearly only one truck should be allowed to respond at a time as overlapping responses at the serial port would cause all sorts of trouble. Problems of this nature can be avoided by ensuring that a response is received for each request before a further request is issued. If this send-receive protocol is strictly obeyed then routing the response to the correct form is straightforward as the expected response ID is always known. If a situation ever arises where response ID != request ID then something has gone very wrong and the status of the truck is unknown.

Do you wait for the response to each request and check that a full response has been read before parsing it?

That is just a few things for you to think about. Let us know how you get on.

Alan.
GeneralRe: What is happening is info from one child form is being received or listen to by the wrong child form. Pin
Lecutus18-Jul-09 4:07
Lecutus18-Jul-09 4:07 
Questionupdating the database with the edited value from the datagridview Pin
praveenkumar_vittaboina7-Jul-09 9:47
praveenkumar_vittaboina7-Jul-09 9:47 
AnswerRe: updating the database with the edited value from the datagridview Pin
Manas Bhardwaj7-Jul-09 10:12
professionalManas Bhardwaj7-Jul-09 10:12 
AnswerRe: updating the database with the edited value from the datagridview Pin
FilipKrnjic7-Jul-09 23:24
FilipKrnjic7-Jul-09 23:24 
QuestionC# accuracy probleb (double) Pin
shai sherman7-Jul-09 7:45
shai sherman7-Jul-09 7:45 
AnswerRe: C# accuracy probleb (double) Pin
Ennis Ray Lynch, Jr.7-Jul-09 8:08
Ennis Ray Lynch, Jr.7-Jul-09 8:08 
AnswerRe: C# accuracy probleb (double) Pin
harold aptroot7-Jul-09 8:23
harold aptroot7-Jul-09 8:23 
AnswerRe: C# accuracy probleb (double) Pin
Luc Pattyn7-Jul-09 8:27
sitebuilderLuc Pattyn7-Jul-09 8:27 
QuestionExcel Parseing Pin
guchu7-Jul-09 7:26
guchu7-Jul-09 7:26 
AnswerRe: Excel Parseing Pin
DarrenShultz7-Jul-09 8:21
DarrenShultz7-Jul-09 8:21 
GeneralRe: Excel Parseing Pin
guchu8-Jul-09 22:17
guchu8-Jul-09 22:17 
GeneralRe: Excel Parseing Pin
DarrenShultz9-Jul-09 5:18
DarrenShultz9-Jul-09 5:18 
QuestionEmail In C# Pin
kibromg7-Jul-09 5:41
kibromg7-Jul-09 5:41 
AnswerRe: Email In C# PinPopular
Christian Graus7-Jul-09 5:42
protectorChristian Graus7-Jul-09 5:42 
GeneralRe: Email In C# Pin
kibromg7-Jul-09 5:57
kibromg7-Jul-09 5:57 
GeneralRe: Email In C# Pin
Eddy Vluggen7-Jul-09 6:02
professionalEddy Vluggen7-Jul-09 6:02 
GeneralRe: Email In C# PinPopular
EliottA7-Jul-09 7:00
EliottA7-Jul-09 7:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.