Thread: Need help with ltp

  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    2

    Need help with ltp

    Hello
    I need some help about ltp port. Here's my situation. There is a robot (home made), it connects to computer through LTP port and i need to wright program to control it. I've got a progie for that. There are 2 exe files. One communicate through ltp and other uses the first one to control robot. But this doesn't works on winXP. I somewhere read that all newer windows doesn't allows programs directly access ports. Seems that ltp is obsolete thing and i can't find nothing useful on net. I found that port handle could be obtained using CreateFile API function but i can't find usable file name. Tried LTP, LTP0, LTP1 and some others but none of these works. Tried COM1 and it works fine. Maybe there is another way for LTP. Actually i have no idea how those ports works and even if i get port handle what should i do next? Does ReadFile/WriteFile are suitable in my case or there are other way for that?

    Thanx in advance.

    Regards

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > I somewhere read that all newer windows doesn't allows programs directly access ports.
    Yes, that's correct.

    http://msdn.microsoft.com/library/de...createfile.asp
    Scroll down to "Communications Resources"

    > Tried LTP, LTP0, LTP1 and some others but none of these works
    Probably dyslexia - it would be LPT
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    2
    Thanx a lot.
    I've been searching for this at msdn but when u don't realy know what u are searching for u can easily miss it. BTW so how realy that port is called: LTP or LPT

    Regards

Popular pages Recent additions subscribe to a feed