send commands to device using activesync

E

Eran.Yasso

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.
 
I

Ignacio Machin ( .NET/ C# MVP )

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.
 
E

Eran.Yasso

On Jul 30, 3:39 pm, (e-mail address removed) wrote:> Hi all,


 Maybe you cannot use it, but it does work allright, I have a couple
of systems working like that using a TCP connection


Explain that, above you said you cannot use it.



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.
 
I

Ignacio Machin ( .NET/ C# MVP )

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
 
E

Eran.Yasso

no, as soon as you sync your ppc it gets an IP and your computer the
other ( 100/101)


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 :)




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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top