serial port communication with multithreading
-
I have to do SerialPort communication that constantly needs to read data from a serial interface (for example COM1). and also identify the strating of first message and ending of that message and also starting of second message. please give me reply ASAP becuase I really stuck in that.
-
I have to do SerialPort communication that constantly needs to read data from a serial interface (for example COM1). and also identify the strating of first message and ending of that message and also starting of second message. please give me reply ASAP becuase I really stuck in that.
You had similar questions 3 months ago!? now start by telling more: 1. is it text or binary data? 2. is it message oriented? what is the minimum and maximum message length? 3. is there a unique byte that indicates end-of-message and is guaranteed not to appear inside a message? 4. is it going to fill the bandwidth, or just a few messages a second? 5. what kind of data is it? is it real-time? can you afford to loose some (as in audio/video streaming)? 6. what is more important: latency (reaction to first data) or bandwidth (kilobytes per second)? 7. what is the other device? did you design it? can it be modified if need be? etc :)
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? Neen!
-
You had similar questions 3 months ago!? now start by telling more: 1. is it text or binary data? 2. is it message oriented? what is the minimum and maximum message length? 3. is there a unique byte that indicates end-of-message and is guaranteed not to appear inside a message? 4. is it going to fill the bandwidth, or just a few messages a second? 5. what kind of data is it? is it real-time? can you afford to loose some (as in audio/video streaming)? 6. what is more important: latency (reaction to first data) or bandwidth (kilobytes per second)? 7. what is the other device? did you design it? can it be modified if need be? etc :)
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? Neen!
This is nice I agreed.
Thanks Md. Marufuzzaman
Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you. I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
-
You had similar questions 3 months ago!? now start by telling more: 1. is it text or binary data? 2. is it message oriented? what is the minimum and maximum message length? 3. is there a unique byte that indicates end-of-message and is guaranteed not to appear inside a message? 4. is it going to fill the bandwidth, or just a few messages a second? 5. what kind of data is it? is it real-time? can you afford to loose some (as in audio/video streaming)? 6. what is more important: latency (reaction to first data) or bandwidth (kilobytes per second)? 7. what is the other device? did you design it? can it be modified if need be? etc :)
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? Neen!
I know that I asked same question that before 3 months ago but I tried to implement for it but still facing problem and dont know the solution. let me explain from scratch so you will have some idea about it. 1) My allication has to intract with another device and this device cannot be modified. Its kind of embedded tech. means whaterver signal the device can send that computer has to recieve it and in some cases computer has to send some instruction to control the device.(in the case when the device generates signals and if it goes beyong some set points then computer has to control it. its kind of two way communication). 2) its in format of binary of ascii value. 3) there is no minimum or maximum length. its continous 4)probably its real-time. I dont have enough background info about this and I am only in this project so cant get help from other and never work any this kind of project in past.so please give me a proper guidence for it. thank you so much for intrest in this topic. thanks.
-
I know that I asked same question that before 3 months ago but I tried to implement for it but still facing problem and dont know the solution. let me explain from scratch so you will have some idea about it. 1) My allication has to intract with another device and this device cannot be modified. Its kind of embedded tech. means whaterver signal the device can send that computer has to recieve it and in some cases computer has to send some instruction to control the device.(in the case when the device generates signals and if it goes beyong some set points then computer has to control it. its kind of two way communication). 2) its in format of binary of ascii value. 3) there is no minimum or maximum length. its continous 4)probably its real-time. I dont have enough background info about this and I am only in this project so cant get help from other and never work any this kind of project in past.so please give me a proper guidence for it. thank you so much for intrest in this topic. thanks.
that still is extremely vague. what is the peripheral's function? is the peripheral a commercial one, has it on-line documentation I could look at? can you show say 100 bytes of the data, preferably in hex? both continuous and real-time is something Windows cannot handle; maybe you're exagerating? :confused:
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? Neen!
-
that still is extremely vague. what is the peripheral's function? is the peripheral a commercial one, has it on-line documentation I could look at? can you show say 100 bytes of the data, preferably in hex? both continuous and real-time is something Windows cannot handle; maybe you're exagerating? :confused:
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? Neen!
means? I didnt understand what kind of details you want? Actually I am going to use this programming for commericial use. In my project there is a need to develope this. the requirment is computer has to recieve signals from another device which is not computer but its a kind of detector. and whatever signals it sends computer has to recieve it. still if you have confusion then let me know I'll explain you. If you are availabe for chat then we discuss about it more clearly. but thanks a lot for help.
-
means? I didnt understand what kind of details you want? Actually I am going to use this programming for commericial use. In my project there is a need to develope this. the requirment is computer has to recieve signals from another device which is not computer but its a kind of detector. and whatever signals it sends computer has to recieve it. still if you have confusion then let me know I'll explain you. If you are availabe for chat then we discuss about it more clearly. but thanks a lot for help.
I don't chat. I have read your several messages and still have no clue about your app, your amount of data, its timing, etc. You'll be on your own. :|
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? Neen!