| Issue 3: | Use GTA02 GSM Passthrough mode as external Android GSM modem | |
| 2 people starred this issue and may be notified of changes. | Back to list |
Sign in to add a comment
|
We need the presence GSM modem for Android to verify several functions such
as Bluetooth profile and RIL. It is fairly useful to enable GTA02 GSM
Passthrough mode as external Android GSM modem.
Reference:
http://unadventure.wordpress.com/2007/10/28/qpe-430-plus-qemu/
http://sourceforge.net/projects/sercd/
http://sourceforge.net/projects/cyclades-serial/
http://blogs.gnome.org/thos/2007/10/30/turning-the-neo1973-into-an-expensive-external-gsm-modem/
http://wiki.openmoko.org/wiki/Gsmd/document
The expected usage scenario:
* Minimal Linux kernel + initramfs runs on GTA02 and performs the
required system initializations including UARTs.
* Userspace program attempts to redirect UART to GSM modem
(/dev/ttySAC0) connections to USB network.
* Beagleboard connects to GTA02 via USB wire, and it makes the
communications with each other.
Quick hacking note:
On Neo
root@om-gta02:/sys# echo 1 > /sys/devices/platform/neo1973-pm-gsm.0/power_on
root@om-gta02:~# nc -l -p 4270 < /dev/ttySAC0 > /dev/ttySAC0 &
root@om-gta02:~# nc -l -p 4271 < /dev/input/event3 &
On beagleboard
pty 192.168.0.202 4270 &
nc 192.168.0.202 4271
Where pty.c located at
http://svn.openmoko.org/trunk/src/host/qemu-neo1973/pty.c
RIL implementation for FreeRunner?/GTA02 :
http://git.koolu.org/?p=platform/hardware/ril.git;a=shortlog;h=refs/heads/donut
|
||||||||||||
,
Aug 11, 2009
(No comment was entered for this change.)
Owner: ticktock35
|
|||||||||||||
,
Aug 11, 2009
Reassign to Erin, who is the exact person working on RIL at 0xlab. Expected to allow the communications between passthrough GSM modem and RIL on Beagleboard.
Owner: erinyueh
|
|||||||||||||
,
Aug 20, 2009
Verify this issue in Android emulator (ubuntu9.04) + GTA02 GSM modem
On Neo
root@om-gta02:/sys# echo 1 > /sys/devices/platform/neo1973-pm-gsm.0/power_on
root@om-gta02:~# nc -l -p 4270 < /dev/ttySAC0 > /dev/ttySAC0 &
On Ubuntu
erin@daydreamer:~/$ pty 192.168.0.202 4270 &
erin@daydreamer:~/mydroid_emu/out$ ./host/linux-x86/bin/emulator -system
./target/product/generic/system.img -sysdir ./target/product/generic/system -data
./target/product/generic/userdata.img -kernel
../prebuilt/android-arm/kernel/kernel-qemu -ramdisk
./target/product/generic/ramdisk.img -qemu -serial /dev/pts/2
On Android Emulator
modify /system/build.prop
rild.libargs=-d /dev/ttyS2
Based on this scenario, I can see the communication between RIL and GSM modem and it
runs normally. But still have some problems in RIL, like the radio state is wrong and
it displays NO SIM card, actually it already camp to the GSM network. Also, I found
something wrong on sqlite db. it cannot update the current operator info to telephony.db
Now, I start to use beagle board to verify NEO GSM modem and still have some problems
on connecting them. Trying to fix it!
|
|||||||||||||
,
Aug 25, 2009
Based on master tree from Android git server on Aug 24, i built an Android emulator and modified few code. I can use NEO as an external modem now. Please check the attached screen shot. I can camp to GSM network and also retrieve SMS message from SIM card. |
|||||||||||||
,
Aug 28, 2009
I am stuck on RIL now. I tried to run two Android emulators and tried to call to each other. It would reject an incoming call from sending AT command 'AT+CHLD=0' to modem. On this case, i cannot receive any calls from GSM network. |
|||||||||||||
,
Sep 03, 2009
I found why i cannot receive incoming call. http://code.google.com/p/android/issues/detail?id=1858 after set 'Settings.Secure.DEVICE_PROVISIONED' to 1, it can receive the incoming call now. Looks pretty good... * Camp to GSM network [OK] * Receive incoming call and answer [OK] * Dial out and hangup [OK] * Send/Receive SMS [OK] |
|||||||||||||
,
Sep 18, 2009
I wrote a HOWTO in my blog. If anyone has interests about this issue, you may read it for reference. http://i-miss-erin.blogspot.com/2009/09/android-emulator-external-gsm-modem.html |
|||||||||||||
,
Oct 18, 2009
Ready to work on beagle-donut?
Cc: ticktock35
|
|||||||||||||
,
Oct 18, 2009
mmh...after we upgrade beagle to donut version, i can start to work on it. Probably from the end of this week. |
|||||||||||||
,
Nov 04, 2009
Hi Erin, For your reference. I put a tickminicom in /home/root in Freerunner, disable starting up xserver in /etc/rc5.d, adding export_modem.sh in /etc/init.d/, and then link this script in /etc/rc5.d as a starting script. This may help setting up the Freerunner and Audio path in advance. |
|||||||||||||
,
Nov 05, 2009
Finally, I can connect external GSM modem (GTA02) in Beagle board successfully now. I found why I saw weird modem behaviour in Beagle board is device path problem. Here is the path to solve this problem [1]. Currently I am using beagle-donut branch, ril status is as below: * camp to network in UI (OK) * dial out a phone call from dialer UI (OK, but not check sound yet) * incoming call in UI (received AT commands, but no response in UI) Hi Tick, Thanks for the shell script! I will try to see whether audio path is OK or not. [1] http://gitorious.org/0xdroid/hardware_ril/commit/397b551e9652c41acd16ea1f9d9e17de8a5a0f47 |
|||||||||||||
,
Nov 05, 2009
Erin, Great work! Once the infrastructure is ready, it is time to close this issue, and file new issues specific to detailed phone functionality. |
|||||||||||||
,
Nov 11, 2009
close this issue and file a new issue about strange interactions between modem and UI.
Status: Fixed
|
|||||||||||||
,
Nov 24, 2009
upload pty.c file and made some tiny changes for displaying debug information and changing mode of opened device. |
|||||||||||||
|
|
|||||||||||||