Connection interface
Without implementing Connection interface in our class how we are using the some methods of that interface.
eg.
public class JDBCConnection
public JDBCConnection()
try
Class.forName("com.mysql.jdbc.Driver").newInstance();
con= DriverManager.getConnection("jdbc:mysql://192.168.1.80/bizicommerce","bipin","admin");
st=con.createStatement();
System.out.println("Connection Established");
catch(Exception e)
System.out.println("Exception in connection"+e.getMessage());
Bipin.V
}
Without implementing Connection interface in our
class how we are using the some methods of that interface.Someone else did implement it (in this case: the MySQL staff).
Edit: print the result of con.getClass().getName() to see what class provides the implementation.
Similar Messages
-
Help! with creating a J2ME program using the http connectivity interface
So this is what I have to do using the http connectivity interface:
1.Creating two threads – one for communication (receiving and sending) and the other (main) thread will be for interaction with the user.
2.The main thread will make use of three midlet forms. The first form will ask for web page address (URL) and separately for a delimiter which will separate the words in the URL document, the third form will display the ratio of all symbols on the page and the number of occurrences of the delimiter specified
3.The second thread should perform http connectivity to the WWW, utilise the web page address supplied and connect to the appropriate web page and read its content, count all symbols on the chosen page, count the number of occurrences of the delimiter given as user input on the same form as the web page address, calculate the ratio between the two and pass this information to the first thread to display.
I have many questions but my main concerns are:
*1. How to communicate using HTTP interface within a thread*
*2. What is a delimiter in the context above and how should it be implemented*
I've been thrown in at the deep end with little programming experience with this assignment. If anyone can share a similar example or answer my concerns I'd be more than happy.
Thanks in advance.thelane wrote:
hi thanks for the response.
As I said I have coded in other languages before, but this is a new for me in java. I needed to get it working quickley. Now I can clean up.
I will have a look at method and see how I get on.
ANy similiar examples would be great.
Thanks.I can certainly give you a similar example.
Say you have code such as this:
int a = 10, b = 11;
int temp = 1;
for(int i = 2; i < a; ++i) {
temp *= i;
System.out.println(a + " factorial is " + temp);
temp = 1;
for(int i = 2; i < b; ++i) {
temp *= i;
System.out.println(b + " factorial is " + temp);Each section of code takes the factorial of the current variable an outputs it. The factorial code can be placed within a method to be called more easily, as such:
public void factorial(int num) {
int temp = 1;
for(int i = 2; i < num; ++i) {
temp *= i
System.out.println(num + " factorial is " + temp);
}Then, whenever you need to call it, you can just do so:
int a=10,b=11,c=12;
factorial(a);
factorial(b);
factorial(c); -
Implementing Connection interface
I am implementing my own Connection interface.
Most of my methods are implemented by delegating a "real" Connection object I receive from the JDBC driver, except the "close()" method where I instead of closing the connection return it back to the pool that I created.
Now when I do the following:
ConnectionPoolManager poolMan = ConnectionPoolManager.getInstance();
con = poolMan.getConnection(SI.getDataSourceName());
I get the connection and I can close it using
con.close();
My log4j successfuly reports that connection was returned to the pool.
Now the interesting part.
If I create a statement and the resultset from it and then close the connection using the following code:
st = con.createStatement(resultSetType, resultSetConcurrency);
rs = st.executeQuery(SQL)
rs.getStatement().getConnection().close();
It actually closes connection. It never executes my code that returns the connection back to the pool. I am using JBuilder and when I am tracing the code, it never goes into my Connection implementation.
Any help will be greatly appreciatedYou need to create a ResultSet Manager, just like you did with the Connection interface.
Your problem here is the getConnection() method of the ResultSet interface returns an object that implements the original Connection interface, not one that applies to your purpose. Then, of course, you'll be able to use the original close() method.
When you create the ResulSet manager, overwrite the close() pattern, according to your programming pattern.
Cesar Villalta A.
[email protected] -
Ni-fbus communications cannot connect interface
I am using NI-FBUS Communications Manager 3.2 with a NI PCMCIA-FBUS Series 2 card in a Ricoh R/RL/... series PCMCIA adapter on a desktop computer. I enabled the PCMCIA card via the Interface Configuration Utility. When I start the Comm Manager, I get the following error message:
NI_FBUS Communications Manager cannot connect interface 0 on the fieldbus board 1. Click OK to.....
Windows sees the Ricoh adapter card and the Series 2 card as working properly. If I install the Series 2 card in a laptop, the Comm Manager starts properly. The same series 2 card and Ricoh adapter card has been used in another desktop computer also running XP SP2.
How do I get this combination up and running?I tried the PCMCIA card and adapter card in another computer running XP and NI-FBUS Communications Manager 3.1.1. The combination worked properly; the card was seen and the Comm Manager opened. When Configurator was opened, the device attached to the link was seen.
Is there a compatibility difference between Comm Mgr 3.1.1 and 3.2? -
Traceroute issue- MPLS VPN on directly connected interfaces
I have 2 Catalyst 6509 Switches that Im trying to bring up and MPLS VPN connection between. The loopbacks can ping each other, as well as the directly connected interfaces (the interfaces travel through 2 switches, but no routing etc in between). An OSPF neighbor relationship DOES come up, and the routing tables appear normal. However, the MPLS VPN does NOT come up.
After further review, I found that the routing tables are correct on either side for the loopbacks (public addresses X’d out on first 3 octets):
SWITCH A:
Bryan-26th-CAT-2#sh ip route 10.255.2.2
Routing entry for 10.255.2.2/32
Known via "ospf 23532", distance 110, metric 2, type intra area
Last update from X.X.X.70 on Vlan65, 00:10:25 ago
Routing Descriptor Blocks:
* X.X.X.70, from 10.255.2.2, 00:10:25 ago, via Vlan65
Route metric is 2, traffic share count is 1
SWITCH B:
DAL-COLO-6509-1#sh ip route 10.255.2.3
Routing entry for 10.255.2.3/32
Known via "ospf 23532", distance 110, metric 2, type intra area
Last update from X.X.X.69 on Vlan65, 02:26:50 ago
Routing Descriptor Blocks:
* X.X.X.69, from 10.255.2.3, 02:26:50 ago, via Vlan65
Route metric is 2, traffic share count is 1
This is exactly the same for the directly connected interfaces on VLAN65. (X.X.X.69 and X.X.X.70). The ARP cache also shows to be correct:
SWITCH A:
Bryan-26th-CAT-2#sh arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet X.X.X.70 147 0009.b6a4.b800 ARPA Vlan65
Internet X.X.X.69 - 001c.b144.5800 ARPA Vlan65
SWITCH B:
DAL-COLO-6509-1#sh arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet X.X.X.70 - 0009.b6a4.b800 ARPA Vlan65
Internet X.X.X.69 141 001c.b144.5800 ARPA Vlan65
And once again, the OSPF Neighbor relationship does come up:
SWITCH A:
Bryan-26th-CAT-2# sh ip ospf neigh
Neighbor ID Pri State Dead Time Address Interface
10.255.2.2 1 FULL/BDR 00:00:30 X.X.X.70 Vlan65
SWITCH B:
DAL-COLO-6509-1#sh ip ospf neig
Neighbor ID Pri State Dead Time Address Interface
10.255.2.3 1 FULL/DR 00:00:33 X.X.X.69 Vlan65
In the Troubleshooting MPLS VPN manuals- it shows to test trace routes. All of our other connections like this the trace routes work fine. In this case though, I cannot trace route not only between the loopback interfaces, but between the DIRECTLY CONNECTED interfaces. I don’t know what this is. It should simply be a one hop trace route. I believe this is what is keeping the MPLS VPN from coming up. Any ideas? Here are the relevant OSPF configs and interface configs as well:
SWITCH A:
interface Vlan65
description Connection to DAL-COLO-6509-2
mtu 1580
ip address X.X.X.69 255.255.255.252
no ip redirects
no ip unreachables
ip pim sparse-dense-mode
ip ospf mtu-ignore
mpls label protocol ldp
mpls ip
router ospf 23532
log-adjacency-changes
redistribute connected subnets
redistribute static subnets
passive-interface default
no passive-interface Vlan65
network 10.255.2.3 0.0.0.0 area 0
network X.X.X.69 0.0.0.0 area 0
SWITCH B:
interface Vlan65
description Connection to Bryan-26th-CAT-2
mtu 1580
ip address X.X.X.70 255.255.255.252
no ip redirects
no ip unreachables
ip pim sparse-dense-mode
ip ospf mtu-ignore
mpls label protocol ldp
mpls ip
router ospf 23532
log-adjacency-changes
redistribute connected subnets
redistribute static subnets
passive-interface default
no passive-interface Vlan65
network 10.255.2.2 0.0.0.0 area 0
network X.X.X.70 0.0.0.0 area 0
Any ideas would be appreciated.
Thanks
GregGreg,
Can you explain more about your issue?. When you say MPLS VPN is not coming up, do you mean the ping (or traffic) from CE connected to one 6509 is not traversing the MPLS cloud to otehr CE connected to remote 6509?.
Do you have VRF enabled with respective RT import/export?. Do you have MP-BGP with VPNv4 AF enabled?.
To confirm if basic MPLS is working fine, Can you check if you have LDP neighborship up and running?. Use "show mpls ldp neighbor" to see the session.
Also do a "ping mpls ipv4 <remote-loopback> <mask>" and see if it works?.
-Nagendra -
Purchased iPhone 5 and can no longer connect interface to my seat Ibiza.
Bought an iPhone 5 with this lightning adapter thing expecting to be able to simply connect this adapter to my previous interface for my Seat Ibiza which worked, and still does work with my iPhone 4. Now with the iPhone 5 it only charges the phone and does not play the music, it works through an audio jack (3.5mm) but this is annoying as with the interface it allows you to be able to select playlists, songs etc. through the buttons on the car stereo and steering wheel. Through the audio jack it does not. Can anyone help with this? I have 10 days for an answer to this, otherwise i'm sending the bloody thing back!
I have now managed to sign into iCloud but I still don't seem to be able to sign up my Apple ID for iMessage
-
Connect interface with XML File in jdeveloper
Hello;
i want to design a webservice that take an employee ID , and return all employee's data (like his name ,departement, phone,email....)
i want to make interface and connect it with XML file wich has all employees data
how can i connect the interface ( input text box and output button) with XML file (taking the Id and searching inside the file and getting the data out in table as output)
i want to deploy it to get the WSDL file and URL to deploy it at application server to use it in webcenter>>>up 2 find an answer
i want the right way to do it? -
Netcfg - no connection, interface without devices connected
I have two interfaces eth0, eth1
eth0 (DHCP) - connect to router, provide internet
eth1 (STATIC IP) - connect with print server in my printer
- I expect interface should up without need to have powered on device connected to it
Everything worked fine, when interfaces were configured with /etc/rc.conf.
Now I configured network with netcfg and:
eth0 - up and everything ok
eth1 - no starts up, when no device is connected (powered off device connected) to this ethernet card
log:
# NETCFG_DEBUG="yes" netcfg eth1-static
DEBUG: Loading profile eth1-static
DEBUG: Configuring interface eth1
:: eth1-static up [BUSY] DEBUG: status reported to profile_up as:
DEBUG: Loading profile eth1-static
DEBUG: Configuring interface eth1
DEBUG: ethernet_iproute_up ifup
> No connection
DEBUG: profile_up connect failed
but when printer is powered on, interface starts up:
# netcfg eth1-static
:: eth1-static up [DONE]
network profile content
# cat /etc/network.d/eth1-static
CONNECTION='ethernet'
DESCRIPTION='A basic static ethernet connection using iproute'
INTERFACE='eth1'
IP='static'
ADDR='192.168.0.1'
Am I missing some setting? Maybe I should disable/enable something in profile?
Things to reproduce:
1. two ethernet cards
2. first connected network and second connected to switched off device, or not connected
3. configure 2 netcfg profiles (first - dhcp, second -static ip)
4. the second interface will fail to start up
Last edited by ostanislaw (2011-06-18 10:31:12)Now I configured second interface - eth1 the old way in /etc/rc.conf:
eth1="eth1 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255 mtu 1492"
INTERFACES=(eth1)
While eth0 is configured by netcfg profile.
Both interfaces works. But my problem is not solved, because both interface should be configured in netcfg.
I think netcfg check if network is available and doesn't start eth1 interface, while device configured the old way in /etc/rc.conf doesn't perform this check. There should be option to disable it in netcfg profile.
Last edited by ostanislaw (2011-06-18 10:44:18) -
Connecting Interface and recoding with Logic Express 9
Hi apologies if I've posted this in the wrong location. I need some help.
I have just bought an iMac (with Logic express 9) along with a focusrite saffire pro 14 sound interface.
i'm having difficulties getting a line in and out of the focusrite and into logic.
I currently have passive monitors plugged into an amp, which is then plugged into the headphone jack on the iMac, the focusrite is connected via firewire.
my mic is connected via xlr with phantom power into the focusrite, and my guitar (via an effect unit with built in pre-amp) is connected into the 1/4'' input. both signals are showing levels on the focusrite mixer software - but no sound. the only output from the sound interface is the firewire.
I can record, and play back in logic using my usb midi controller- USB direct into the iMac.
i've selected the focusrite as the driver in logic, also as the input device in system preferences on the iMac.
any ideas when I am doing wrong?
any help would be good
thanks
ChrisHi,
there are some points where the big bear trap might have snapped onto your feet
First: You said you have selected the focusrite as the core audio input device in Logic. This is okay. But have you selected the correct inputs for the audio tracks you are recording to? You focusrite has 4 possible line inputs (1 and 2 are combined on the front in the middle of the XLR jacks, which are also inputs 1 and 2 for mics, and 3 and 4 are on the back).
When you connect a headphone to your focusrite, can you hear your mic or your guitar? (turn up the monitor volume as well as the headphones volume!)
Given you really have a good signal that goes into your focusrite, the same signal should be available in Logic *for the appropriate inputs* . It won't work if you have plugged your guitar into input 3 and have input 1 or 2 selected in the channelstrip's input selector tab.
Second: Given there's a signal coming into Logic, where does it go from there? The focusrite has 4 outputs, and you should connect your amp&speakers to them. If your amp&speakers are still connected to your iMac's headphone jack, you must select your Mac's "built in output" as the output device in Logic. The OS X preference pane has nothing to do with Logic's preferences. Don't confuse them.
Cheers,
Fox -
EA2 - EA1 - Connection interface is unavailable
1) Create a connection
The action on File->New->Database connections->NOTHING ( the window is closed without an action).
2) I had the same problem on EA1 after deleting of an existing connection
3) I've just reinstalled JVM, JDK and EA2 with the same results.
4) Several menu are misplaced (for example "source")
Thank you
Ver:
Windows Xp professional
Piattaforma Java(TM) 1.6.0_17
Sql Developer 2.1.0.63.10
Edited by: zep111 on Nov 10, 2009 2:49 PMReinstalled :
1) Deleted the old sql Developer folder
2) Deleted all the previous settings folder
3) New Unzip ot the latest EA2 in a different folder
Result : it's OK .
This solve the issue in the EA2 new installation, but that was done to get around the same problem I had on EA1 after deleting a connection.
I worked on EA1 for several days without connection problems until I deleted my connection!
But now I've already deleted EA1 and I can't show you anything on the console related to that issue.
Anyway, now I'm on my way again and I'll use your instructions next time I'll have an error like the one I've had in EA1 this morning.
Thank you. -
No network connection / interfaces in LiveCD
Hello world! For the first time I can't get a network connection while installing, did everything as usual until giving the pacstrap command it couldn't connect to the servers. The very same livecd worked fine installing on a laptop.
Here's some basic outputs:
ifconfig -a # shows "lo" only
ip link # same here too
lspci # 00:19.0 Intel 82579V
lsmod # e1000e 0
Does that last one mean the driver is lacking and I have bad luck with this specific controller not working on the go? If so, what can I do?
Last edited by lio94 (2015-02-08 21:14:02)alphaniner wrote:If it's not working now with the same Evo livecd it used to work under, then it's a hardware problem. If it's a different Evo, then it could be a regression in the module.
Not sure if the same physical copy, so it might boot a newer release than then. I'll try with an older release tomorrow. What does this regression mean by the way?
edit: It is indeed a newer release I tried the past weeks. I'll try with this older Evo-CD I just found!
Last edited by lio94 (2015-02-14 18:39:10) -
Can not able to upload a build on App Store with new itunes connect interface.
Hello ,
I am uploading a build to app store with the version number 1.2.1 with same bundle version . But after some time apple shows error as Redundant Binary Error. You are trying to upload a same build that is already on app store.
So i change my app bundle number to 1.2.1.1. This time the apple shows error as The session status is changed.The session
I tried to solve it out by changing the
# https.proxyPort=443 To https.proxyPort=80
I have uploaded the build with changing the bundle number but now every time it shows same error.
I was also trying to upload the build taking some break in between. Uploaded build more than 15 times to app store, but couldn't successed.
Please some one help me. It's getting very frustrated.You will be better off asking in the developer forums, this forum is for questions about buying/downloading from the store : https://devforums.apple.com/index.jspa
-
IProcurement connectivity /interface
What is the process that a supplier needs to change to redirect a purchase order to a third party from the Oracle procurement solution? In what format(s) (XML, EDI...) can a third party receive such a purchase order? Is this documented?
Hi,
Check these links
ALE/ IDOC
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/sapedi/idoc_abap.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
http://www.allsaplinks.com/idoc_sample.html
http://www.sappoint.com/abap.html
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.allsaplinks.com/idoc_sample.html
ALE/ IDOC/ XML
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://www.thespot4sap.com/Articles/SAP_XML_Business_Integration.asp
http://help.sap.com/saphelp_srm30/helpdata/en/72/0fe1385bed2815e10000000a114084/content.htm
IDOC Convertion
/people/kevin.wilson2/blog/2005/12/07/changing-fields-in-an-idoc-segment -
About Connection, ResultSet, Statement interfaces....
hi ,
Connection, ResultSet, Statement etc.. all are the interfaces. But when i am writing the codes like,
Statement stmt= con.createStatement();
ResultSet rs= stmt.excuteQuery("select * from student_mst");
where con is the instance of Connection interface.
Therefore my question is that since all those(Connection,ResultSet,Statement) are interfaces then how the methods createStatement(),excuteQuery(String sql) are being executed where as those methods are only the declarations in those interfaces,nothing else.ok.......
So can u tell me in this case, actualy which class is
implenting the Statement interface such that
"executeQuery(String)" is working properly.....??????Hello,
First you need to understand interface and its working.. I will write one example code for u and I think this may hel how Connection, Statement and ResultSet work
This is out main Class
public class Main {
public static void main(String[] args) {
Connection con = DriverManager.getConnection();
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("My Query");
rs.getString();
}Connection.java
public interface Connection {
public Statement createStatement();
}Statement.java
public interface Statement {
ResultSet executeQuery(String sql);
}ResultSet.java
public interface ResultSet {
public String getString();
}DriverManager.java
public class DriverManager {
public static Connection getConnection() {
System.out.println("Calling getConnection()...");
return new ConnectionImpl();
}Following are the implementstions of the interfaces
ConnectionImpl.java
public class ConnectionImpl implements Connection {
public Statement createStatement() {
System.out.println("Calling createStatement()...");
return new StatementImpl();
}StatementImpl.java
public class StatementImpl implements Statement{
public ResultSet executeQuery(String sql) {
System.out.println("Calling executeQuery()...");
return new ResultSetImpl();
}ResultSetImpl.java
public class ResultSetImpl implements ResultSet{
public String getString() {
System.out.println("Calling getString()...");
return "My String";
}And the Output is
Calling getConnection()...
Calling createStatement()...
Calling executeQuery()...
Calling getString()...
I suppose now you can understand how the Connection, Statement and ResultSet interfaces work -
Wireless card BCM4313 no connection at boot
Hi,
I have an HP Pavilion dv6 with a Broadcom BCM4313 wireless card. I use NETCFG and before the last kernel upgrade I was able to connect to my home wireless connection at boot without troubles. Now I have to do it manually and I need to try 2 or 3 times to see my connection active.
lspci -vnn
02:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller [14e4:4727] (rev 01)
Subsystem: Hewlett-Packard Company Device [103c:1483]
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at c3400000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: brcmsmac
Kernel modules: bcma, wl, brcmsmac
lsmod
Module Size Used by
cpufreq_stats 3890 0
radeon 992718 0
ttm 54360 1 radeon
ipv6 290407 22
cpufreq_ondemand 6132 4
uvcvideo 64931 0
videodev 78006 1 uvcvideo
media 10437 2 uvcvideo,videodev
usbhid 35256 0
hid 81635 1 usbhid
v4l2_compat_ioctl32 8292 1 videodev
snd_hda_codec_hdmi 22092 1
joydev 9895 0
snd_hda_codec_idt 55175 1
i915 707307 7
snd_hda_intel 22122 0
snd_hda_codec 77927 3 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_intel
drm_kms_helper 25409 2 radeon,i915
lib80211_crypt_tkip 8506 0
drm 183380 5 radeon,ttm,i915,drm_kms_helper
snd_hwdep 6325 1 snd_hda_codec
snd_pcm 73856 3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_timer 19416 1 snd_pcm
r8169 42643 0
lib80211 4158 1 lib80211_crypt_tkip
snd 57786 7 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
sg 25557 0
hp_accel 13864 0
lis3lv02d 10508 1 hp_accel
i2c_i801 8187 0
serio_raw 4294 0
iTCO_wdt 12717 0
hp_wmi 7738 0
intel_agp 10904 1 i915
arc4 1410 2
btusb 11577 0
evdev 9530 9
bluetooth 138465 1 btusb
soundcore 6146 1 snd
bcma 13762 0
i2c_algo_bit 5199 2 radeon,i915
sparse_keymap 3088 1 hp_wmi
mei 31249 0
i2c_core 20133 7 radeon,videodev,i915,drm_kms_helper,drm,i2c_i801,i2c_algo_bit
iTCO_vendor_support 1929 1 iTCO_wdt
pcspkr 1819 0
snd_page_alloc 7121 2 snd_hda_intel,snd_pcm
intel_ips 11213 0
psmouse 55224 0
intel_gtt 14423 3 i915,intel_agp
mii 3995 1 r8169
input_polldev 2882 1 lis3lv02d
battery 10905 0
wmi 8411 1 hp_wmi
ac 3265 0
button 4470 1 i915
brcmsmac 594624 0
thermal 7863 0
video 11228 1 i915
brcmutil 6563 1 brcmsmac
mac80211 215605 1 brcmsmac
cfg80211 160516 2 brcmsmac,mac80211
rfkill 15402 3 hp_wmi,bluetooth,cfg80211
crc_ccitt 1331 1 brcmsmac
acpi_cpufreq 5877 1
freq_table 2451 3 cpufreq_stats,cpufreq_ondemand,acpi_cpufreq
processor 24256 1 acpi_cpufreq
mperf 1275 1 acpi_cpufreq
ext4 369556 2
mbcache 5817 1 ext4
jbd2 71074 1 ext4
crc16 1297 2 bluetooth,ext4
sr_mod 14951 0
sd_mod 28307 4
cdrom 36329 1 sr_mod
ahci 20865 3
libahci 18885 1 ahci
libata 173297 2 ahci,libahci
ehci_hcd 39511 0
scsi_mod 131482 4 sg,sr_mod,sd_mod,libata
usbcore 142544 5 uvcvideo,usbhid,btusb,ehci_hcd
dmesg | grep wlan0
[ 11.715805] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 13.791409] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 16.885059] wlan0: authenticate with 50:67:f0:ab:4f:d4 (try 1)
[ 16.886567] wlan0: authenticated
[ 16.890100] wlan0: associate with 50:67:f0:ab:4f:d4 (try 1)
[ 16.892793] wlan0: RX AssocResp from 50:67:f0:ab:4f:d4 (capab=0x471 status=0 aid=1)
[ 16.892798] wlan0: associated
[ 16.894146] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 26.697130] wlan0: deauthenticating from 50:67:f0:ab:4f:d4 by local choice (reason=3)
[ 87.612906] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 89.754106] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 92.849882] wlan0: authenticate with 50:67:f0:ab:4f:d4 (try 1)
[ 92.851661] wlan0: authenticated
[ 92.851823] wlan0: associate with 50:67:f0:ab:4f:d4 (try 1)
[ 92.854142] wlan0: RX AssocResp from 50:67:f0:ab:4f:d4 (capab=0x471 status=0 aid=1)
[ 92.854150] wlan0: associated
[ 92.855920] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 103.719958] wlan0: no IPv6 routers present
[ 105.980215] wlan0: deauthenticating from 50:67:f0:ab:4f:d4 by local choice (reason=3)
[ 120.237260] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 122.316759] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 125.422195] wlan0: authenticate with 50:67:f0:ab:4f:d4 (try 1)
[ 125.423760] wlan0: authenticated
[ 125.423960] wlan0: associate with 50:67:f0:ab:4f:d4 (try 1)
[ 125.426083] wlan0: RX AssocResp from 50:67:f0:ab:4f:d4 (capab=0x471 status=0 aid=1)
[ 125.426090] wlan0: associated
[ 125.428085] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 136.398877] wlan0: no IPv6 routers present
You could see that first I get the connection and then I lost it... for 2 or 3 times, then I could connect without problems.
ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:338 errors:0 dropped:0 overruns:0 frame:0
TX packets:338 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:27772 (27.1 Kb) TX bytes:27772 (27.1 Kb)
wlan0 Link encap:Ethernet HWaddr E0:2A:82:A2:B5:88
inet addr:192.168.1.33 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::e22a:82ff:fea2:b588/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12484 errors:0 dropped:0 overruns:0 frame:0
TX packets:9606 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13841736 (13.2 Mb) TX bytes:1241490 (1.1 Mb)
iwconfig
wlan0 IEEE 802.11bgn ESSID:"WLAN_A9"
Mode:Managed Frequency:2.452 GHz Access Point: 50:67:F0:AB:4F:D4
Bit Rate=54 Mb/s Tx-Power=19 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=40/70 Signal level=-70 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:82 Missed beacon:0
my wirelessCasa netcfg profile
CONNECTION='wireless'
DESCRIPTION='A simple WEP encrypted wireless connection'
INTERFACE='wlan0'
SECURITY='wep'
ESSID='WLAN_A9'
KEY='s:mykey'
IP='dhcp'
POST_UP="notify-send -u critical -i /usr/share/icons/Faenza/status/48/connect_established.png -t 15000 'Connected to WLAN_A9'"
POST_DOWN="notify-send -u critical -i /usr/share/icons/Faenza/status/48/gnome-netstatus-disconn.png -t 15000 'Connection lost'"
# Uncomment this if your ssid is hidden
#HIDDEN=yes
rc.conf
NETWORKS=(wirelessCasa)
DAEMONS=(syslog-ng dbus net-profiles net-auto-wired !network !netfs crond laptop-mode alsa slim @acpid @cups)
When I execute netcfg for the first time (after boot) I see:
#NETCFG_DEBUG=yes netcfg wirelessCasa
DEBUG: Loading profile wirelessCasa
DEBUG: Configuring interface wlan0
:: wirelessCasa up [BUSY] DEBUG: status reported to profile_up as:
DEBUG: Loading profile wirelessCasa
DEBUG: Configuring interface wlan0
DEBUG: wireless_up stop_wpa wlan0
DEBUG: wireless_up start_wpa wlan0 /run/network//wpa.wlan0/wpa.conf nl80211,wext
DEBUG: wireless_up stop_wpa wlan0
DEBUG: wireless_up Configuration generated at /run/network//wpa.wlan0/wpa.conf
DEBUG: wireless_up ifup
DEBUG: wireless_up start_wpa wlan0 /run/network//wpa.wlan0/wpa.conf nl80211,wext
DEBUG: wireless_up wpa_check
DEBUG: wpa_cli -p /run/wpa_supplicant -i wlan0 status
DEBUG: Loading profile wirelessCasa
DEBUG: Configuring interface wlan0
DEBUG: ethernet_iproute_up ifup
DEBUG: ethernet_up dhcpcd -qL -t 10 wlan0
DEBUG:
> DHCP IP lease attempt failed.
DEBUG: Loading profile wirelessCasa
DEBUG: Configuring interface wlan0
DEBUG: Loading profile wirelessCasa
DEBUG: Configuring interface wlan0
DEBUG: ethernet_down if_down
DEBUG: wireless_down stop_wpa wlan0
DEBUG: profile_up connect failed
[FAIL]
And the second one:
#NETCFG_DEBUG=yes netcfg wirelessCasa
DEBUG: Loading profile wirelessCasa
DEBUG: Configuring interface wlan0
:: wirelessCasa up [BUSY] DEBUG: status reported to profile_up as:
DEBUG: Loading profile wirelessCasa
DEBUG: Configuring interface wlan0
DEBUG: wireless_up stop_wpa wlan0
DEBUG: wireless_up start_wpa wlan0 /run/network//wpa.wlan0/wpa.conf nl80211,wext
DEBUG: wireless_up stop_wpa wlan0
DEBUG: wireless_up Configuration generated at /run/network//wpa.wlan0/wpa.conf
DEBUG: wireless_up ifup
DEBUG: wireless_up start_wpa wlan0 /run/network//wpa.wlan0/wpa.conf nl80211,wext
DEBUG: wireless_up wpa_check
DEBUG: wpa_cli -p /run/wpa_supplicant -i wlan0 status
DEBUG: Loading profile wirelessCasa
DEBUG: Configuring interface wlan0
DEBUG: ethernet_iproute_up ifup
DEBUG: ethernet_up dhcpcd -qL -t 10 wlan0
DEBUG:
DEBUG: ethernet_iproute_up hostname archlap
[DONE]
I've tried to use the wl driver but it doesn't seems to work properly.
Could anyone help me please?
Thank you,
enricolitemotiv wrote:
Hmm it seems your card now takes longer to connect, the 'deauthenticating by local choice' often means that the default timeout is reached and netcfg disconnects. You can try adding a specific timeout parameter to your netcfg profile:
TIMEOUT=60
That doesn't explain why it takes longer to connect than before, but at least you should be able to connect in 1 try again.
Hi,
thank you for your time!
I'v tried adding the timeout line to my profile but it doesn't change nothing
I could connect at 3rd try.
Any other idea?
Maybe you are looking for
-
Missing PDFMaker Files in Acrobat 9
Hi everyone, I am helping someone with a problem who has received this message while he tries to create a PDF by using Acrobat Pro 9. He clicks on create pdf from file, selects the file, and then it begins to create. But it then gives the error mess
-
When to send JOIN channel to IRC server?urgent..
i have a problem regarding sending information to IRC server. I want to send the join message to server. But i can only do so after server has finished sending information to me. may i know the correct coding ? i have tried to send it after the while
-
IIR 2.8.0.7 performance tuning suggestions / documents for Oracle 11?
Would we have any hints or white papers that would support a customer in IIR matching server tuning for initial load performance, beyond the Siebel specific Performance Tuning Guidelines for Siebel CRM Application on Oracle Database (Doc ID 781927.1)
-
Flash CS4 quits unexpectedly every start
I'm currently running Mac OSx 10.6.2 and Flash CS4 with the most recent updates. Every time I open Flash CS4, the application quits with the following error: Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000004 Crashed Thread: 0 Dispatch
-
Period changed,how to re-calculate plan depreciation
Dear All, I changed financial period interval,e.g the period interval is 26th of previous peiod - 30th of current period,i changed to 1th of current priod - 25th of current period,how to re-recalculate plan depreciation,thanks the FY is still year d