Topic: Reading from RS323 port, C++/Linux (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=29086" title="Pages that link to Topic: Reading from RS323 port, C++/Linux (Page 1 of 1)" rel="nofollow" >Topic: Reading from RS323 port, C++/Linux <span class="small">(Page 1 of 1)</span>\

 
kuckus
Paranoid (IV) Mad Librarian

From: Glieberlermany
Insane since: Dec 2001

IP logged posted posted 04-04-2007 16:31 Edit Quote

Hi all,
I haven't been around much lately, have I? Looks like most of the walls are still standing and shaking comfortably. =)
I could use a bit of help accessing a serial port through C++.. which is something I don't have too much experience with yet and haven't been able to get to work properly the last weeks.
The assignment is due tomorrow it seems. I *think* I'm pretty close...
Is there by any chance someone around who would be willing to lend a hand via icq/msn/you name it?
Thanks!

ps: My #'s here: ->kuckus

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

IP logged posted posted 04-04-2007 17:22 Edit Quote

I"m not gonna be on Q for another couple of hours,
but tell me your approach, and we can see if I can help.
Haven't worked with a serial port under linux, but I do have experience with network sockets and bluetooth
emulated serial ports, and hey, it's socket's after all .

So long,

->Tyberius Prime

hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana
Insane since: Aug 2000

IP logged posted posted 04-04-2007 21:34 Edit Quote

Depending on what you want ot do with it, you should be able to open and read it like any other device. Eg.

code:
serial = open("/dev/sda0", O_RDONLY);
 count = read(serial, buffer, BUFEFER_SIZE);



.



-- not necessarily stoned... just beautiful.


(Edited by hyperbole on 04-04-2007 21:35)

kuckus
Paranoid (IV) Mad Librarian

From: Glieberlermany
Insane since: Dec 2001

IP logged posted posted 04-07-2007 14:36 Edit Quote

Just as an update to let you know how it turned out - I had to just hand in the unfinished thing, as even with TP on the other side of the icq window there was no way for me to make much sense of the signals my program told me it was receiving.

Would have been nice to get it to work, but... I guess it could have happened, had I not somewhat 'misunderestimated' the whole thing the weeks before Not that big a deal.

Thanks again for the help though! Will be interesting to see how many points I'll be awarded for the half-working GUI at least.



Post Reply
 
Your User Name:
Your Password:
Login Options: Remember Me On This Computer
 
Your Text:
Loading...
Options: Show Signature
Enable Slimies
Enable Linkwords

« BackwardsOnwards »

Show Forum Drop Down Menu