Teen Programmers Unite  
 

 

Return to forum top

Seriel Port output

Posted by miststlkr [send private reply] at April 03, 2002, 04:34:52 PM

I am looking to write a driver for an LCD screen that is hooked up to a seriel port. I'm not sure yet if I am going to use Ada, Pascal or C++. Are any of these better for this purpose?

What I want to be able to do in this program is:
1) be able to create and save a new template for the output (ie: output system data or output MP3 file info, etc),
2) select a template for current use, and
3) eventually, if possible, make it so that when I start an app that has a template (ie/ I open winamp) the template for that app is automatically used ((I load winamp and the LCD automatically starts displaying MP3 fileID info -artist name and song title))
I was thinking that I could set a hierarchy of templates so they wouldn't all try to load at the same time. This would be done by having a data file with each template name in order. Ones at the beginning of the list get priority and will be used instead of lower ones..

Anyway.. the basic problems are
1) I don't kow how to send streings to the seriel port in any of the languages I mentioned (so any help would be appreciated since that's kinda a key thing here :-D ), and
2) how do i access the fileID info to be able to display it? does anyone know of an open source mp3 player that displays the info that i can take a look at?

Thanks for any help you guys might be able to give.

Posted by miststlkr [send private reply] at April 03, 2002, 04:39:43 PM

I'm also willing to learn any other language that would be usefull for this if, for some reason, the three I mentioned are not very good at handeling seriel communications for some reason.

Posted by gian [send private reply] at April 04, 2002, 02:15:02 AM

Take a look at IRMp3 (Or something similar)... mpg123 and lcdproc will all probably be of use.

Posted by miststlkr [send private reply] at April 04, 2002, 02:08:31 PM

cool. thanks a lot. are they all open source?

Posted by buzgub [send private reply] at April 04, 2002, 10:21:28 PM

Perhaps, though, a winamp plugin written in C or C++ would have access to that information through winamp. mpg123 is definitely open source, and it won't have gui code for you to wade through.

You might like to take a look at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/hardware/commun... which is a listing of the Win32 API's communications functions. I think they might do what you want.

Posted by gian [send private reply] at April 05, 2002, 12:46:34 AM

Yes, they are all opensource.

Posted by miststlkr [send private reply] at April 05, 2002, 04:48:14 PM

thanks for all the help guys! any other ideas are appreciated if you come across another open source app that might help, please lemme know

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.