3hso_09-1tarG

所属分类:Linux/Unix编程
开发工具:Unix_Linux
文件大小:837KB
下载次数:6
上传日期:2012-06-09 20:51:38
上 传 者squeezes
说明:  linux系统下3G模块USBB串口驱动程序源代码,附pdf文档
(3G the module USBB serial driver source code in the linux system attached pdf document)

文件列表:
3hso_09-1tarG\hso-0.9\connect.sh (1370, 2008-01-28)
3hso_09-1tarG\hso-0.9\debian\changelog (1257, 2008-02-15)
3hso_09-1tarG\hso-0.9\debian\compat (2, 2007-12-13)
3hso_09-1tarG\hso-0.9\debian\control (1335, 2008-02-15)
3hso_09-1tarG\hso-0.9\debian\control.modules.in (918, 2008-02-15)
3hso_09-1tarG\hso-0.9\debian\copyright (1393, 2008-02-05)
3hso_09-1tarG\hso-0.9\debian\docs (7, 2008-02-15)
3hso_09-1tarG\hso-0.9\debian\examples (39, 2008-02-15)
3hso_09-1tarG\hso-0.9\debian\hso-doc.docs (53, 2008-02-13)
3hso_09-1tarG\hso-0.9\debian\hso-ppp.dirs (10, 2008-02-13)
3hso_09-1tarG\hso-0.9\debian\hso-ppp.docs (11, 2008-02-13)
3hso_09-1tarG\hso-0.9\debian\hso-ppp.manpages (15, 2008-02-13)
3hso_09-1tarG\hso-0.9\debian\hso-source.links (77, 2008-01-08)
3hso_09-1tarG\hso-0.9\debian\hso-sources.doc (7, 2008-02-15)
3hso_09-1tarG\hso-0.9\debian\hso-udev.dirs (10, 2008-02-05)
3hso_09-1tarG\hso-0.9\debian\hso-udev.manpages (14, 2008-02-15)
3hso_09-1tarG\hso-0.9\debian\hso-udev.postinst (1066, 2008-02-13)
3hso_09-1tarG\hso-0.9\debian\hso-udev.postrm (498, 2008-02-15)
3hso_09-1tarG\hso-0.9\debian\hso-udev.preinst (644, 2008-02-07)
3hso_09-1tarG\hso-0.9\debian\rules (4082, 2008-02-15)
3hso_09-1tarG\hso-0.9\dial.cht (100, 2008-01-28)
3hso_09-1tarG\hso-0.9\doc\SOP-MIG-WP-Linux_driver_installation-V003ext.pdf (960609, 2007-12-15)
3hso_09-1tarG\hso-0.9\hso.c (101136, 2008-01-28)
3hso_09-1tarG\hso-0.9\hso.h (15435, 2008-01-28)
3hso_09-1tarG\hso-0.9\hso_connect.sh (6563, 2008-01-28)
3hso_09-1tarG\hso-0.9\init.cht (199, 2008-01-28)
3hso_09-1tarG\hso-0.9\Makefile (3453, 2008-01-28)
3hso_09-1tarG\hso-0.9\ppp\etc\chatscripts\base-prep (213, 2008-02-12)
3hso_09-1tarG\hso-0.9\ppp\etc\chatscripts\cmu200-chat.sh (382, 2007-09-14)
3hso_09-1tarG\hso-0.9\ppp\etc\chatscripts\cmu200-prep (324, 2007-09-14)
3hso_09-1tarG\hso-0.9\ppp\etc\chatscripts\enterpin (129, 2008-02-12)
3hso_09-1tarG\hso-0.9\ppp\etc\chatscripts\goonline (133, 2008-02-12)
3hso_09-1tarG\hso-0.9\ppp\etc\chatscripts\o2-prep (205, 2008-02-12)
3hso_09-1tarG\hso-0.9\ppp\etc\chatscripts\proximus-prep (217, 2008-02-12)
3hso_09-1tarG\hso-0.9\ppp\etc\chatscripts\tmo-prep (214, 2008-02-12)
3hso_09-1tarG\hso-0.9\ppp\etc\chatscripts\vodafone-prep (212, 2008-02-12)
3hso_09-1tarG\hso-0.9\ppp\etc\chatscripts\wwan-chat.sh (440, 2008-01-17)
3hso_09-1tarG\hso-0.9\ppp\etc\ppp\peers\base (892, 2008-01-17)
... ...

Readme for the hso driver ========================= Contents: --------- 1) using the driver for a ppp connection 2) using the driver as a network interface 3) dynamic suspend/resume implementation 1) Using the driver for a ppp connection ======================================== When this driver is loaded you can use the /dev/ttyHS3 in pppd to setup the connection. 2) Using the driver as a network interface ========================================== When you setup the connection with a chat to /dev/ttyHS0 you can ifconfig up the hso0 network interface. 3) Dynamic suspend/resume implementation ======================================== This driver has dynamic suspend/resume implemented using the autopm interface provided from kernel 2.6.22. When CONFIG_USB_SUSPEND was enabled in your kernel and the device supports remote wakeup, you can use this functionality. By default it is disabled due to its experimental status, you can enable it by setting the module parameter 'enable_autopm' to 1. You can do this when you insmod the module (eg insmod hso.ko enable_autopm=1) or you can change the default in modules.conf. The autosuspend is implemented in the USB core, and is not enabled by default since no devices support it in the time this is written. You can enable this by changing the appropriate values in the files within the /sys/bus/usb/devices/.../power/ directory (where the "..." is the device id). The relevant files in that directory are: - wakeup: this should contain the word "enabled" if the device supports remote wakeup, if it doesn't the autosuspend will be disabled. - level: there are 3 modes: - "on": the device is always on, autosuspend is disabled - "suspend": the device is suspended, but can be woken up by remote wakeup - "auto": autosuspend is enabled You can set this mode by echo-ing the word to that file, eg to enable autosuspend do: 'echo "auto" > /sys/bus/usb/devices/.../power/level' (where "..." is the device id) - autosuspend: the number of seconds before autosuspend is triggered after the last time the device was busy. If set to -1, autosuspend is disabled. If you enable autosuspend, it is strongly recommended to not put a value lower than 5 in this file. You can set this delay by echo-ing the word to that file, eg to set autosuspend to kick in after 10 seconds do: 'echo "10" > /sys/bus/usb/devices/.../power/autosuspend' (where "..." is the device id) When trying to script it so that the autosuspend is enabled, you will need the usb device id, this however can change values, that is why an entry is created in the /proc filesystem where you can easily fetch that id. Assuming you only have 1 data card, the network interface will be hso0, and the proc file will be: /proc/hso/devices/hso0/ttys, and in that file a value "device_id:" will tell you which device. eg: if you want to add autosuspend after 5 seconds in your script, do something like this: echo 5 > /sys/bus/usb/devices/`grep device_id /proc/hso/devices/hso0/ttys | awk '{print $2}'`/power/autosuspend

近期下载者

相关文件


收藏者