UbuntuLinux and MOTOE2 mobile phone USB net connection method

Source: Internet
Author: User
To make it possible for E2 to perform SyncML in Ubuntu. E2 is flushed to 49 P, and the mobile phone supports USB net connection. After the driver is installed in WINDOWS, WINDOWS can smoothly connect to E2 through USB net, but cannot use the same settings, make it work in UbuntuLINUX. In WINDOWS, the network connection automatically obtains the IP address 192.168.16.1 and the mobile phone IP address 192.168.16.2, which can be pinged. Under Ubuntu,

To make it possible for E2 to perform SyncML in Ubuntu. E2 is flushed to 49 P, and the mobile phone supports usb net connection. After the driver is installed in WINDOWS, WINDOWS can smoothly connect to E2 with usb net, but cannot use the same settings, make it work in Ubuntu LINUX.

In WINDOWS, the network connection automatically obtains the IP address 192.168.16.1 and the mobile phone IP address 192.168.16.2, which can be pinged. In Ubuntu, the driver is not required to be installed, and the usb network can be loaded to connect to usb 0, but the IP address cannot be automatically obtained. Modify/etc/network/interfaces and set the IP address of USB 0 to 192.168.16.1:

Auto USB 0
Iface usb0 inet static
Address 192.168.16.1
Netmask 255.255.255.248


Unfortunately, you cannot PING 192.168.16.2.

After studying the E2 file system, we found that the/etc/hotplug/network_fd.agent file contains the following section:

# 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


That is to say, when E2 cannot automatically obtain the IP address, it will set the IP address to 192.168.1.2.

To further confirm, run ifconfig>/mmc/mma1/ifconfig.txt on E2 to export the IP Address Configuration when connecting to LINUX, Which is 192.168.1.2.

The Ubuntu IP address ifconfig usb0 192.168.1.1 is set. The PING test is successful!

However, the default MTU value is 1500, which may be abnormal during samba access. You can change the mtu value to 1468.

MTU Value Determination Method: ping-l 1500 192.168.1.2 in windows, ping-s 1500192.168.1.2 in linux, and modify the MTU value to 1500 until the maximum PING value is reached.

Then use MutiSync to synchronize E2 on the computer.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.