![]() |
PHS8 modem
Hello!
I've just made a short video showing the first Neo900 proto board (the same that Nikolaus had during OHSW) making a call to a GTA04 and vice versa, and sending a SMS message. https://www.youtube.com/watch?v=FNSPEWvTJTc The PC to which the board is connected is running Debian GNU/Linux with freesmartphone.org middleware (generic "singleline" fsogsmd plugin for now) and SHR GUI apps, installed from Debian repos. GTA04 runs full SHR distro. I've also started documenting the most important stuff from our POV about the modem: http://projects.goldelico.com/p/neo900/page/Modem/ For the record: video made with N900 :D |
Re: PHS8 modem
Impressive. Good to see it does actually work (maybe? Could be a web service ;) )
Looks good! Thanks for the vid, hopefully you guys throw out some more. Ignore the haters and trolls! Keep it up! |
Re: PHS8 modem
Well, next step: connect the "Neo900" modem to the GTA04 USB, et voila: a veritable Neo900 prototyping setup, consisting of DM3730 and all, connected to PHS8 modem via USB, (almost) exactly like we'll see it in final Neo900. Arguable if a N900 would beat the GTA04, due to the hw kbd, or the GTA04 wins thanks to the DM3730 instead of N900's OMAP3530
|
Re: PHS8 modem
@dos1:
Can you check the dependencies of phoneui-apps in Debian please? I tried just the GUI (without modem) in a Virtualbox-VM running Jessie/amd64 and it seems there are some evas-related packages missing. strace excerpt of phoneuid when starting phoneui-dialer in another terminal: Code:
stat("/usr/lib/x86_64-linux-gnu/evas/modules/engines/software_x11/linux-gnu-x86_64-1.8.6/module.so", 0x7fffb5888280) = -1 ENOENT (No such file or directory)phoneuid.log says this: Code:
2014.05.20 23:15:50.185004 [libphone-ui-shr] CRITICAL: Wasn't able to create a window (ui_utils_view_init:76)libevas1-engines-x and libevas1-engine-fb were not installed and after instaling the latter the above problem disappeared. A second problem seems to be that phoneuid doesn't run stable. About 5 seconds after starting phoneui-quick-settings phoneuid segfaulted: Code:
write(2, "\n(process:4579): libphone-ui-shr"..., 234 |
Re: PHS8 modem
Quote:
Quote:
Try to save this file as /etc/frameworkd.conf : http://git.freesmartphone.org/?p=fra...70e1e3;hb=HEAD ...but libphone-ui-shr segfaulting due to missing opreferencesd is indeed a bug and I can reproduce it here after stopping frameworkd. Thanks! |
Re: PHS8 modem
fso-frameworkd is installed but I had indeed no config.
I saved the file in /etc (and in /etc//om-gta02 as the link suggests) and rebooted the VM. But according to strace neither the deamon nor the UI applications try to read the config file. It seems like phoneuid needs quite a while until it accepts connections from the UI applications. If I start one within 30 seconds after starting the deamon I still get the timeout. If I wait two minutes phoneui-quick-settings comes up and I can switch the autodimming slider. However, after another two minutes this window is unresponsive and I get timeouts again when starting new UI applications (for example from the dialer). I don't see a pattern. |
Re: PHS8 modem
Quote:
Autodim and autosuspend sliders use them both, so they might act badly if they're missing. This software was developed for SHR distro and distro-wise it's easier to ensure that everything needed is in place. Also, libphone-ui-shr isn't the most beautiful piece of code on Earth... I'm planning to rewrite it in some spare time, but there's already a lot of entries on my todo list :c |
Re: PHS8 modem
Quote:
Quote:
btw: (of course) I've seen complaints about a missing modem in some of the strace outputs but I don't know how to reproduce them so I can't give you the exact message. Maybe that's a point to look into because it's an unusual setup for a phoning suite and might need some testing. Quote:
|
Re: PHS8 modem
Quote:
BTW. You can try to use ofono-phonesim to simulate the modem. Feel free to ask in case of problems. You can easily catch me on IRC ;) |
Re: PHS8 modem
Quote:
The SHR lock screen came up automatically after some idle time and I could deactivate it via the autodim slider. So apparently this part is working. But it took about 2-3 minutes after the boot again until the daemon seemed to be able to answer to any client programs. And it seems if you forcefully kill some client the daemon becomes unresponsive again. Quote:
Quote:
Depending on how extensively you'll rework the code, I'd love to see some simple CLI interfaces like these: Code:
phonecli-dialer -call »phone number«Quote:
Quote:
|
Re: PHS8 modem
Quote:
|
Re: PHS8 modem
Quote:
Code:
mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.Call.Initiate "»phone number«" "voice"(and mdbus2 is a very nice dbus tool. You could do the same with dbus-send, but mdbus2 has simplier syntax and amazing interactive mode with autocompletion :)) Let me explain the architecture of FSO/SHR system a bit: FSO daemons (fsogsmd, fsodeviced, fsousaged, etc.) talk directly with the hardware and provide a dbus API for other apps to use. So, for instance, fsogsmd exports an API for basic stuff like "send message", "initiate a call", "release a call", definies signals for "incoming message", "incoming call" etc. and other applications can use that API to talk with the modem, no matter which modem it is (as long as it's supported by FSO). So FSO daemons are "servers" here. Then, there are SHR apps. Here it's a bit more complicated, as there are both servers and clients, even simultaneously. phoneuid - it's a daemon that runs the UI stuff. It's also a server that exports its own dbus API. phoneuid actually does nothing else than displaying particular UI screen when requested to do so. You can use this API in your app to, for instance, request user to add a number to his contact book (as opposed to doing it for him via using FSO's opimd directly). What's interesting - phoneuid doesn't have its UI implemented in it. It's modular - it can use a different library for every screen (like contacts, messages, dialer etc.) and it's configurable by the user in config file. By default it uses libphone-ui-shr (which uses E17 libs) for everything, but you could write your own library - and it doesn't matter if it would use GTK+, Qt or dunno what else instead. UI libraries use standard FSO API to perform actions, just like the mdbus2 calls above. And the last one: phonefsod - the binding between FSO and SHR. This is a daemon that listens on FSO signals and reacts accordingly by launching phoneuid actions. For instance, when FSO reports incoming call, phonefsod calls org.shr.phoneui.CallManagement.DisplayIncoming and phoneuid displays a "incoming call" window as implemented in libphone-ui-shr. Or, when FSO reports timeout on inactivity, phonefsod calls org.shr.phoneui.IdleScreen.Display, and phoneuid displays the lock screen. There are also phoneui-apps (like phoneui-contacts, phoneui-dialer etc.), but those are just thin wrappers on single dbus calls and can be easily replaced with mdbus2 invocations. I suppose we're drifting a bit away from the topic in this thread, but hopefully this helps a bit... and maybe someone will decide to give it a go and will become a SHR developer - there's A LOT of stuff to do, so it's a perfect opportunity to learn when hacking on interesting stuff! :D |
Re: PHS8 modem
Quote:
http://wiki.maemo.org/Phone_control#Send_SMS http://maemo.cloud-7.de/maemo5/usr/local/bin/contact2 cheers jOERG |
| All times are GMT. The time now is 12:18. |
vBulletin® Version 3.8.8