Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Serial Interfacing ....  RSS feed

 
fahad shahab
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wanting some information about Interfacing two computers
We are a group of software engineers working on a project which require data transfer from one pc to another via serial port . We are using C++ to accomplish our job.
Infact we have done the data communication succesfully when we outport a single character from one PC and which is inported by the other pc. But in order to trnsfer array of characters we are having the problem.
The two pc's are not working at the same speed . i.e speed variation occurs as a result The computer which inports the character is unable to read all the
characters in the arrray completely and accurately .
One solution in my mind is to make a logical buffer which could first takes the input and store it and then read by the inport command solving the speed problem .
If u people have any suggestion then please do not hesitate to contact me.
To Solve this problem I need ur Assistance . Please refer some web content
Fahad Shahab
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this supposed to be a Java question?
In any event, that kind of stuff is normally handled by the lower levels of the I/O services. In C/C++, there are multiple solutions, depending on how much direct control of the process/vs. OS control/ language-supported control you want.
 
henisk reader
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javax.comm package is available in java Through which u can do serial port communication very easely and efficiently .
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!