Re: How to remote control the device using command line input from PC?
- From: voidcoder <voidcoder@xxxxxxxxx>
- Date: Thu, 25 Oct 2007 09:49:36 +0100
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@xxxxxxxxxxxxxxxxxxxxxxxNot 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@xxxxxxxxxxxxxxxxxxxxxxxQ1. 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@xxxxxxxxxxxxxxxxxxxxxxxI would like to create something that can remotely control the device usingFor USB you can enable RNDIS profile on device side and
our own defined command line input. We want to use USB OTG port ...
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
- References:
- How to remote control the device using command line input from PC?
- From: boonhun
- Re: How to remote control the device using command line input from PC?
- From: voidcoder
- Re: How to remote control the device using command line input from PC?
- From: boonhun
- Re: How to remote control the device using command line input from PC?
- From: voidcoder
- Re: How to remote control the device using command line input from PC?
- From: boonhun
- Re: How to remote control the device using command line input from PC?
- From: voidcoder
- Re: How to remote control the device using command line input from PC?
- From: boonhun
- How to remote control the device using command line input from PC?
- Prev by Date: Re: How to remote control the device using command line input from PC?
- Next by Date: Re: make SD card as usb mass storage
- Previous by thread: Re: How to remote control the device using command line input from PC?
- Next by thread: Bluetooth Extension Layer - ?
- Index(es):
Relevant Pages
|