{"id":255,"date":"2007-03-21T17:44:00","date_gmt":"2007-03-21T17:44:00","guid":{"rendered":"http:\/\/marvelliu.wordpress.com\/2007\/03\/21\/e2%e7%9a%84linux%e6%94%af%e6%8c%81"},"modified":"2007-03-21T17:44:00","modified_gmt":"2007-03-21T17:44:00","slug":"e2%e7%9a%84linux%e6%94%af%e6%8c%81","status":"publish","type":"post","link":"https:\/\/marvelliu.space\/?p=255","title":{"rendered":"E2\u7684linux\u652f\u6301"},"content":{"rendered":"<p>\u4ee5\u524d\u53ea\u770b\u5230\u4e86moto\u5b98\u65b9\u7f51\u7ad9\u4e2dwin\u4e0b\u9762E2\u7684sdk\uff0c\u6ca1\u6709\u770b\u5230linux\u4e0b\u7684\u652f\u6301\uff0c\u8bef\u4ee5\u4e3alinux\u5bf9E2\u7684\u652f\u6301\u4e0d\u591f\u3002\u4eca\u5929\u770b\u4e86<a href=\"http:\/\/wiki.openezx.org\/\">OpenEZX<\/a>\u624d\u77e5\u9053\uff0clinux\u4e0b\u9762\u7684\u786e\u5f88\u65b9\u4fbf\u3002<\/p>\n<p>1 USB Modem\u7684\u652f\u6301<\/p>\n<p>a) \u52a0\u8f7dcdc-acm\uff1amodprobe cdc-acm<br \/>b) E2\u4ee5modem\u7684\u5f62\u5f0f\u63a5\u5165\u7535\u8111\uff0c\u6267\u884ccat \/proc\/bus\/usb\/devices\uff0c\u4f1a\u6709\u4e0b\u9762\u4e00\u6bb5\uff1a<\/p>\n<p>T:  Bus=05 Lev=01 Prnt=01 Port=04 Cnt=01 Dev#=  5 Spd=480 MxCh= 0<br \/>D:  Ver= 2.00 Cls=02(comm.) Sub=02 Prot=00 MxPS=64 #Cfgs=  1<br \/>P:  Vendor=22b8 ProdID=3802 Rev= 0.00<br \/>S:  Manufacturer=Motorola<br \/>S:  Product=Motorola USB Modem<br \/>C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA<br \/>I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=cdc_acm<br \/>E:  Ad=82(I) Atr=03(Int.) MxPS=  16 Ivl=64ms<br \/>I:  If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm<br \/>E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms<br \/>E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms<\/p>\n<p>\u4e0b\u9762\u5c31\u53ef\u4ee5\u7528minicom\u8fde\u63a5\u4e86\uff0c\u7aef\u53e3\u4e3a\/dev\/ttyACM0\u3002<\/p>\n<p>2 USB Net<\/p>\n<p>a) \u52a0\u8f7dusbnet\uff1amodprobe usbnet<br \/>b) E2\u4ee5usbnet\u7684\u5f62\u5f0f\u63a5\u5165\u7535\u8111\uff0c\u6267\u884ccat \/proc\/bus\/usb\/devices\uff0c\u4f1a\u6709\u4e0b\u9762\u4e00\u6bb5\uff1a<\/p>\n<p>T:  Bus=05 Lev=01 Prnt=01 Port=04 Cnt=01 Dev#=  6 Spd=480 MxCh= 0<br \/>D:  Ver= 2.00 Cls=02(comm.) Sub=02 Prot=00 MxPS=64 #Cfgs=  1<br \/>P:  Vendor=22b8 ProdID=6027 Rev= 0.00<br \/>S:  Manufacturer=Motorola<br \/>S:  Product=Motorola USBLAN<br \/>C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA<br \/>I:  If#= 0 Alt= 0 #EPs= 3 Cls=02(comm.) Sub=0a Prot=00 Driver=zaurus<br \/>E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms<br \/>E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms<br \/>E:  Ad=82(I) Atr=03(Int.) MxPS=  16 Ivl=64ms<\/p>\n<p>c) \u521d\u59cb\u5316\u7f51\u7edc\u63a5\u53e3\uff1a<br \/>ifconfig usb0 192.168.1.1 netmask 255.255.255.0 mtu 900<\/p>\n<p>d) \u767b\u5f55\uff1a<br \/>telnet 192.168.1.2<\/p>\n<p>3 \u5185\u5b58\u5361\u5f62\u5f0f<br \/>\u8fd9\u79cd\u60c5\u51b5\u5c31\u4e0d\u8bf4\u4e86\uff0c\u548c\u63d2U\u76d8\u6ca1\u4ec0\u4e48\u533a\u522b\uff0c\u76f4\u63a5mount\u5373\u53ef\u3002<\/p>\n<p>P.S. E2\u53ea\u80fd\u7528java\u5f00\u53d1\uff0c\u8fd9\u70b9\u5f88\u4e0d\u723d\uff0c\u8fde\u4fee\u6539\u7cfb\u7edf\u65f6\u95f4\u8fd9\u4e48\u7b80\u5355\u7684\u529f\u80fd\u90fd\u65e0\u6cd5\u5b8c\u6210\u3002\u770b\u770b\u80fd\u4e0d\u80fdflashing\u4e00\u4e0b\uff0c\u652f\u6301\u76f4\u63a5\u6267\u884c.sh\u6587\u4ef6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u524d\u53ea\u770b\u5230\u4e86moto\u5b98\u65b9\u7f51\u7ad9\u4e2dwin\u4e0b\u9762E2\u7684sdk\uff0c\u6ca1\u6709\u770b\u5230linux\u4e0b\u7684\u652f\u6301\uff0c\u8bef\u4ee5\u4e3alinux\u5bf9E2\u7684\u652f\u6301\u4e0d\u591f\u3002\u4eca\u5929\u770b\u4e86OpenEZX\u624d\u77e5\u9053\uff0clinux\u4e0b\u9762\u7684\u786e\u5f88\u65b9\u4fbf\u3002 1 USB Modem\u7684\u652f\u6301 a) \u52a0\u8f7dcdc-acm\uff1amodprobe cdc-acmb) E2\u4ee5modem\u7684\u5f62\u5f0f\u63a5\u5165\u7535\u8111\uff0c\u6267\u884ccat \/proc\/bus\/usb\/devices\uff0c\u4f1a\u6709\u4e0b\u9762\u4e00\u6bb5\uff1a T: Bus=05 Lev=01 Prnt=01 Port=04 Cnt=01 Dev#= 5 Spd=480 MxCh= 0D: Ver= 2.00 Cls=02(comm.) Sub=02 Prot=00 MxPS=64 #Cfgs= 1P: Vendor=22b8 ProdID=3802 Rev= 0.00S: Manufacturer=MotorolaS: Product=Motorola USB ModemC:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mAI: If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=cdc_acmE: Ad=82(I) Atr=03(Int.) MxPS= &hellip; <a href=\"https:\/\/marvelliu.space\/?p=255\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;E2\u7684linux\u652f\u6301&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-255","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/posts\/255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/marvelliu.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=255"}],"version-history":[{"count":0,"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/posts\/255\/revisions"}],"wp:attachment":[{"href":"https:\/\/marvelliu.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/marvelliu.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/marvelliu.space\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}