Re: 答复: Linux MBIM
Dear Franko, I've begun modifying the cdc-ncm driver to support mbim devices. I do have a device to test with but will welcome more devices if Huawei is willing to send one. Thanks, Greg On Tue, Aug 7, 2012 at 11:49 PM, Fangxiaozhi (Franko) fangxiao...@huawei.com wrote: Dear Mork Greg: Do you have began to develop the MBIM driver for Linux kernel? Do you have got the MBIM device for test? We are developing some devices to support MBIM protocol. We hope that it can be used on Linux. So I think that we maybe do some cooperation for this development. What's your opinions? Best Regards, Franko Fang -邮件原件- 发件人: networkmanager-list-boun...@gnome.org [mailto: networkmanager-list-boun...@gnome.org] 代表 Bj?rn Mork 发送时间: 2012年7月19日 9:19 收件人: Greg Suarez 抄送: NetworkManager List 主题: Re: Linux MBIM Greg Suarez gpsuarez2...@gmail.com writes: On Mon, Jul 16, 2012 at 12:28 AM, Bjørn Mork bj...@mork.no wrote: If I understand this correctly, MBIM devices will combine CDC NCM with a MBIM control channel in the exact same way QMI devices combine CDC ECM with a QMI control channel. That means that the driver support could be done as simple as combining cdc_ncm with the cdc_wdm subdriver (either in the existing cdc_ncm driver, or as a new separate driver reusing code from cdc_ncm). If this was done, then we would have the MBIM control channel exported to userspace as a /dev/cdc-wdmX device, exactly like qmi_wwan exports its QMI control channel. Leaving MBIM control protocol implementation for userspace make sense for the same reasons it made sense to leave QMI implementation for userspace. Boy, am I happy Marcel and others convinced me to do that :-) I was on the same line of thinking but wasn't aware of the QMI driver. Could you point out its location to me? It's in mainline from 3.4: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob;f=drivers/net/usb/qmi_wwan.c The approach is pretty simple: Reuse the existing cdc_wdm driver as a subdriver, giving it full ownership of the status interrupt endpoint. cdc_wdm exports whatever protocol is encapsulated in CDC directly as a character device. The driver does not care about the contents at all, leaving that to userspace. The bulk endpoints are handled by a normal usbnet based minidriver. The only difference from any other minidriver like cdc_ether, is that the status endpoint is unavailable. But the CDC notifications are pretty useless anyway, when you have access to a full management protocol like QMI or MBIM. The exact same should work equally well for MBIM. The network driver part must of course be different, and a lot more complex. But most of it is already done in cdc_ncm. Add push/pull of an ethernet pseudo-header to make the raw IP packets appear as ethernet (there are other options, but I believe adding a dummy header is best), and the registration of the subdriver, and that's it! Execpt of course for everything I forgot :-) If I had a device, I would have started with a very simple usbnet + cdc_wdm driver, verifying that userspace access to the MBIM protocol worked as assumed. In fact, qmi_wwan qualifies as that simple driver. Just add a MBIM class matching rule there and go test MBIM management from userspace. The network interface will of course be non-functional. To add support for that, I would look thoroughly at cdc_ncm to find out which parts could be reused and how to best do that without copying any code. Then I would start exporting the parts of cdc_ncm that I needed and integrate them in the new driver. Another approach, which might result in simpler code and therefore be better, would be adding a few extra functions to cdc_ncm and just add another driver instance there for MBIM. Might be best, given the amount of code that could and should be shared between these two drivers. Last, there is the question of whether you should bother with the Microsoft specific descriptors (the magic 0xee string descriptor and it's friends) or not. I don't think that is necessary, and there are some reasons to stay away. But then I haven't seen a MBIM device yet. Could be that you need those descriptors to figure out the different settings, in particular how to enable the alternate functions. A question back to you, Greg: Why do you ask? I ask because I've been assigned to either come up with a MBIM driver or help with an existing effort. Ah, good. Then that's solved :-) May I ask who assigns such fun tasks? Do you know of any device? Or planned device? Where can I get one? :-) I should be getting a dev board sometime in the next few weeks. I don't even know the manufacturer. Where can you get one? no idea. OK. I'll see what pops up. Bjørn ___ networkmanager-list mailing list networkmanager-list
Re: Linux MBIM
On Sun, Jul 15, 2012 at 10:13 PM, Aleksander Morgado aleksan...@lanedo.comwrote: Hey Greg, I was wondering if there's any effort going on to support MBIM devices on Linux? No plans yet for ModemManager (see thread [1]). Is there any device out there which already supports that protocol? Cheers, [1] https://mail.gnome.org/**archives/networkmanager-list/** 2011-November/msg00352.htmlhttps://mail.gnome.org/archives/networkmanager-list/2011-November/msg00352.html -- Aleksander Hi Aleksander, I've seen that thread but I just wanted to throw the question out there since the thread was from last year. I believe a MBIM device should be coming out later this year. Thanks, Greg ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Linux MBIM
On Mon, Jul 16, 2012 at 12:28 AM, Bjørn Mork bj...@mork.no wrote: Aleksander Morgado aleksan...@lanedo.com writes: I was wondering if there's any effort going on to support MBIM devices on Linux? No plans yet for ModemManager (see thread [1]). Is there any device out there which already supports that protocol? Cheers, [1] https://mail.gnome.org/archives/networkmanager-list/2011-November/msg00352.html If I understand this correctly, MBIM devices will combine CDC NCM with a MBIM control channel in the exact same way QMI devices combine CDC ECM with a QMI control channel. That means that the driver support could be done as simple as combining cdc_ncm with the cdc_wdm subdriver (either in the existing cdc_ncm driver, or as a new separate driver reusing code from cdc_ncm). If this was done, then we would have the MBIM control channel exported to userspace as a /dev/cdc-wdmX device, exactly like qmi_wwan exports its QMI control channel. Leaving MBIM control protocol implementation for userspace make sense for the same reasons it made sense to leave QMI implementation for userspace. Boy, am I happy Marcel and others convinced me to do that :-) I was on the same line of thinking but wasn't aware of the QMI driver. Could you point out its location to me? Hmm, I see now The only difference is that instead of transporting Ethernet frames, MBIM transports raw IP data streams. So we definitely need a new driver based on cdc_ncm. Exporting and reusing a bit of cdc_ncm would probably make most sense. And it might also be necessary to extend the cdc_wdm subdriver interface if the cdc_ncm driver need to see the USB_CDC_NOTIFY_NETWORK_CONNECTION and USB_CDC_NOTIFY_SPEED_CHANGE notifications, or if it needs to send any control messages after the probe phase. Don't know if it does. Doesn't really look like it… All this should still be a piece of cake to stitch together. If there had been any devices, that is. So, no, I don't know of any effort to support MBIM on Linux. There just isn't any need for it yet. The basic kernel driver support can be added in a few weeks if necessary. See also the reply from Torgny Johansson in the thread Aleksander refer to, pointing to this press release: http://www.ericsson.com/news/111201_ericsson_to_phase_out_pc_modules_for_mobile_broadband_access_244188808_c I am guessing here, but the whole MBIM thing looks like it was driven by Ericsson, and it might just not happen when they have put it on hold. Qualcomm are likely to be happy with their current QMI approach. Not sure what value they would see in replacing that with a new standardized protocol, if they are going to be the only ones using the new protocol... Others? Microsoft? Yes, I guess they could drive this if they decided that MBIM is the RNDIS of wwan devices. Maybe they will?? A question back to you, Greg: Why do you ask? I ask because I've been assigned to either come up with a MBIM driver or help with an existing effort. Do you know of any device? Or planned device? Where can I get one? :-) I should be getting a dev board sometime in the next few weeks. I don't even know the manufacturer. Where can you get one? no idea. Bjørn Thanks, Greg ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Linux MBIM
Hi All, I was wondering if there's any effort going on to support MBIM devices on Linux? Thanks, Greg ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
How to get notification of NetworkManager restart
Hi all, My code communicates with NM via dbus c-api and I would like know how to detect when NM restarts so I can tear down the old connection and create a new one. What I'm seeing right now is when NM restarts I cease to get any notifications from NM. I'm working with NM 0.9 Thanks, Greg Suarez ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Need help with the NetworkManager DBUS API
If you're trying to establish a connection while nm-applet is running then you have to add the connection information through gconf which nm-applet will pickup and create a new connection through NetworkManager. Hope this helps, Greg On Sun, Feb 13, 2011 at 8:52 PM, Anurup Raveendran anurupraveend...@gmail.com wrote: i'm trying to establish a wireless network connection using the DBUS API but i have failed miserably. i have attached the code that I'm using. Regards, -- Anurup Raveendran Computer Science Engineering(2007-2011) Model Engineering College, Cochin Mobile: +919895301078 Landline : 0496-2503009 E-mail id : anurupraveend...@gmail.com ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: how to get signal strength of EVDO modem :
This is probably due to the modem port being busy because of the connection. So NM can't send AT commands to query the modem while the modem is connected. Greg On Wed, Nov 10, 2010 at 12:17 AM, AMIT G. amitgo...@gmail.com wrote: Hi, I am trying to get the signal strength of the EVDO modem(ZTE-AC 2726). I was successful partially ; I got the signal strength after enabling modem but once i connect the modem i get the last known value returned by the GetSignalQuality method in org.freedesktop.ModemManager.Modem.Cdma How do i get the real time signal strength after establishing the connection? In the interface org.freedesktop.ModemManager.Modem.Cdma i saw Signals: SignalQuality How can i use this ? can u please provide an example of how to use Signals: ? in python ? -- Regards: Amit Gogte ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
NM automatically reconnects to WIFI AP automatically after commanded to disconnect from it.
Hi, What I'm seeing in my application is when I command NM to disconnect from an AP (via DBUS) NM disconnects but then reconnects right away. AM I missing a step that needs to be done first? I'm using the method org.freedesktop.NetworkManager.DeactivateConnection Thanks, Greg ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: NM automatically reconnects to WIFI AP automatically after commanded to disconnect from it.
It's marked Auto APNAME. Is this the reason? But when I disconnect manually via the applet it doesn't reconnect. Shouldn't there be a distinction between a lost of connection and a commanded disconnect? And BTW I'm using NM 0.8.1. Thanks 2010/12/21 José Queiroz zekk...@gmail.com Is your connection marked Auto-connect? 2010/12/22 Greg Suarez gpsuarez2...@gmail.com Hi, What I'm seeing in my application is when I command NM to disconnect from an AP (via DBUS) NM disconnects but then reconnects right away. AM I missing a step that needs to be done first? I'm using the method org.freedesktop.NetworkManager.DeactivateConnection Thanks, Greg ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Is there a way to get nm-applet to prompt for network security credentials through dbus?
On Feb 25, 2010, at 5:06 PM, José Queiroz wrote: 2010/2/24 Greg Suarez gpsuarez2...@gmail.com: Sorry, I should've explained that I'm writing an application and I'm interfacing with NetworkManager through dbus. I want my application to get the list of wireless networks from NetworkManager and allow the user to select it and then tell NetworkManager to connect to the network. What I was hoping I could do was to somehow tell nm-applet, from my application, to prompt the user for security credentials. Then I can tell NetworkManager to use the new connection. Did I misunderstood you, or are you trying to replicate knetworkmanager behaviour? I'm not familiar with knetworkmanager but I'm probably replicating the functionality. ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Is there a way to get nm-applet to prompt for network security credentials through dbus?
On Wed, Feb 24, 2010 at 4:25 AM, Marc Herbert marc.herb...@gmail.comwrote: Greg Suarez a écrit : I'm trying to get NetworkManager to connect to a wireless AP through the d-bus interface. The AP requires security credentials (i.e. WPA password), is there a way I can communicate to the nm-applet to prompt the user for the information? I am not 100% sure what you want here but any time you start GNOME's nm-connection-editor it will prompt the user to configure anything, including wireless credentials. So all I have to do is tell the nm-applet to get the credentials which will create a connection and I can tell NetworkManager to use the connection provided by the nm-applet. I think yes. If this wireless connection is the only one configured and available then you do not even need to direct NM to it; it should automatically fallback to the only one available. Or am I stuck having to write my own app? Which would do what? Sorry, I should've explained that I'm writing an application and I'm interfacing with NetworkManager through dbus. I want my application to get the list of wireless networks from NetworkManager and allow the user to select it and then tell NetworkManager to connect to the network. What I was hoping I could do was to somehow tell nm-applet, from my application, to prompt the user for security credentials. Then I can tell NetworkManager to use the new connection. ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Interfacing with NetworkManagerUserSettings
On Feb 24, 2010, at 3:57 PM, Dan Williams wrote: On Fri, 2010-02-19 at 16:34 -0800, Greg Suarez wrote: Hi, I'm writing a program to manage wifi profiles and wish to communicate the Connection objects to the NetworkManager. I can't seem to find documentation on the communication between the NetworkManager the the program providing the user settings. Can someone point me to where I can get this information or describe what I need to do? http://projects.gnome.org/NetworkManager/developers/spec-08.html you're looking for anything that starts with: org.freedesktop.NetworkManagerSettings Both the system settings and user settings services implement this D-Bus interface. Essentially, your program needs to respond to the ListConnections method with an array of the object paths of it's Connection objects. Then it also implements the GetSettings method for each of those connection objects so NM can get the actual connection details. You'll also want to implement the .Secrets interface there so that NM can get network passwords. Let me know if more you need more explanation. Dan Thanks Dan, Would my program need to request the dbus name org.freedesktop.NetworkManagerUserSettings or can I use another name? If I need to use org.freedesktop.NetworkManagerUserSettings wouldn't that interfere with nm-applet? Greg ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Interfacing with NetworkManagerUserSettings
On Feb 24, 2010, at 4:23 PM, Dan Williams wrote: On Wed, 2010-02-24 at 16:10 -0800, Greg Suarez wrote: On Feb 24, 2010, at 3:57 PM, Dan Williams wrote: On Fri, 2010-02-19 at 16:34 -0800, Greg Suarez wrote: Hi, I'm writing a program to manage wifi profiles and wish to communicate the Connection objects to the NetworkManager. I can't seem to find documentation on the communication between the NetworkManager the the program providing the user settings. Can someone point me to where I can get this information or describe what I need to do? http://projects.gnome.org/NetworkManager/developers/spec-08.html you're looking for anything that starts with: org.freedesktop.NetworkManagerSettings Both the system settings and user settings services implement this D-Bus interface. Essentially, your program needs to respond to the ListConnections method with an array of the object paths of it's Connection objects. Then it also implements the GetSettings method for each of those connection objects so NM can get the actual connection details. You'll also want to implement the .Secrets interface there so that NM can get network passwords. Let me know if more you need more explanation. Dan Thanks Dan, Would my program need to request the dbus name org.freedesktop.NetworkManagerUserSettings or can I use another name? If I need to use org.freedesktop.NetworkManagerUserSettings wouldn't that interfere with nm-applet? Yes, your program needs to request the org.freedesktop.NetworkManagerUserSettings bus name if you wish to be a user settings service. And yes, if nm-applet already has that name, you can't get it. You'd said I'm writing a program to manage wifi profiles and wish to communicate the Connection objects to the NetworkManager., which I took to mean that you wanted to write your own settings service to provide network connection data to NM. If you want to co-exist with nm-applet, that's not very easy right now because for security reasons, only one user settings service is allowed to provide network connection data to NetworkManager. If any process could do it, there'd be nothing to stop trojan horse programs from doing it too, or from reading your passwords, etc. We hope to fix this in the future by providing the full D-Bus interface in the user settings service, which would allow other programs to manipulate the connection data. That needs more work in the UI though to alert users to the program that is requesting their passwords or modifying network settings, and allow the user to either approve the other program, deny it, etc. If I write a program similar to the nm-connection-editor and add a new connection in gconf would nm-applet see the new connection and prompt for security credentials? Thanks, Greg ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Is there a way to get nm-applet to prompt for network security credentials through dbus?
I'm trying to get NetworkManager to connect to a wireless AP through the d-bus interface. The AP requires security credentials (i.e. WPA password), is there a way I can communicate to the nm-applet to prompt the user for the information? So all I have to do is tell the nm-applet to get the credentials which will create a connection and I can tell NetworkManager to use the connection provided by the nm-applet. Or am I stuck having to write my own app? Thanks, Greg ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Interfacing with NetworkManagerUserSettings
Hi, I'm writing a program to manage wifi profiles and wish to communicate the Connection objects to the NetworkManager. I can't seem to find documentation on the communication between the NetworkManager the the program providing the user settings. Can someone point me to where I can get this information or describe what I need to do? Thanks, Greg ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list