Friday, April 18, 2014

Huawei E1750 3G module could not identify in my Android system, the / dev directory but not driven to produce ttyUSB *


Huawei E1750 3G module could not identify in my Android system, the / dev directory but not driven to produce ttyUSB *
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
My Android system identification Huawei MU509 3G module is no problem, do not know the Huawei E1750 3G module has special place! ! !
Reply:
Huawei E1750 NIC FAQ
Unicom 3G wireless http://blog.sina.com.cn/s/blog_6b918a190100tilr.html
Reply:
Under Ubuntu 9.04 using the Huawei E1750
http://www.kklinux.com/html/Love -Linux/Fedora/200910/28-6368.html
 
Recently staged a last Unicom's 3G network card, the model is Huawei E1750, under Windows with no problems, but is not recognized in Ubuntu. A Google Internet to find a solution.

First download usb_modeswitch 1.02, because it is the source code needed to compile and install:

make install

Then open / etc / usb_modeswitch.conf, add code:

# ----

DefaultVendor = 0x12d1;
DefaultProduct = 0x1446
TargetVendor = 0x12d1
TargetProduct = 0x1001
MessageContent = "55534243000000000000000000000011060000000000000000000000000000"
CheckSuccess = 5
# -

Finally, run:

usb_modeswitch-W

Establish a wireless connection in the network manager, OK.






Reply:
[Help] Huawei E1750 voice lock solution leads to CD-ROM drive and card reader are disabled. Little solve
http://www.test3g.com/thread-141208-1-1.html
 
Citie thank the owner 3G-fever and my high school classmates sharp pot, thank you.

Huawei E1750 voice lock solution leads to CD-ROM drive and card reader are disabled, ask the experts how to solve?
Download the
dc-unlocker_client-1.00.0575, spent 26 purchase points
In drawing on the computer network cable (SIM card to take down, not turned Unicom) to activate voice functions, and then prompts the following

Try not respond
Again with another computer, you can call the
foundThen loaded back on dc-unlocker_client-1.00.0575 computers, findings suggest that the function has been activated voice
VOICE FEATURE display ENABLE
But the CD-ROM drive and card reader is disabled, does not show up on your computer, ask the experts how to solve?



Consult the owner via 3G-fever, says AT commands can be used to restore and gave two URLs

http://3g-modem.wetpaint.com/page/Huawei+E1750% 2C + E1752

http://3g-modem.wetpaint.com/page/executing+AT-commands+under+Windows

how to execute AT-commands under Windows

In order to execute AT-commands, you first have to install drivers for your 3G device. During driver installation several specific virtual inte ** ces will be created, which will appear under Windows as serial COM ports or as a modem.

After drivers have been installed, you need to find out the required COM port in Windows device manager, as described below:

Open the Windows device manager

Windows XP:

Click Start, click Control Panel, click Performance and Maintenance, and then click System.

On the Hardware tab, click Device Manager. Double-click the type of device you want to change.

Windows Vista:

Click Start, click Control Panel, click System and Maintenance, and then click Device Manager. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.

In Windows device manager you will find the required port depending on your modem's manufacturer:

Huawei devices:

expand the "Modems" section

right-click the item "HUAWEI Mobile Connect - 3G modem" (or similar) and select "properties"

click the "modem" tab

There you should see the "port", which is the required port.

Not the PuTTY Configuration appears:

select "Serial" as connection type

under "Serial line" enter the COM port, which you have looked up earlier (eg COM6)

click on "Open" to establish the terminal connection to your device

