Message ID | 20141113174534.GO26481@atomide.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi, On Thu, Nov 13, 2014 at 09:45:36AM -0800, Tony Lindgren wrote: > * Pavel Machek <pavel@ucw.cz> [141113 08:23]: > > OTOH ofono seems pretty reasonable. So I played a bit, and result > > is python/pygtk gui which can receive an sms, initiate a call, and > > report missed call. If someone wants to play, source is at > > > > https://gitorious.org/tui/tui/source/b6141107e9341a1412720aed4b0d09143dfa2f4e:ofone > > Pavel, care to fill in the the following type patch with some > instructions in the description now that you got it working? Could we even have some "permanent" instructions under Documentation/? > I did not have luck yet when I tried. I got the /dev/cmt/* > entries after adding pm=1 param, but no luck scanning any networks. I haven't tested anything yet, but looking forward to do that during the weekend... Sounds pretty exciting. :-) A. -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi! > > > > Do you have an example client that can talk to ofonod? > > > > > > I have not yet played with userland stuff. You could try > > > telepathy-ring, which integrates the ofono into the telepathy > > > framework. > > > > Ok, I took a look, and telepathy-ring is not in debian, and has > > a lot of dependencies. > > > > OTOH ofono seems pretty reasonable. So I played a bit, and result > > is python/pygtk gui which can receive an sms, initiate a call, and > > report missed call. If someone wants to play, source is at > > > > https://gitorious.org/tui/tui/source/b6141107e9341a1412720aed4b0d09143dfa2f4e:ofone > > Pavel, care to fill in the the following type patch with some > instructions in the description now that you got it working? > > I did not have luck yet when I tried. I got the /dev/cmt/* > entries after adding pm=1 param, but no luck scanning any networks. I'm using nfsroot (no modules), .config is attached. Debian v7.7, ofono installed. To launch ofono, I'm using: rmdir /dev/cmt ln -s /sys/bus/hsi/devices/n900-modem/ /dev/cmt killall ofonod sleep .1 ofonod --nodetach --debug & # enable the modem mdbus2 -s org.ofono /n900_0 org.ofono.Modem.SetProperty Powered true # enable modem's RF parts mdbus2 -s org.ofono /n900_0 org.ofono.Modem.SetProperty Online true # scan for available networks (takes some time) mdbus2 -s org.ofono /n900_0 org.ofono.NetworkRegistration.Scan I do have working SIM card in it. (Alternatively, ofone button "online" can be used). Good luck, Pavel
On Fri, Nov 14, 2014 at 08:37:56AM +0100, Pavel Machek wrote: > I'm using nfsroot (no modules), .config is attached. Debian v7.7, > ofono installed. > > To launch ofono, I'm using: > > rmdir /dev/cmt > ln -s /sys/bus/hsi/devices/n900-modem/ /dev/cmt At least with Debian as base you can add this to your /etc/rc.local and be happy, since the link will be created before ofono starts via /etc/init.d/ ;) I did not send ofono guys a patch to use /sys/bus/hsi/devices/n900-modem/, since the kernel is supposed to handle the PM, so there will be another, simpler interface (I plan to use pm=2 for that). > killall ofonod > sleep .1 > ofonod --nodetach --debug & or just use "/etc/init.d/ofono restart". The above is mostly useful for getting debug output from ofono. > [...] The short description for .config: CONFIG_NOKIA_MODEM must not be disabled. It should depend on everything else needed: CONFIG_PHONET CONFIG_HSI CONFIG_OMAP_SSI CONFIG_OMAP_SSI_PORT CONFIG_SSI_PROTOCOL CONFIG_NOKIA_MODEM -- Sebastian
--- a/arch/arm/configs/omap2plus_defconfig +++ b/arch/arm/configs/omap2plus_defconfig @@ -88,6 +88,7 @@ CONFIG_IP_PNP_BOOTP=y CONFIG_IP_PNP_RARP=y # CONFIG_INET_LRO is not set CONFIG_NETFILTER=y +CONFIG_PHONET=m CONFIG_CAN=m CONFIG_CAN_C_CAN=m CONFIG_CAN_C_CAN_PLATFORM=m @@ -158,6 +159,7 @@ CONFIG_USB_ALI_M5632=y CONFIG_USB_AN2720=y CONFIG_USB_EPSON2888=y CONFIG_USB_KC2190=y +CONFIG_USB_CDC_PHONET=m CONFIG_LIBERTAS=m CONFIG_LIBERTAS_USB=m CONFIG_LIBERTAS_SDIO=m @@ -197,6 +199,11 @@ CONFIG_HW_RANDOM=y CONFIG_I2C_CHARDEV=y CONFIG_SPI=y CONFIG_SPI_OMAP24XX=y +CONFIG_HSI=m +CONFIG_OMAP_SSI=m +CONFIG_NOKIA_MODEM=m +CONFIG_SSI_PROTOCOL=m +CONFIG_HSI_CHAR=m CONFIG_PINCTRL_SINGLE=y CONFIG_DEBUG_GPIO=y CONFIG_GPIO_SYSFS=y @@ -312,9 +319,11 @@ CONFIG_USB_CONFIGFS_ECM=y CONFIG_USB_CONFIGFS_ECM_SUBSET=y CONFIG_USB_CONFIGFS_RNDIS=y CONFIG_USB_CONFIGFS_EEM=y +CONFIG_USB_CONFIGFS_PHONET=y CONFIG_USB_CONFIGFS_MASS_STORAGE=y CONFIG_USB_CONFIGFS_F_LB_SS=y CONFIG_USB_CONFIGFS_F_FS=y +CONFIG_USB_G_NOKIA=m CONFIG_MMC=y CONFIG_SDIO_UART=y CONFIG_MMC_OMAP=y @@ -359,6 +368,7 @@ CONFIG_MSDOS_FS=y CONFIG_VFAT_FS=y CONFIG_TMPFS=y CONFIG_TMPFS_POSIX_ACL=y +CONFIG_CONFIGFS_FS=y CONFIG_JFFS2_FS=y CONFIG_JFFS2_SUMMARY=y CONFIG_JFFS2_FS_XATTR=y