Addressing a COM port from Python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Doru-Catalin Togea

    #1

    Addressing a COM port from Python

    Hi!

    I am writing some tests and I need to place calls through the modem. Is
    there an API for addressing the COM ports on my machine, so that I can
    issue AT-commands to the modem?

    If this can not be done from Python, I am sure it can be done from
    C/C++/Java. Any tutorials/examples that you know of? Maybe calling C from
    Python?

    I am working on Win XP Pro, with Activestate Python 2.4.

    Thanks,
    Catalin

    --

    <<<< =============== =============== ==== >>>>
    << We are what we repeatedly do. >>
    << Excellence, therefore, is not an act >>
    << but a habit. >>
    <<<< =============== =============== ==== >>>>
  • Miki Tebeka

    #2
    Re: Addressing a COM port from Python

    Hello Catalin,
    [color=blue]
    > I am writing some tests and I need to place calls through the modem. Is
    > there an API for addressing the COM ports on my machine, so that I can
    > issue AT-commands to the modem?
    >
    > If this can not be done from Python, I am sure it can be done from
    > C/C++/Java. Any tutorials/examples that you know of? Maybe calling C
    > from Python?
    >
    > I am working on Win XP Pro, with Activestate Python 2.4.[/color]


    HTH,
    Miki

    Comment

    • Fredrik Lundh

      #3
      Re: Addressing a COM port from Python

      Doru-Catalin Togea wrote:
      [color=blue]
      > I am writing some tests and I need to place calls through the modem. Is
      > there an API for addressing the COM ports on my machine, so that I can
      > issue AT-commands to the modem?
      >
      > If this can not be done from Python, I am sure it can be done from
      > C/C++/Java. Any tutorials/examples that you know of? Maybe calling C from
      > Python?[/color]



      </F>



      Comment

      • Nick Craig-Wood

        #4
        Re: Addressing a COM port from Python

        Doru-Catalin Togea <doru-cat@ifi.uio.no> wrote:[color=blue]
        > I am writing some tests and I need to place calls through the modem. Is
        > there an API for addressing the COM ports on my machine, so that I can
        > issue AT-commands to the modem?[/color]



        Works well in my experience
        --
        Nick Craig-Wood <nick@craig-wood.com> -- http://www.craig-wood.com/nick

        Comment

        Working...