To check if everything is working type ATZ (= resetting the device) and press [enter] and your modem should answer with "OK" (depending on if command echo is enabled or not, you might not see what you are typing, so don 't wonder if the screen remains unchanged while typing).

Afterwards try the command ATI [enter], which will output information on your device:

Screenful in English read, ask my high school classmates after sharp pot (English special eight), briefly steps are as follows "

1 point "Start", click "Control Panel", click "Performance and Maintenance" point "system"

Point "hardware", click "Device Manager" Double-click the type of device you want to change the point on "raised demodulator"

Right "HUAWEI (Huawei) Mobile Connect - 3G modem" or similar item, then select "Properties"

Click the "adjusted demodulator" tab, select "Port", so you know what port you are using a

The best option is to "PUTTY", you need to download PUTTY

Before installing PUTTY, make sure your device is fully closed, ensure that no other applications to connect to your device and then run PUTTY

Then to the sixth step, according to the figure 123 on it, and then enter the ATZ, ATI

Then Run the AT-command: AT ^ U2DIAG = 256 (how to run AT-commands) - this will disable the flashmemory, which will be replaced by the microSD-card, so after plugging in the modem from now on only the microSD- card will show up and the setup of the modified "Mobile Partner" will be run automatically.
Sometimes AT-commands will result in an "ERROR" -. In this case keep reentering the AT-command until "OK" is being returned
Run the AT-command: AT ^ U2DIAG = 268 (how to run AT-commands) - this will reenable the flashmemory, which was replaced by the microSD-card
.
Then enter the AT ^ U2DIAG = 256 or AT ^ U2DIAG = 268

Wonderful second election, I just successfully restored the CDROM drive, card reader function is not trial and error recovery

I also brush the Singapore firmware, or not, well, do not toss


Unnamed 2.jpg (23.91 KB, Downloads: 4)

2010-12-8 16:35:31 Upload
Downloads: 4




Tip





Reply:
Brush a lot of versions, is to wireless card, adb Come
http://bbs.imp3.net/thread-10427765-1-1.html

 

Huawei E1750, and if tried several firmware will not support 3G, then try disabling E1750 CD-ROM that features it.


As follows:

The Huawei E1750 plugged into the computer, and then open the "Device Manager" in the modem that class, you will see the E1750, then right-click Properties, in the "Advanced" tab inside, there will be an "extra initialization commands." , in which the input: AT ^ U2DIAG = 0. Then determine prohibit the cd-rom mode. Then plug into the A500 to try to do, if not enough, then I would Meizhe.
Another word of caution, before you perform this operation, the best backup software inside the E1750 look after the ban cd-rom, 1750 plugged into the computer may not be able to display a stored CD.


The two shots, because the wood has E1750, E1750 so
the picture is not the

Reply:
Huawei E1750's CDROM mode again after the lift can not be disabled
http://bbs.gfan.com/viewthread.php ? tid = 2012213 & extra = & ordertype = 1
 
I found a forum 3G Huawei E1750 AT commands, as follows:
AT ^ U2DIAG = 255 or 276 factory set
AT ^ U2DIAG = 256 Close CD
AT ^ U2DIAG = 1 Close the SD card
AT ^ U2DIAG = 0 close the CD and SD card

First with AT ^ U2DIAG = 0 this command, CDROM and SD cards are banned, as has been not to get A500 mobile network settings, so they use the AT ^ U2DIAG = 276 command replied CDROM and SD cards. From then on my E1750 AT command fails, these parameters can no longer be disabled via CDROM, even brush the latest firmware does not work. Cups!


Reply:
Finally get the card on Huawei E1750 3G seconds off the normal use and implementation in the MAC under
http://mac.pcbeta.com/thread-69118-1-1.html
Reply:
Acer A500 Tutorial: Disable CD-rom on the card recovery methods
http://www.padcn.com/t-4339-1-1.html
 
Disable CD-rom on the card recovery methods .. very useful ..

Thanks to friends who share ..

After tossing the brush 3.1 3G card, because a friend of cards, dared to disable CD-ROM, can not be used for fear returned to the people, just on the Internet to find a recovery method, not try, going to wait to try to go, especially given The oil needs to be restored, along with the effect of how
try
Consult the owner 3G-fever, says AT commands can be used to restore and gave two URLs

http://3g-modem.wetpaint.com/page/Huawei+E1750% 2C + E1752

http://3g-modem.wetpaint.com/pag ... mands + under + Windows

1 point "Start", click "Control Panel", click "Performance and Maintenance" point "system"

Point "hardware", click "Device Manager" Double-click the type of device you want to change the point on "raised demodulator"

Right "HUAWEI (Huawei) Mobile Connect - 3G modem" or similar item, then select "Properties"

Click the "adjusted demodulator" tab, select "Port", so you know what port you are using a

The best option is to "PUTTY", you need to download PUTTY

Before installing PUTTY, make sure your device is fully closed, ensure that no other applications to connect to your device and then run PUTTY

Then to the sixth step, according to the figure 123 on it, and then enter the ATZ, ATI

Then enter the AT ^ U2DIAG = 256 or AT ^ U2DIAG = 268

Wonderful second election, I just successfully restored the CDROM drive, card reader function is not trial and error recovery

I also brush the Singapore firmware, or not, well, do not toss

Device Manager Properties Advanced additional modem initialization commands AT + ZCDRUN = F


Reply:
Ubuntu10.04 use Huawei E1750 3G next module (reprint)
http://www.360doc.com/content/11/1116/11 / 3989678_164744374.shtml
Reply:
A2.1 system 3G dial tutorial.
http://bbs.zhiqifans.com/thread-25580-1-1.html

 

First Chi did not put on all 3G network card drivers do inside the system, so tight support Datang, ZTE, Huawei several card. But Huawei's drive seems to be the most versatile, so even without the list of models also can try, I is E176G.
1 Confirm "Settings" - "USB Mode" - "OTG mode" under "master mode" state;
(2) Click on "3G Dial", recognized for "3G dial-up" is not checked on the status of the card plugged in;
3 on the card will flash green after flashing blue lights, have been identified on the card proved; (flashing lights of different colors will be different models)
4 After "3G Dial" tick, the card will turn green after flashing blue lights flashing process;
5-point "Select Device" on the card model, Unicom Huawei point "180" or "1750" can be;
6 long bright blue light, the status bar appears "3G" symbol, the Internet properly;
7 If not, try a few multi-point "Select Device" on the card type.
Off the net:
1 to remove the "3G dial-up" behind the hook;
2 behind "3G Dial" tick, then the card can be broken network;
(3) remove the "3G dial-up" behind the hook, or the next time you can not get;
Not even if the second network, you can try to pull out the card, repeat the above steps.



Reply:
Technical stickers - CD-rom recovery method (transfer)
disable the card on Huawei http://bbs.gfan.com/android-1847802-1-1.html
 

After tossing the brush 3.1 3G card, because a friend of cards, dared to disable CD-ROM, can not be used for fear returned to the people, just on the Internet to find a recovery method, not try, going to wait to try to go, especially given The oil needs to be restored, along with the effect of how
try
Consult the owner 3G-fever, says AT commands can be used to restore and gave two URLs

http://3g-modem.wetpaint.com/page/Huawei+E1750% 2C + E1752

http://3g-modem.wetpaint.com/pag ... mands + under + Windows

1 point "Start", click "Control Panel", click "Performance and Maintenance" point "system"

Point "hardware", click "Device Manager" Double-click the type of device you want to change the point on "raised demodulator"

Right "HUAWEI (Huawei) Mobile Connect - 3G modem" or similar item, then select "Properties"

Click the "adjusted demodulator" tab, select "Port", so you know what port you are using a

The best option is to "PUTTY", you need to download PUTTY

Before installing PUTTY, make sure your device is fully closed, ensure that no other applications to connect to your device and then run PUTTY

Then to the sixth step, according to the figure 123 on it, and then enter the ATZ, ATI

Then enter the AT ^ U2DIAG = 256 or AT ^ U2DIAG = 268

Wonderful second election, I just successfully restored the CDROM drive, card reader function is not trial and error recovery

I also brush the Singapore firmware, or not, well, do not toss

It is important floor Replies:
Device Manager Properties Advanced additional modem initialization commands AT + ZCDRUN = F

Original post address: http://www.test3g.com/thread-141208-1-1.html


Reply:
executing AT-commands under Windows
how to execute AT-commands under Windows

http://3g-modem.wetpaint.com/page/executing + AT-commands + under + Windows
Reply:
Nobody played Huawei E1750 3G module under ANDROID
Reply:
Find the corresponding feeling a little something.

[Android hardware] Huawei E1750 development board transplantation in question!
http://www.eoeandroid.com/thread-70677-1-1.html
 
After the plug E1750, E1750 can see the ID information:

1. # Lsusb

1.Bus 001 Device 001: ID 1d6b: 0002

2.Bus 002 Device 001: ID 1d6b: 0002

3.Bus 001 Device 003: ID 12d1: 1446



Hanging usbfs:
1. # Mount-t usbfs none / proc / bus / usb



In the / dev yet E1750 converted tty serial device

1. # Ls dev / tty

1.dev/tty dev/tty17 dev/tty26 dev/tty35 dev/tty44 dev/tty53 dev/tty62

2.dev/tty0 dev/tty18 dev/tty27 dev/tty36 dev/tty45 dev/tty54 dev/tty63

3.dev/tty1 dev/tty19 dev/tty28 dev/tty37 dev/tty46 dev/tty55 dev/tty7

4.dev/tty10 dev/tty2 dev/tty29 dev/tty38 dev/tty47 dev/tty56 dev/tty8

5.dev/tty11 dev/tty20 dev/tty3 dev/tty39 dev/tty48 dev/tty57 dev/tty9

6.dev/tty12 dev/tty21 dev/tty30 dev/tty4 dev/tty49 dev/tty58 dev/ttyS0

7.dev/tty13 dev/tty22 dev/tty31 dev/tty40 dev/tty5 dev/tty59 dev/ttyS1

8.dev/tty14 dev/tty23 dev/tty32 dev/tty41 dev/tty50 dev/tty6 dev/ttyS2

9.dev/tty15 dev/tty24 dev/tty33 dev/tty42 dev/tty51 dev/tty60 dev/ttyS3

10.dev/tty16 dev/tty25 dev/tty34 dev/tty43 dev/tty52 dev/tty61


Use usb_modeswitch converter module:
1> Error:
USB error: error sending control message: Protocol error
Error:.. Getting the current configuration failed (error -71) Aborting

1. #. / Usb_modeswitch-W-c usb_modeswitch.conf

1.

2.Reading config file: usb_modeswitch.conf

3.

4 * usb_modeswitch:. Handle USB devices with multiple modes

5. * Version 1.1.6 (C) Josua Dietze 2010

6. * Based on libusb0 (0.1.12 and above)

7.

8.! PLEASE REPORT NEW CONFIGURATIONS!

9.

10.DefaultVendor = 0x12d1

11.DefaultProduct = 0x1446

12.TargetVendor = 0x12d1

13.TargetProduct = 0x1001

14.TargetClass = not set

15.TargetProductList = ""

16.

17.DetachStorageOnly = 0

18.HuaweiMode = 0

19.SierraMode = 0

20.SonyMode = 0

21.GCTMode = 0

22.KobilMode = 0

23.MessageEndpoint = not set

24.MessageContent = "55534243123456780000000000000011060000000000000000000000000000"

25.NeedResponse = 0

26.ResponseEndpoint = not set

27.Interface = 0x00

28.

29.InquireDevice enabled (default)

30.Success check enabled, max. Wait time 5 seconds

31.System integration mode disabled

32.

33.usb_set_debug: Setting debugging level to 15 (on)

34.usb_os_find_busses: Found 002

35.usb_os_find_busses: Found 001

36.usb_os_find_busses: Skipping non bus directory devices

37.usb_os_find_devices: Found 001 on 002

38.usb_os_find_devices: Found 003 on 001

39.usb_os_find_devices: Found 001 on 001

40.error obtaining child information: Inappropriate ioctl for device

41.

42.Looking for target devices ...

43 searching devices, found USB ID 1d6b:. 0002

44 searching devices, found USB ID 12d1:. 1446

45. Found matching vendor ID

46 searching devices, found USB ID 1d6b:. 0002

47.No devices in target mode or class found

48.Looking for default devices ...

49 searching devices, found USB ID 1d6b:. 0002

50 searching devices, found USB ID 12d1:. 1446

51. Found matching vendor ID

52. Found matching product ID

53. Adding device

54 searching devices, found USB ID 1d6b:. 0002

55.Found devices in default mode, class or configuration (1)

56.Accessing device 003 on bus 001 ...

57.Getting the current device configuration ...

58.USB error: error sending control message: Protocol error

59.Error:.. Getting the current configuration failed (error -71) Aborting

60.

61. #. / Usb_modeswitch-W-c usb_modeswitch.conf

62.

63.Reading config file: usb_modeswitch.conf

64.

65 * usb_modeswitch:. Handle USB devices with multiple modes

66. * Version 1.1.6 (C) Josua Dietze 2010

67. * Based on libusb0 (0.1.12 and above)

68.

69.! PLEASE REPORT NEW CONFIGURATIONS!

70.

71.DefaultVendor = 0x12d1

72.DefaultProduct = 0x1446

73.TargetVendor = 0x12d1

74.TargetProduct = 0x1001

75.TargetClass = not set

76.TargetProductList = ""

77.

78.DetachStorageOnly = 0

79.HuaweiMode = 0

80.SierraMode = 0

81.SonyMode = 0

82.GCTMode = 0

83.KobilMode = 0

84.MessageEndpoint = not set

85.MessageContent = "55534243123456780000000000000011060000000000000000000000000000"

86.NeedResponse = 0

87.ResponseEndpoint = not set

88.Interface = 0x00

89.

90.InquireDevice enabled (default)

91.Success check enabled, max. Wait time 5 seconds

92.System integration mode disabled

93.

94.usb_set_debug: Setting debugging level to 15 (on)

95.usb_os_find_busses: Found 002

96.usb_os_find_busses: Found 001

97.usb_os_find_busses: Skipping non bus directory devices

98.usb_os_find_busses: Skipping non bus directory devices

99.usb_os_find_devices: Found 003 on 001

100.usb_os_find_devices: Found 001 on 001

101.error obtaining child information: Inappropriate ioctl for device

102.

103.Looking for target devices ...

. 104 searching devices, found USB ID 1d6b: 0002

105 searching devices, found USB ID 12d1:. 1446

106. Found matching vendor ID

107 searching devices, found USB ID 1d6b:. 0002

108.No devices in target mode or class found

109.Looking for default devices ...

110 searching devices, found USB ID 1d6b:. 0002

111 searching devices, found USB ID 12d1:. 1446

112. Found matching vendor ID

113. Found matching product ID

114. Adding device

. 115 searching devices, found USB ID 1d6b: 0002

116.Found devices in default mode, class or configuration (1)

117.Accessing device 003 on bus 001 ...

118.Getting the current device configuration ...

119.USB error: error sending control message: Protocol error

120.Error:.. Getting the current configuration failed (error -71) Aborting
/ / ---------------
After 2> reboot the system in use usb_modeswitch successful conversion

#. / Usb_modeswitch-W-c usb_modeswitch.conf









Reply:
"Help" adding 3G module on android2.3.4, usb_modeswitch fails, send text messages to fail. . .
http://bbs.witech.com.cn/thread-7356-1 -1.html

 

After the first insert 3G module to automatically identify the following:
usb 1-1: USB disconnect, address 5
usb 1-1: new full speed USB device using s3c2410-ohci and address 6
usb 1-1: New USB device found, idVendor = 19d2, idProduct = ffeb
usb 1-1: New USB device strings: Mfr = 3, Product = 2, SerialNumber = 0
usb 1-1: Product: ZTEMT Technologies
usb 1-1: Manufacturer: Qualcomm, Incorporated

Then I use the command:
usb_modeswitch-c / etc/usb_modeswitch.d/19d2 \ ^ \% ffeb-W
Error: Could not find file / etc/usb_modeswitch.d/19d2 ^% ffeb
I went to the / etc / usb_modeswitch.d / next looked, and indeed no such file

/ Dev / under no ttyUSB * Do not know what this is why I do not use the 3G module.

And I think 3G module should be able to send text messages, but after sending the system prompts, text messages can not be said to be sending SMS service does not start and the like,
I restart it, but did not start, this does not know how to start?

I need this project to automatically send text messages, so this one is more anxious, ask for help. .


Reply:
Android achieve 3G usb mode automatically converted
class http://blog.csdn.net/maeom/article/details/6583858

 
Environmental systems: Android-2.3 board: a friendly arm to provide s3c6410

When a new usb is inserted, the kernel sends a uevent time. After receiving the upper, make the appropriate treatment.

Such as: I used to HuaWei ET127 3G card, insert the arm after the board. Did not correctly identify becoming ttyACM * devices. Unable to send AT commands. Time. We need to change modes.

I am using usb_modeswitch can download Quguan network, and then use the arm-gcc to compile.

First look at the message flow


In Android-2.3/system/core/libsysutils/src/NetlinkListener.cpp file

view plaincopy to clipboardprint?
01.bool NetlinkListener :: onDataAvailable (SocketClient * cli)
02. {
03 int socket = cli-> getSocket ();.
. 04 int count;
05. If ((count = recv (socket, mBuffer, sizeof (mBuffer), 0)) <0) {
. 06 return false;
07.}
08 / / This buffer in the form of: add @ / devices/platform/s3c2410-ohci/usb1/1-1/1-1.2
. 09 NetlinkEvent * evt = new NetlinkEvent ();
10. If (! Evt-> decode (mBuffer, count)) {
. 11 goto out;
12.}
13.
14 onEvent (evt);.
15.out:
. 16 delete evt;
. 17 return true;
18.}
bool NetlinkListener :: onDataAvailable (SocketClient * cli)
{
int socket = cli-> getSocket ();
int count;
if ((count = recv (socket, mBuffer, sizeof (mBuffer), 0)) <0) {
return false;
}
/ / Here buffer in the form of: add @ / devices/platform/s3c2410-ohci/usb1/1-1/1-1.2
NetlinkEvent * evt = new NetlinkEvent ();
if (! evt-> decode (mBuffer, count)) {
goto out;
}

onEvent (evt);
out:
delete evt;
return true;
} Here decode calls for


view plaincopy to clipboardprint?
01. / / Android-2.3/system/core/libsysutils/src/NetlinkEvent.cpp loop buffer where data is extracted
02.bool NetlinkEvent :: decode (char * buffer, int size) {
03. While (s 04. If (first) {
05 .......
. 06 for (p = s; * p = '@';! P + +);
07 mPath = strdup (p);.
08 ........
09.} Else {
10. If (! Strncmp (s, "ACTION =", strlen ("ACTION ="))) {
. 11 char * a = s + strlen ("ACTION =");
12. If (! Strcmp (a, "add"))
. 13 mAction = NlActionAdd;
14. Else if (! Strcmp (a, "remove"))
. 15 mAction = NlActionRemove;
16. Else if (! Strcmp (a, "change"))
. 17 mAction = NlActionChange;
18.} Else if (! Strncmp (s, "SEQNUM =", strlen ("SEQNUM =")))
. 19 mSeq = atoi (s + strlen ("SEQNUM ="));
20. Else if (! Strncmp (s, "SUBSYSTEM =", strlen ("SUBSYSTEM =")))
. 21 mSubsystem = strdup (s + strlen ("SUBSYSTEM ="));
22. Else
23 mParams [param_idx + +] = strdup (s);.
24.}
25.}
26.}
/ / Android-2.3/system/core/libsysutils/src/NetlinkEvent.cpp loop buffer where data is extracted
bool NetlinkEvent :: decode (char * buffer, int size) {
while (s if (first) {
......
for (p = s; * p = '@';! p + +);
mPath = strdup (p);
.......
} Else {
if (! strncmp (s, "ACTION =", strlen ("ACTION ="))) {
char * a = s + strlen ("ACTION =");
if (! strcmp (a, "add"))
mAction = NlActionAdd;
else if (! strcmp (a, "remove"))
mAction = NlActionRemove;
else if (! strcmp (a, "change"))
mAction = NlActionChange;
} Else if (! Strncmp (s, "SEQNUM =", strlen ("SEQNUM =")))
mSeq = atoi (s + strlen ("SEQNUM ="));
else if (! strncmp (s, "SUBSYSTEM =", strlen ("SUBSYSTEM =")))
mSubsystem = strdup (s + strlen ("SUBSYSTEM ="));
else
mParams [param_idx + +] = strdup (s);
}
}
OnEvent} function continues to call, there will be two calls onEvent function

1: vold 2: is netd program. Similar to both. Look under vold


view plaincopy to clipboardprint?
01. / / Android-2.3/system/vold/NetlinkHandler.cpp
02.void NetlinkHandler :: onEvent (NetlinkEvent * evt) {
03 VolumeManager * vm = VolumeManager :: Instance ();.
. 04 const char * subsys = evt-> getSubsystem ();
05.
06. If (! Strcmp (subsys, "block")) {
. 07 vm-> handleBlockEvent (evt);
08.} Else if (! Strcmp (subsys, "usb_composite")) {
. 09 vm-> handleUsbCompositeEvent (evt);
10 / / There is no usb, we add one, as
3 lines11.} Else if (! Strcmp (subsys, "usb")) {
12 vm-> handleUsbEvent (evt);. / / This function needs to be added in the Event class
13.}
14.}
/ / Android-2.3/system/vold/NetlinkHandler.cpp
void NetlinkHandler :: onEvent (NetlinkEvent * evt) {
VolumeManager * vm = VolumeManager :: Instance ();
const char * subsys = evt-> getSubsystem ();

if (! strcmp (subsys, "block")) {
vm-> handleBlockEvent (evt);
} Else if (! Strcmp (subsys, "usb_composite")) {
vm-> handleUsbCompositeEvent (evt);
/ / There is no usb, we add one, as
3 lines} Else if (! Strcmp (subsys, "usb")) {
vm-> handleUsbEvent (evt); / / This function needs to be added in the Event class
}
}

view plaincopy to clipboardprint?
01 / / at / Android-2.3/system/vold/VolumeManager.h
02.class VolumeManager {
03.public:
04 / / add the following line
05 void handleUsbEvent (NetlinkEvent * evt);.
06.}
/ /
In / Android-2.3/system/vold/VolumeManager.hclass VolumeManager {
public:
/ / Add the following line
void handleUsbEvent (NetlinkEvent * evt);
}


view plaincopy to clipboardprint?
01 / / file Android-2.3/system/vold/VolumeManager.cpp, increasing function
02.void VolumeManager :: handleUsbEvent (NetlinkEvent * evt) {
. 03 const char * devtype = evt-> findParam ("DEVTYPE");
. 04 char * cmd;
05 / / the following judgments device type, and whether the add mode. Corresponding operation
06. If (1 == evt-> getAction () &&! Strcmp (devtype, "usb_device")) {
07. / * Call usb mode switch function * /
08 asprintf. (& Cmd, "usb_modeswitch-W-c / 12d1 \ \: 1da1"); / / There should call an external shell script, here is the test program. So write dead
09 system (cmd);.
10 free (cmd);.
11.}
12.}


Reply:
3G card in the detailed solution development board (for most 3G card)
http://blog.csdn.net/ipromiseu/article/details/5154004
Reply:
Huawei EC122 transplant
on HiSi3110E http://blog.csdn.net/linfeng999/article/details/5846474
Reply:
usb_modeswitch Chinese README
http://blog.csdn.net/tanxs001/article/details/5118986
Reply:
Cross-compiler usb_modeswitch
http://hi.baidu.com/wugangseu/blog/item/cdbab0943b74a8027bf480bc.html

 
Due to the drive-in 3G module on the board, so to cross compile usb_modeswitch
usb_modeswitch what kind of a thing is not to say, in the usb_modeswitch howto it very clear the




















Reply:
















Reply:



Reply:








Reply:




Reply:

Reply:


Reply:

Reply:


Reply:

No comments:

Post a Comment