the phone should be on 172.6.6.6
Make sure you have the telnet daemon running on the phone as well.
Thanks Valkur,
After I connect the USB cable I restore my eth1 and set an IP for usb0 using this command:
ifconfig usb0 up 172.6.6.5 netmask 255.255.0.0
The routing table is now as follows:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 lo
172.6.0.0 * 255.255.0.0 U 0 0 0 usb0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth1
I can ping 172.6.6.5, but again this appears to be the IP number of the notebook itself. If I telnet to it, I end up on my notebook. Since the telnet daemon is not running (yet) on my A1200, I would expect a "connection refused" or something along those lines.
What am I missing/doing wrong?
Thanks again.
the phone should be on 172.6.6.6
Make sure you have the telnet daemon running on the phone as well.
Motorola A1200, 46p Generic firmware, Rogers
Unfortunatley no successThe ip 172.6.6.6 does not respond to a ping. If I try to telnet to it, it says "Unable to connect to host.: No route to host".
The inetd daemon is running on the phone. I installed the netd-a1200-v1_1.zip package from another thread and that appears to work OK. If I write a script (ps aux | grep inetd) and execute that on the phone, I can see that ./inetd is in the process list.
Even though the author (bragon) claims that the phone should get into usbnet mode, I still need to use minicon from Linux to issue the AT+MODE=13 command.
Any more pointers? Any Linux user on this forum that has telnet running from a Linux box to the A1200?
Thanks
basd,Originally Posted by basd
I don't know if you have figured your issues out yet, but if you have not it looks like your halfway there since you have the usb0 interface up on your workstation and the inetd process running on the A1200. I use linux as well and here are a few things I found when configuring the A1200 for telnet access.
The interface that will be exposed on the A1200 side of the connection will be assigned an IP address of 192.168.1.2 (it is usbl0 on the phone) if the script that contains the commands to bring the interface up does not set an IP. This is true on my phone at least, I'm running firmware R532H2_G_11.20.03P_B which came on my phone and I installed bragon's latest telnet pkg. It seems the script is executed by hotplug on the phone when the usbl0 interface comes into existence. The script is located at /etc/hotplug/network_fd.agent on the A1200's file system, and the relevant part of the script is below:
Here is the output of ifconfig ran on the phone after USB networking has been enabled:Code:# configuring a handheld device usbl*) # did we get an IP address during enumeration? if [ "$IP" != "0.0.0.0" ] ; then echo -n " get an IP addr during enumeration! " ifconfig $INTERFACE $IP up # default to a static IP else ifconfig $INTERFACE 192.168.1.2 up fi
It seems the Windows methods may set the IP address to 172.XXX.XXX.XXX somehow, but in my case not so for linux. So bring your usb0 interface up on your workstation up with a 192.168.1.0/24 address as follows:Code:# ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:180388626474 errors:0 dropped:0 overruns:0 frame:0 TX packets:180388626474 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:10462540335492 (2.3 Kb) TX bytes:0 (3.3204447280 ç) usbl0 Link encap:Ethernet HWaddr 0E:63:5C:D1:3E:55 inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:40531606381789 errors:2 dropped:2 overruns:0 frame:2 TX packets:27483495733503 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:2212698431937648 (503.1 Kb) TX bytes:0 (6.3204447280 ç)
man ifconfig for what pointopoint does if your not famaliar with itCode:ifconfig usb0 192.168.1.3 pointopoint 192.168.1.2 mtu 900Basically it sets up a direct link between two interfaces. Of course change the 192.168.1.3 interface to whatever is available on your network. At the bottom of this page it is recommened to set the mtu to 900:
http://www.courville.org/mediawiki/index.php/EZX
Hope that helps.
Thanks dabtech. Much appreciated! Yes, I did work out by running ifconfig -a on the phone that the IP number was set to 192.168.1.2. My approach was to change that IP number on the phone side so it would talk to my pc, however, your approach of using point-to-point is much more convenient.
Thanks again!
Bas.
Let me add another link:
http://www.linux-usb.org/usbnet/
Have not studied it in much detail, but this should give the answers how can get the device to get an automatic IP number.
Also this link : http://embedded.seattle.intel-resear...ting_up_USBnet is handy to get it up and running quickly.
Is anyone else having trouble getting the Belcarra driver installed under XP?
Here's what I'm doing:
* download Belcara INF
* modify it with device ID lines as described above
* wipe previous USB net entries from registry
* plug in phone
* when Found New Hardware window appears, I navigate to the inf. Windows reads the INF ok, but then errors out with:
Cannot Install this Hardware...A service installation section in this INF is invalid.
The problem seems to be with the original INF because the message appears whether I add the USB IDs or not.
Here's a sample set of IDs from the INF (I added the last 2):
%BTCUsbLan.DeviceDesc% = BTCUsbLan.ndi, USB\VID_22B8&PID_6027
%BTCUsbLan.DeviceDesc% = BTCUsbLan.ndi, USB\VID_22B8&PID_6027&Rev_0000
%BTCUsbLan.DeviceDesc% = BTCUsbLan.ndi, USB\VID_22B8&PID_6027\5&75451E6&0&2
Any ideas how I can get this INF to install so I can begin telnetting?
Thanks!!!!!
Yantse,
Have you tried to connect A1200 under Linux?
What drivers need to be load?
Originally Posted by yangtse
Motorola A1200
I have an A1200 bought in India (firmware 08p). I am trying to telnet from my Linux box to the phone. I can set the phone to USB modem mode and set the AT+mode=13 from minicom. This gives me the MotoNet message on minicom.
dmesg gives me the correct output (motolan). So I figured everything was ok. But telnet just does not work. The phone is apparently at 192.168.1.2 because none of the other IP addresses work. I had a bit of problem initially as my DHCP had assigned the same IP address to the linux box. I then changed the IP address of the linux box to 192.168.1.3.
I tried setting the linux box ip on the usb0 interface to different values but to no avail (tried 192.169.1.3, 192.168.1.10, etc.) with different netmasks (255.255.0.0 and 255.255.255.0). If I do a telnet 192.168.1.2, I get the message: Connection refused. With any other IP address, I get: No route to host.
smbclient and smb4k (kde front end to samba) cannot see any shares on the phone as well.
Is there any further setting that needs to be done?
Thanks in advance for any replies.
after reading all the hits, i still not get it. there are too many files need to be installed, configerations and many ways to do, i mess up, please help!
I have a1200, and want to use telnet via XP, I installed telnet_a1200.pkg and usbNet_1200.pkg, and successfully ping 192.168.16.1, but i can't, or i dont' know how to use telnet to brower internet/email stuff.
i dont' understand :
1: cp 1200.bat and nc.exe to d:\
2: <win>+R type d:\1200.bat
after this you can input "\\172.16.16.6\system" in the iexplorer( i am not use iexplorer)
3: the file "btblan-demo-15ec-f001_204.zip" for? can anyone explain to me how to use it?