C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 05-06-2003, 01:57 AM   #1
Registered User
 
Join Date: Apr 2003
Posts: 20
serial programming, threads and dynamic buffer

Hi,

I have a problem with reading from serial port. I have to read the com port continuously en put the data into files and database. The incoming data is very different from each other. some messages are 3000 characters long.

I read char per char, because i have to check each char, this is for seperating date, hour, header and message. There is some data lost, because of the great value of data and the writing into the database.

I want to solve this with threads, in this thread the port is being read and the data is put into a great buffer, in my main program i want to read from the great buffer to split the data. There is continuously data coming into and read from the buffer,but how can i do this???

i'm writing in c under linux

thanks in advance
lectrolux is offline   Reply With Quote
Old 05-06-2003, 09:59 AM   #2
Registered User
 
Join Date: Apr 2003
Posts: 20
thank you very much
lectrolux is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
POSIX Threads and dynamic memory allocation PING Linux Programming 1 04-02-2009 10:28 AM
global variable at dynamic library Mortissus C++ Programming 2 07-31-2007 02:44 PM
Dynamic 2d array Mithoric C++ Programming 8 12-29-2003 09:19 AM


All times are GMT -6. The time now is 03:47 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22