send commands to device using activesync

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Eran.Yasso@gmail.com

    send commands to device using activesync

    Hi all,

    I am trying to write application which runs on my PC that sends data
    to an application running on Windows mobile.
    The problem is that the tcp over activesync doesn't work. The device
    is not connected to ehternet.
    Can I send tcp traffic to device using active sync?
    I sas that the device's IPaddress is 192.168.55.101. I changed my PC
    IP address to 192.168.55.100 and sent ping but didn't get any ping
    reply.

    Am I missing anything here?

    Thanks.
  • Ignacio Machin ( .NET/ C# MVP )

    #2
    Re: send commands to device using activesync

    On Jul 30, 3:39 pm, Eran.Ya...@gmai l.com wrote:
    Hi all,
    >
    I am trying to write application which runs on my PC that sends data
    to an application running on Windows mobile.
    The problem is that the tcp over activesync doesn't work.
    Maybe you cannot use it, but it does work allright, I have a couple
    of systems working like that using a TCP connection
    >The device
    is not connected to ehternet.
    Can I send tcp traffic to device using active sync?
    Explain that, above you said you cannot use it.
    I sas that the device's IPaddress is 192.168.55.101. I changed my PC
    IP address to 192.168.55.100 and sent ping but didn't get any ping
    reply.
    >
    Am I missing anything here?
    Yes, a lot :)

    you do not need to change your computer ip, as a matter of fact your
    computer has another IP 192.168.55.100 that is assigned to the
    connection with the PPC.
    from the ppc you can do a connetion to .100 and you get your machine.

    There are other ways to send data to a PPC , like using RAPI, though.

    Comment

    • Eran.Yasso@gmail.com

      #3
      Re: send commands to device using activesync

      On Jul 30, 10:51 pm, "Ignacio Machin ( .NET/ C# MVP )"
      <ignacio.mac... @gmail.comwrote :
      On Jul 30, 3:39 pm, Eran.Ya...@gmai l.com wrote:Hi all,
      >
      I am trying to write application which runs on my PC that sends data
      to an application running on Windows mobile.
      The problem is that the tcp overactivesyncd oesn't work.
      >
       Maybe you cannot use it, but it does work allright, I have a couple
      of systems working like that using a TCP connection
      >
      The device
      is not connected to ehternet.
      Can I send tcp traffic to device using active sync?
      >
      Explain that, above you said you cannot use it.
      >
      I sas that the device's IPaddress is 192.168.55.101. I changed my PC
      IP address to 192.168.55.100 and sent ping but didn't get any ping
      reply.
      >
      Am I missing anything here?
      >
      Yes, a lot :)
      >
      you do not need to change your computer ip, as a matter of fact your
      computer has another IP 192.168.55.100 that is assigned to the
      connection with the PPC.
      from the ppc you can do a connetion to .100 and you get your machine.
      >
      There are other ways to send data to a PPC ,  like using RAPI, though.
      Hello Ignacio, thanks for the reply.

      Is there anything I need to do/configure PC or PPC to be able to use
      TCP over activesync?
      I already have the application and I can send TCP connection from two
      different PCs. The problem is that the PC doesn't manage to connect to
      the PPC.
      you do not need to change your computer ip, as a matter of fact your
      computer has another IP 192.168.55.100 that is assigned to the
      connection with the PPC.
      from the ppc you can do a connetion to .100 and you get your machine.
      When I sent ping to the device I didn't get ping reply. I used
      "ipconfig /all" on the PC to get its IP addresses. I didn't see that
      my PC has 192.168.55.100 IP Address.
      There are other ways to send data to a PPC , like using RAPI, though.
      What is RAPI?

      Thanks again.

      Comment

      • Ignacio Machin ( .NET/ C# MVP )

        #4
        Re: send commands to device using activesync

        Is there anything I need to do/configure PC or PPC to be able to use
        TCP over activesync?
        no, as soon as you sync your ppc it gets an IP and your computer the
        other ( 100/101)
        I already have the application and I can send TCP connection from two
        different PCs. The problem is that the PC doesn't manage to connect to
        the PPC.
        honestly I ahve never tried from PC to PPC, I always connect from PPC
        to PC.
        I would do this.
        -run an app in the ppc that listen to a port
        -do a telnet 192.168.55.101 portnumber from the machine where the ppc
        is synced

        see what happens :)


        >
        What is RAPI?
        Remote API
        you can send commands to the PPC, you can do things like modifing the
        register, copy file, exec programs, etc

        As a matter of fact I lied above, I do send some info from PC to PPC
        using RAPI. I copy a file to the PPC and then execute an app that send
        a signal to my PPC application that a new file exist

        Comment

        • Eran.Yasso@gmail.com

          #5
          Re: send commands to device using activesync

          On Jul 31, 5:01 pm, "Ignacio Machin ( .NET/ C# MVP )"
          <ignacio.mac... @gmail.comwrote :
          Is there anything I need to do/configure PC or PPC to be able to use
          TCP overactivesync?
          >
          no, as soon as you sync your ppc it gets an IP and your computer the
          other ( 100/101)
          >
          I already have the application and I can send TCP connection from two
          different PCs. The problem is that the PC doesn't manage to connect to
          the PPC.
          >
          honestly I ahve never tried from PC to PPC, I always connect from PPC
          to PC.
          I would do this.
          -run an app in the ppc that listen to a port
          -do a telnet 192.168.55.101 portnumber  from the machine where the ppc
          is synced
          >
          see what happens :)
          >
          >
          >
          What is RAPI?
          >
          Remote API
          you can send commands to the PPC, you can do things like modifing the
          register, copy file, exec programs, etc
          >
          As a matter of fact I lied above, I do send some info from PC to PPC
          using RAPI. I copy a file to the PPC and then execute an app that send
          a signal to my PPC application that a new file exist
          Ignacio, thanks for the reply. again.

          I'd affraid to ask what these apps do :).
          any way, thanks for the help.

          Comment

          Working...