Re: How to remote control the device using command line input from PC?




Hyperterminal? It somewhat different, use telnet instead.
Just open command prompt window on your development machine
and type

telnet <ip address assigned to the device>

This should connect you to the telnet server
running on the device, you will see remote
command prompt (providing the telnet server on
the device is up and running):

WindowsCE>


--
Oleg


boonhun wrote:
Hi voidcoder,

Now I am able to connect my device to my pc with an IP address assigned automatically, but the Default gateway is empty. I am able ping my device successfully.

I want to configure my hyperterminal to connect with my device, what is the port number that I should use?

Bst Rgds,
BH



"voidcoder" <voidcoder@xxxxxxxxx> wrote in message news:uhTfYuiFIHA.4584@xxxxxxxxxxxxxxxxxxxxxxx
Not sure about rnidsmini inf, personally I'm using template
RNDIS inf from RNDIS kit: http://www.microsoft.com/whdc/device/network/NDIS/rndis.mspx
Just do not forget to update VID/PID to match the actual values
used by your device (check HKLM\Drivers\USB\FunctionDrivers\RNDIS\ branch).

Do they means RNDIS cannot work concurrently with ActiveSync in WINCE5.0?
That is true, ActiveSync can't work over RNIDS connection
with CE 5.0 device. You can use USB serial function instead
if you still want ActiveSync over USB, but you are loosing
network connection in this case and thus can't use telnet
and remote command line ...


--
Oleg


boonhun wrote:
Hi voidcoder,

Thanks for your reply.
Now, I am able to get my wince5.0 device to detect as an Network Adaptors in Device Manager and new connection icon LAN4 is shown on Network Connections on my pc. However the connection icon is showing 'disabled'. When I try to enable it, it will show Connection Failed. For your info, instead of using 'wceusbsh.inf' from ActiveSync, I am using ...\ETHDBG\rndismini\HOST\usb8023.inf to install my device. Is this correct way to do? What should I do to get it connected with an IP address?

Secondly, I saw this page when I googling, http://msdn.microsoft.com/chats/transcripts/mobileembedded/06_0726_msdn_wince.aspx

" Juggs RavaliA_MSFT (Expert):
Q: What changes are necessary to get RNDIS activesync working on a CE 5.0 based device?
A: RNDIS ActiveSync is not supported on CE 5.0. For this to work, you need changes in the ActiveSync binaries that ship on CE and hence not feasible. Even if you load the RNDIS driver and have the correct settings for the IP addresses and such, CE 5.0 based repllog (repllog is the Activesync bianry) on the device will not launch upon cradling."

Do they means RNDIS cannot work concurrently with ActiveSync in WINCE5.0?

Hope to hear from you!

Best Regards,
BH



"voidcoder" <voidcoder@xxxxxxxxx> wrote in message news:ubTPbtIFIHA.4880@xxxxxxxxxxxxxxxxxxxxxxx
Q1. Not quite sure I got it right. Don't STDIO functions
(_getws(), wscanf() etc) work for you?


Q2. You are specifying in registry which USB function to
use by default, e.g.

[HKLM\Drivers\USB\FunctionDrivers]
"DefaultClientDriver"="RNDIS"

... or you can switch it at runtime using
IOCTL_UFN_CHANGE_CURRENT_CLIENT ioctl:

http://msdn2.microsoft.com/en-us/library/ms895475.aspx


--
Oleg


boonhun wrote:
voidcoder,

Thanks for your reply! I have some doubts.

Q1. I am not clear how to "capture" the user command input. Where is the "place" in the OS store the command input, so that I can process it.

Q2. If both RNDIS and ActiveSync components have been included in the OS design, how is the OS know which components to use when we plug into PC usb port?

Rgds,
BH

"voidcoder" <voidcoder@xxxxxxxxx> wrote in message news:O%23o9byiEIHA.5976@xxxxxxxxxxxxxxxxxxxxxxx
I would like to create something that can remotely control the device using
our own defined command line input. We want to use USB OTG port ...
For USB you can enable RNDIS profile on device side and
add Telnet Server to the OS design. This will give you
remote command line, use any existing telnet client
(e.g. built in Windows desktop telnet.exe) to telnet
into device ...


--
Oleg


boonhun wrote:
Hi,

I would like to create something that can remotely control the device using our own defined command line input. We want to use USB OTG port as communication channel. Should I use ActiveSync with RAPI or USB Serial Null Modem using hyperterminal? What is the best way to do it? Any examples?


Rgds,
BH


.



Relevant Pages

  • Re: Networks,,,,,,,,,,,,,,,,,,,,
    ... > service portmap restart ... > Once you have the exports file set up, you can run the command: ... > Note that these lines need to be there on both bill's and ted's hosts ... Well, to do that, you need to make sure that the telnet, ftp and ...
    (Fedora)
  • Re: Networks,,,,,,,,,,,,,,,,,,,,
    ... service portmap restart ... Once you have the exports file set up, you can run the command: ... Note that these lines need to be there on both bill's and ted's hosts ... You said you wanted to "make telnet, ftp and ssh work between the ...
    (Fedora)
  • Re: telnet read_sb_data
    ... But I am not sure what is the SB/SE ... Is this a suboption on the remote machine or for Python. ... Even I don't know the SE command. ... Each time a telnet option is read on the input flow, ...
    (comp.lang.python)
  • Re: Reset a Cisco 1711 VPN
    ... VPN tunnel through a Cisco 1711 router. ... The network people here have given me the command to issue if I ... were to telnet the router. ... Winsock control that Lance Wynn suggested. ...
    (microsoft.public.vb.general.discussion)
  • Re: Never Connected using ActiveSync
    ... "Windows Mobile-based Device #13" ... I entered the route print command but I don't what I'm looking for. ... > ActiveSync 4.x Troubleshooting Guide - ... >> Switched from ISS BlackIce as my firewall to McAfee's Personal Firewall ...
    (microsoft.public.pocketpc.activesync)