什么是oorg野心勃勃的女人hgwl?

Jehovah’s Witnesses | News | JW.ORG
For the past three years, Thai officials have been using the Witnesses’ publications to address social issues.
News Alerts
News Releases
Jehovah’s Witnesses in Colombia received two awards that recognized their efforts in the Colombian Sign Language community.
Legal Developments and Human Rights
The Gwangju Appellate Court decided “not guilty” for three young men who refused military service. The nation is waiting on the highest court to render its decision.
Quick Links
Accessibility Mode
Display Only Sign Languages
Website Available
Publication Download OnlyFrom ThinkWiki
This is a Ericsson WWAN Adapter that is installed in a Mini-PCI Express slot
Specific versions of this card may come pre-configured for a certain carrier (AT&T)
Chipset: Ericsson F3507g
USB ID: 0bdb:1900
USB ID: 0bdb:1902
WCDMA 0MHz
GSM/GPRS/EDGE 850/900/MHz
Download up to 7.2Mbps
Upload up to 2.0Mbps
Ericsson F3507g WWAN Adapter
Option PN 43R9152 (AT&T)
FRU 43Y6537 (AT&T)
FRU 43Y6513 (Other)
Forumthread with
(scroll down):
better performance and stability, fixed many bugs from the previous version
Unlike other manufactures (Dell, Toshiba etc.) Lenovo does not release the firmware update utility public, so the only way to get a newer version F3507g is by replacing the existing one.
Here are some basics about Ericsson F3507g MiniPCIe WWAN/GPS card (USB ID 0bdb:1900 and 0bdb:1902):
the card will not work without an inserted SIM, even the GPS function. If you want to use just GPS, any SIM would work, even if it is not attached to any active account with any GSM provider.
the card provides three CDC ACM interfaces (CONFIG_USB_ACM=m), two CDC WDM interfaces (CONFIG_USB_WDM=m) and one CDC Ethernet interface (CONFIG_USB_NET_CDCETHER=m), and identifies them as
for n in `ls /sys/class/*/*{ACM,wdm,usb0}*/device/interface`;do echo $(echo $n|awk -F '/' '{print $5}') : $(cat $n);done
usb0 : Ericsson F3507g Mobile Broadband Minicard Network Adapter
ttyACM0 : Ericsson F3507g Mobile Broadband Minicard Modem
ttyACM1 : Ericsson F3507g Mobile Broadband Minicard Data Modem
ttyACM2 : Ericsson F3507g Mobile Broadband Minicard GPS Port
cdc-wdm0 : Ericsson F3507g Mobile Broadband Minicard Device Management
cdc-wdm1 : Ericsson F3507g Mobile Broadband Minicard PC SC Port
apparently, for a while option USB-serial driver had claimed USB ID 0bdb:1900, but this was wrong, and as of kernel 2.6.28.9 that commit was reversed. If instead of /dev/ttyACM* you see /dev/ttyUSB*, it means that option module is loaded. You may need to blacklist it to make sure it doesn't happen.
Support for the CDC Ethernet interface appears only in kernel 2.6.28.8. But if your kernel is older, you can still connect to the net using one of the "Modem" interfaces. As of kernel 2.6.33 it is named wwan0 rather than usb0.
As Ericsson's naming scheme suggests, idealy we would use /dev/cdc-wdm0 for controlling the card, usb0 (or wwan0) as a network device, /dev/ttyACM0 or /dev/ttyACM1 as a modem, and /dev/ttyACM2 for GPS. This works for manual testing, but unfortunately, due to
of chat, does not play very well in scripts. So, instead of /dev/cdc-wdm0, for controlling the card we will use /dev/ttyACM1.
First, check whenever the SIM is protected by PIN by sending
to /dev/ttyACM1. You can do it with any terminal terminal program like cu or minicom. If the answer is
+CPIN: READY
then the SIM is unlocked. If the answer is
+CPIN: SIM PIN
you need first to unlock it by sending
AT+CPIN="YOUR-PIN"
to /dev/ttyACM1. Now the card can be turned on by sending
to /dev/ttyACM1. The answer should be
Don't try to do anything until you see it. To force GSM-only connection, send
to /dev/ttyACM1. To force WCDMA-only connection, send
to /dev/ttyACM1.
To put the card into energy-saving mode (this is the default), you can send
to /dev/ttyACM1. To remove all power from the card, send
to /dev/ttyACM1. Be carefull with the last command. It turns the card completely off, and it will no longer accept any AT-commands before the hard reset. To physically reset the card flip the wireless switch off, and then on. You can do the same by sending echo 0 & /sys/devices/platform/thinkpad_acpi/rfkill/rfkill0/state (to turn off) and then echo 1 & /sys/devices/platform/thinkpad_acpi/rfkill/rfkill0/state (to turn on).
Once the card is turned on, there are two ways to connect to the net. The first one is just to use the card as any "normal" GPRS modem and start pppd daemon on one of /dev/ttyACM*. The other way is to use CDC Ethernet interface. It is supposed to be more efficient, but it requires a pretty recent (&=2.6.28.8) kernel.
For the first approach, the easiest way to do it is to use wvdial. For example, to connect to AT&T Wireless network, your /etc/wvdial.conf would have to be something like this
[Dialer 3G]
Modem = /dev/ttyACM0
Init1 = AT+CGDCONT=1,"IP","proxy"
Stupid mode = 1
phone= *99#
Username = *
Password = *
Note: if you are using a SIM from a different mobile provider, you may need to change the access point name (APN) "proxy" in Init1 string and Username/Password to something else. You can find the appropriate APN .
works for kernels &=2.6.28.8. Configure the APN by sending
AT+CGDCONT=1,"IP","proxy"
to /dev/ttyACM1. Instead of "proxy" you may need to use to something else. Find the appropriate APN . To initiate the connection, send
AT*ENAP=1,1
to /dev/ttyACM1. Now, if your wireless provider lets you in, you are connected. Launch dhclient
dhclient usb0
and start surfing the net (or use wwan0 for kernels &= 2.6.33). To disconnect, send
to /dev/ttyACM1.
Once the card is turned on, we can use it to get GPS info via NMEA protocol. First, you have to configure the a few NMEA options. It is done by sending
AT*E2GPSCTL=X,Y,Z
to /dev/ttyACM1. Here
X can be 0 (NMEA stream turned off) or 1 (NMEA stream turned on)
Y can be an integer form 1 to 60, and sets the frequency of how often the card emits the NMEA sentences
Z can be 0 (DGPS is turned off) or 1 (DGPS is turned on)
so, to configure the GPSr to update every 5 seconds, and turn DGPS on, you would send
AT*E2GPSCTL=1,5,1
to /dev/ttyACM1. Once the GPSr is configured, we can get the NMEA stream on /dev/ttyACM2 by sending
AT*E2GPSNPD
to /dev/ttyACM2. Once you do that, /dev/ttyACM2 will no longer accept any new AT-commands. But you still can change the the behavior of the NMEA stream by sending the appropriate
AT*E2GPSCTL=X,Y,Z
to /dev/ttyACM1. Now you can read the NMEA stream by saying
cat /dev/ttyACM2
or better yet, start gpsd interface on /dev/ttyACM2.
Note: There is a now a sourceforge project dedicated to the Ericsson Mobile Broadband modules. Gps control sw that does the above automatically is available and also a graphical user interface. Details are available on the .
Install the packages
apt-get install sysfsutils gpsd wvdial
In order to save the power, let us use sysfsutils to completely power off the WWAN card on boot. Append the following line to /etc/sysfs.conf
devices/platform/thinkpad_acpi/rfkill/rfkill0/state = 0
It will power down the card on boot, but when the laptop wakes from sleep, in some cases the card is powered up again. To re-apply these settings on wake-up, create a script named /etc/pm/sleep.d/10sysfsutils:
case $1 in
(hibernate|suspend)
(thaw|resume)
/etc/init.d/sysfsutils start
echo "somebody is calling me totally wrong."
Don't forget to chmod a+x /etc/pm/sleep.d/10sysfsutils. Create a file called /usr/local/etc/F3507g containing the following:
USB_ID="0bdb:1900"
APN="proxy"
GPSDPID="/var/run/gpsd.pid"
RFKILL_DEVICE=$(for n in /sys/devices/platform/thinkpad_acpi/rfkill/rfkill*; do if [ "$(cat $n/name)" = "tpacpi_wwan_sw" ]; then echo $n/ done)
CONTROL_DEVICE () {
echo /dev/$(for n in /sys/class/tty/ttyACM*/device/do if [ "$(cat $n)" = "Ericsson F3507g Mobile Broadband Minicard Data Modem" ]; then echo $n|awk -F '/' '{print $5}'; done)
GPS_DEVICE () {
echo /dev/$(for n in /sys/class/tty/ttyACM*/device/do if [ "$(cat $n)" = "Ericsson F3507g Mobile Broadband Minicard GPS Port" ]; then echo $n|awk -F '/' '{print $5}'; done)
powerup_F3507g () {
echo -n "Powering up F3507g card.."
echo 1 & $RFKILL_DEVICE
while [ -z "$(lsusb -d $USB_ID)" ]; do sleep 0.5; echo -n "."; done
echo "done"
echo -n "Turning on F3507g card..."
if [ -n "$PIN" ]; then
/usr/sbin/chat -v "" "AT+CPIN?" "SIM PIN" "AT" "OK" "AT+CPIN=\"$PIN\"" "OK" & $(CONTROL_DEVICE) & $(CONTROL_DEVICE)
/usr/sbin/chat -v "" "AT+CPIN?" "READY" "AT+CFUN=1" "+PACSP" "AT" "OK" & $(CONTROL_DEVICE) & $(CONTROL_DEVICE)
echo "done"
powerdown_F3507g () {
echo -n "Turning off F3507g card..."
/usr/sbin/chat -v "" "AT+CFUN=4" "OK" & $(CONTROL_DEVICE) & $(CONTROL_DEVICE)
echo "done"
echo -n "Powering down F3507g card.."
echo 0 & $RFKILL_DEVICE
while [ -n "$(lsusb -d $USB_ID)" ]; do sleep 0.5; echo -n "."; done
echo "done"
configure_GPS () {
/usr/sbin/chat -v "" "AT*E2GPSCTL=$1,$2,$3" "OK" & $(CONTROL_DEVICE) & $(CONTROL_DEVICE)
turnon_GPS () {
echo -n "Starting NMEA stream on $(GPS_DEVICE)..."
configure_GPS 1 1 1
/usr/sbin/chat -v "" "AT*E2GPSNPD" "GPGGA" & $(GPS_DEVICE) & $(GPS_DEVICE)
start-stop-daemon --start --exec /usr/sbin/gpsd -- -P $GPSDPID $(GPS_DEVICE)
echo "done"
turnoff_GPS () {
echo -n "Stopping NMEA stream on $(GPS_DEVICE)..."
start-stop-daemon --stop --pidfile $GPSDPID
configure_GPS 0 1 0
echo "done"
turnoff_F3507g
turnon_WWAN () {
echo -n "Starting WWAN connection..."
/usr/sbin/chat -v "" "AT+CGDCONT=1,\"IP\",\"$APN\"" "OK" "AT*ENAP=1,1" "OK" & $(CONTROL_DEVICE) & $(CONTROL_DEVICE)
echo "done"
turnoff_WWAN () {
echo -n "Stopping WWAN connection..."
/usr/sbin/chat -v "" "AT*ENAP=0" "OK" & $(CONTROL_DEVICE) & $(CONTROL_DEVICE)
echo "done"
turnoff_F3507g
turnoff_F3507g () {
[ -z $(grep gps /etc/network/run/ifstate) ] && \
[ -z $(grep usb0 /etc/network/run/ifstate) ] && \
[ -z $(grep 3G /etc/network/run/ifstate) ] && \
ifdown F3507g
Give the correct USB_ID and PIN, and find the APN for your wireless provider . Append the following lines to your /etc/network/interfaces file
iface F3507g inet manual
up . /usr/local/etc/F3507g; powerup_F3507g
down . /usr/local/etc/F3507g; powerdown_F3507g
iface 3G inet wvdial
pre-up ifup F3507g
post-down . /usr/local/etc/F3507g; turnoff_F3507g
provider 3G
iface gps inet manual
up . /usr/local/etc/F3507g; ifup F3507g; turnon_GPS
down . /usr/local/etc/F3507g; turnoff_GPS
iface usb0 inet dhcp
pre-up . /usr/local/etc/F3507g; ifup F3507g; turnon_WWAN
post-down . /usr/local/etc/F3507g; turnoff_WWAN
Configure /etc/wvdial.conf to look like this:
[Dialer 3G]
Modem = /dev/ttyACM0
Init1 = AT+CGDCONT=1,"IP","proxy"
Stupid mode = 1
phone= *99#
Username = *
Password = *
Note: you may need to change the access point name (APN) "proxy" in Init1 string and Username/Password to something else. Find the appropriate APN .
Now broadband connection could be started in the same way as you start any other network interface, just by saying ifup usb0 (or ifup 3G, if connecting via pppd). To shut it down, say ifdown usb0 (or ifdown 3G). Similarly, GPS interface is started by ifup gps and turned off by ifdown gps. Once you get a fix, you can use your favourite GPS mapping application like .
The "cold start" seems to take quite a bit however, and sometimes it cannot get a fix if indoors.
script is a simpler alternative to the "Scripting everything" section. It has slightly different chat scripts that establish a WWAN connection more reliably, even in case of a partially-initialized modem. It retries as often as necessary until the WWAN connection is really established. The downside is that it doesn't (yet) enable GPS. To use it, simply download wwan-helper:
git clone /vog/wwan-helper.git /etc/wwan-helper
and configure your APN and PIN in /etc/wwan-helper/config:
APN=web.vodafone.de
Finally, add wwan-helper to the pre-up and post-down hooks:
ln -s ../../wwan-helper/wwan-helper /etc/network/if-pre-up.d/wwan-helper
ln -s ../../wwan-helper/wwan-helper /etc/network/if-post-down.d/wwan-helper
That way, no special settings in /etc/network/interfaces are needed, just the plain standard entry:
iface wwan0 inet dhcp
(Reminder from the
section: If you have a Linux kernel 3.2 or older, use usb0 instead of wwan0.)
Work is ongoing to add support for Ericsson Mobile Broadband Modules to GNOME NetworkManager / modem-manager. More information is available on the
The F3507g card (in a ThinkPad ) works out of the box on Fedora 11. No configuration is needed beyond setting the data plan provider in the nm-applet GUI.
Using mbm-gpsd gps works flawlessly with the F3507g on Karmic Koala with modemmanager packages from , the mbm-gpsd installed by source using the description from
and knowing the PIN of your SIM card.
You can use
to receive and send SMS.
After installing wammu (with the usual apt-get install wammu or whatever), choose to configure it "Manually":
port=/dev/ttyACM0
connection=at
(credits: )
Sony Ericsson F3507g configuration
While AT+CFUN=* and AT+CPIN=* are pretty standard commands for wireless modems and are well-documented, it appears that the commands AT*E2GPSCTL and AT*E2GPSNPD are unique to the Ericsson F3507g card. All credit for discovering them goes to "Nickolai Zeldovich" who left a comment in this . I imagine one could find them via a USB sniffer on a working Windows machine (or a Linux machine with Windows running in a virtual machine). Another way to get them is to try to look for "gps" string in Windows drivers. What is interesting, F3507g supports a few other AT-commands with "GPS" substring (you can get all supported AT-commands by sending AT* to /dev/ttyACM1 after activating it with AT+CFUN=1). Anyway, there is a
aiming to document all AT-commands for the Ericsson F3507g card. The project links to a full reference which no longer works. The new link appears to be
Ubuntu 8.10 kernel suffers from the "option" regression mentioned above. However both CDC ACM and CDC Ethernet interfaces are treated correctly by Ubuntu 9.04 kernel.
Playing around with the device under Linux can cause it to disappear under Windows Vista. Issue + Fix described
Under certain circumstances the device may disappear completely from your system or refuse to connect to a network even though everything worked fine up to now. In such a situation one of the following methods could solve the problem:
Use the killswitch to reset the card. Switch all rf devices off, wait about 30s (all wireless leds should be off), switch them on again and wait for the card to appear. Use 'lsusb' to find the device.
Shut down, remove the battery, take out the SIM, clean the SIM slot, insert the SIM and battery and start your Thinkpad again.
Disable the card in the BIOS: go to "Config", "Security", "I/O Port Access" and switch "wireless wan" to "disabled". Save, restart and boot. Then do the same thing again and enable it again.
If the last method doesn't show any success on windows, support will consider your card to be broken and send you a new one while your Thinkpad is still covered by the warranty.
Please note that Linux can revive a locked up card that can't be discovered on windows after using the last method. If even Linux can't find the device it's definitely broken and needs to be replaced.java - javax.servlet.UnavailableException: Missing configuration resource for path /WEB-INF/struts-config.xml - Stack Overflow
to customize your list.
Join the Stack Overflow Community
Stack Overflow is a community of 6.6 million programmers, just like you, helping each other.
J it only takes a minute:
I am new to Struts and I am trying to run a sample login web-application using Struts but I am unable to get the result due to (javax.servlet.UnavailableException: Missing configuration resource for path /WEB-INF/struts-config.xml) the error. I had done everything in configuring struts in eclipse. I even don't no what the exception is? please anyone help me
the errors I am getting are:
javax.servlet.UnavailableException: Missing configuration resource for path /WEB-INF/struts-config.xml
at org.apache.struts.action.ActionServlet.splitAndResolvePaths(ActionServlet.java:1872)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:683)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:356)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1213)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
index.jsp:
&form action="login.do"&
&td&Username&/td&
&td&&input type = "text" name = "username" maxlength = "25"&&/td&
&td&Password&/td&
&td&&input type = "password" name = "password" minlength = "8" maxlength = "16"&&/td&
colspan = "2" align = "center"&&button type = "submit" name = "submit"&Submit&/button&
&button type = "reset"
name = "reset"&Reset&/button&&/td&
LoginForm.java:
import org.apache.struts.action.ActionF
import org.apache.struts.action.A
import org.apache.struts.action.ActionM
import org.apache.struts.action.ActionF
import javax.servlet.http.HttpServletR
import javax.servlet.http.HttpServletR
public class LoginAction extends Action {
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res)
System.out.println("test");
LoginForm login = (LoginForm)
String uname=login.getUname();
String pass=login.getPass();
if(uname=="admin" && pass =="test")
return mapping.findForward("success");
return mapping.findForward("failure");
LoginAction.java:
import org.apache.struts.action.ActionF
import org.apache.struts.action.A
import org.apache.struts.action.ActionM
import org.apache.struts.action.ActionF
import javax.servlet.http.HttpServletR
import javax.servlet.http.HttpServletR
public class LoginAction extends Action {
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res)
System.out.println("test");
LoginForm login = (LoginForm)
String uname=login.getUname();
String pass=login.getPass();
if(uname=="admin" && pass =="test")
return mapping.findForward("success");
return mapping.findForward("failure");
config-struts.xml:
&?xml version="1.0" encoding="UTF-8" ?&
&struts-config&
&form-beans&
&form-bean name="loginRequest" type=".LoginForm"/&
&/form-beans&
&global-forwards&
&forward name="success"
path="/success.jsp"/&
&/global-forwards&
&action-mappings&
&action path="/login" type=".LoginAction" name="loginRequest"&
&forward name="success" path="/success.jsp"/&
&forward name="failure" path="/failure.jsp"/&
&/action-mappings&
&/struts-config&
&?xml version="1.0" encoding="UTF-8"?&
&web-app version="3.0" xmlns="/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="/xml/ns/javaee /xml/ns/javaee/web-app_3_0.xsd"&
&servlet-name&action&/servlet-name&
&servlet-class&org.apache.struts.action.ActionServlet&/servlet-class&
&init-param&
&param-name&config&/param-name&
&param-value&/WEB-INF/struts-config.xml&/param-value&
&/init-param&
&init-param&
&param-name&debug&/param-name&
&param-value&2&/param-value&
&/init-param&
&init-param&
&param-name&detail&/param-name&
&param-value&2&/param-value&
&/init-param&
&load-on-startup&2&/load-on-startup&
&/servlet&
&servlet-mapping&
&servlet-name&action&/servlet-name&
&url-pattern&*.do&/url-pattern&
&/servlet-mapping&
&session-config&
&session-timeout&
&/session-timeout&
&/session-config&
&welcome-file-list&
&welcome-file&index.jsp&/welcome-file&
&/welcome-file-list&
&/web-app&
Make sure struts-config.xml resides in WEB-INF folder. Similarly, hibernate.cfg.xml should also be at the appropriate place(if you are using it).
4,19221742
You are configured the web application to use struts-config.xml
&init-param&
&param-name&config&/param-name&
&param-value&/WEB-INF/struts-config.xml&/param-value&
&/init-param&
but there's not the file with such name in the specified folder. Make sure the file exist there or if you use another name for the struts configuration file you could change this init param value to reflect the file availability. If you have several configuration files each for the module, you could use a comma to separate names.
You need to add the servlet-api.jar from the apache lib folder. You need to include the struts.xml folder in src folder under java resources.
2,73032142
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
rev .24918
Stack Overflow works best with JavaScript enabled

我要回帖

更多关于 野心勃勃的近义词 的文章

 

随机推荐