Click here to Skip to main content
15,889,216 members
Home / Discussions / C#
   

C#

 
GeneralRe: Please help me understand serial communication Pin
turbosupramk311-Feb-12 11:09
turbosupramk311-Feb-12 11:09 
AnswerRe: Please help me understand serial communication Pin
Luc Pattyn11-Feb-12 11:31
sitebuilderLuc Pattyn11-Feb-12 11:31 
GeneralRe: Please help me understand serial communication Pin
turbosupramk311-Feb-12 11:56
turbosupramk311-Feb-12 11:56 
GeneralRe: Please help me understand serial communication Pin
turbosupramk311-Feb-12 15:29
turbosupramk311-Feb-12 15:29 
AnswerRe: Please help me understand serial communication Pin
Luc Pattyn11-Feb-12 15:51
sitebuilderLuc Pattyn11-Feb-12 15:51 
GeneralRe: Please help me understand serial communication Pin
turbosupramk311-Feb-12 22:31
turbosupramk311-Feb-12 22:31 
AnswerRe: Please help me understand serial communication Pin
Luc Pattyn11-Feb-12 23:34
sitebuilderLuc Pattyn11-Feb-12 23:34 
GeneralRe: Please help me understand serial communication Pin
turbosupramk312-Feb-12 4:11
turbosupramk312-Feb-12 4:11 
Ok, then scrap that, I thought that was where you were pointing me to, something like a stack. I'm glad it was not, because those looked very complicated!

In trying to write this down and conceptualize it first, I'm wondering if this is a good start?

uC -->

pc thread1 that does a serialport.readLine() into a string, then locks a global array1, copies into it, unlocks global array1 and then clears the string -->

pc thread2 that monitors global array1, locks it, copies data to local string or strings, clears and then unlocks global array1, parses data, adds unique single item delimiter and locks then copies to global array2, unlocks global array2, clears local string or strings -->

pc thread3 that monitors global array2, locks it, copies data to local string, clears global array2, unlocks global array2 and updates pc rich text boxes, then clears local strings

I believe asynchronous data transfer can be achieved if I use some do while loops, to wait for the locks/unlocks.

What do you think?
GeneralRe: Please help me understand serial communication Pin
Luc Pattyn12-Feb-12 10:43
sitebuilderLuc Pattyn12-Feb-12 10:43 
GeneralRe: Please help me understand serial communication Pin
turbosupramk312-Feb-12 11:06
turbosupramk312-Feb-12 11:06 
GeneralRe: Please help me understand serial communication Pin
turbosupramk312-Feb-12 16:40
turbosupramk312-Feb-12 16:40 
AnswerRe: Please help me understand serial communication Pin
Luc Pattyn13-Feb-12 3:10
sitebuilderLuc Pattyn13-Feb-12 3:10 
GeneralRe: Please help me understand serial communication Pin
turbosupramk313-Feb-12 3:18
turbosupramk313-Feb-12 3:18 
AnswerRe: Please help me understand serial communication Pin
Luc Pattyn13-Feb-12 3:31
sitebuilderLuc Pattyn13-Feb-12 3:31 
GeneralRe: Please help me understand serial communication Pin
turbosupramk313-Feb-12 4:00
turbosupramk313-Feb-12 4:00 
AnswerRe: Please help me understand serial communication Pin
Luc Pattyn13-Feb-12 4:12
sitebuilderLuc Pattyn13-Feb-12 4:12 
GeneralRe: Please help me understand serial communication Pin
turbosupramk313-Feb-12 4:18
turbosupramk313-Feb-12 4:18 
GeneralRe: Please help me understand serial communication Pin
turbosupramk317-Feb-12 11:52
turbosupramk317-Feb-12 11:52 
AnswerRe: Please help me understand serial communication Pin
Luc Pattyn17-Feb-12 17:36
sitebuilderLuc Pattyn17-Feb-12 17:36 
GeneralRe: Please help me understand serial communication Pin
turbosupramk317-Feb-12 18:33
turbosupramk317-Feb-12 18:33 
AnswerRe: Please help me understand serial communication Pin
Dan Mos12-Feb-12 2:11
Dan Mos12-Feb-12 2:11 
GeneralRe: Please help me understand serial communication Pin
turbosupramk312-Feb-12 4:21
turbosupramk312-Feb-12 4:21 
GeneralRe: Please help me understand serial communication Pin
Dan Mos12-Feb-12 5:44
Dan Mos12-Feb-12 5:44 
AnswerRe: Please help me understand serial communication Pin
turbosupramk312-Feb-12 7:44
turbosupramk312-Feb-12 7:44 
Questioncom add in excel2010 Pin
PozzaVecia11-Feb-12 0:19
PozzaVecia11-Feb-12 0:19 

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.