Hi,
I have problem with ./mobile application.
When I run this application I have only information that sending APDU
(class 0xa0, ins 0xa4).
Some more information:
1. At first I started layer1 firmware n motorola C115
./osmocon -p /dev/ttyS0 -m c123xor
/root/osmocom-bb/src/target/firmware/board/compal_e88/layer1.compalram.bin
2. Second I execute ./mobile
./mobile -i 224.0.0.0
3. I pressed power button on my phone.
After this I received only this following information:
<000e> sim.c:1206 init SIM client
<0005> gsm48_cc.c:61 init Call Control
<0001> gsm48_rr.c:4944 init Radio Ressource process
<0004> gsm48_mm.c:1220 init Mobility Management process
<0004> gsm48_mm.c:971 Selecting PLMN SEARCH state, because no SIM.
<0002> gsm322.c:3471 init PLMN process
<0003> gsm322.c:3472 init Cell Selection process
<0003> gsm322.c:3522 Read stored BA list (mcc=260 mnc=02 Poland, Era)
<0003> gsm322.c:3522 Read stored BA list (mcc=260 mnc=01 Poland, Plus)
<0003> gsm322.c:3522 Read stored BA list (mcc=260 mnc=06 Poland, Play)
<0003> gsm322.c:3522 Read stored BA list (mcc=260 mnc=03 Poland, Orange)
Mobile '1' initialized, please start phone now!
VTY available on port 4247.
<0004> subscriber.c:556 Requesting SIM file 0x2fe2
<000e> sim.c:209 got new job: SIM_JOB_READ_BINARY (handle=00000004)
<000e> sim.c:697 go MF
<000e> sim.c:241 SELECT (file=0x3f00)
<000e> sim.c:187 sending APDU (class 0xa0, ins 0xa4)
I am waiting, waiting, waiting but unfortunately without progress...
Bellow my osmocom.cfg file:
!
! OsmocomBB () configuration saved from vty
!!
!
line vty
no login
!
gps device /dev/ttyACM0
gps baudrate default
no gps enable
!
ms 1
layer2-socket /tmp/osmocom_l2
sap-socket /tmp/osmocom_sap
sim reader
network-selection-mode auto
imei 000000000000000 0
imei-fixed
no emergency-imsi
no call-waiting
no auto-answer
no clip
no clir
tx-power auto
no simulated-delay
no stick
location-updating
codec full-speed prefer
codec half-speed
no abbrev
support
sms
a5/1
a5/2
p-gsm
e-gsm
r-gsm
dcs
class-900 4
class-dcs 1
channel-capability sdcch+tchf+tchh
full-speech-v1
full-speech-v2
half-speech-v1
min-rxlev -106
dsc-max 90
exit
test-sim
imsi 001010000000000
ki xor 00 00 00 00 00 00 00 00 00 00 00 00
no barred-access
no rplmn
hplmn-search foreign-country
exit
no shutdown
exit
!
Unfortunately I have no idea how to resolve this problem so please help me...
br,
Grzegusz
Hello OsmocomBB list members,
To shortly introduce myself, i am a sysadmin with much spare time and
a Motorola C115 mobile phone.
I came to this place after watching a recording of the OsmocomBB talk
at the 27c3. That really started my interest on opensource GSM.
After reading the wikipages and the mailing list archives i downloaded
the sources and had a fully compiling OsmocomBB setup within a few hours.
Great work!
After slaying some headphonecables and an usbcable i hooked my c115
onto the serialport of my pc and it booted out of the box!
Since i am neither a programmer nor an electronic engineer i thought
about what i could be interested in doing that contrbiutes to OsmocomBB.
(Learning a little C has not hurt too many people i think. so i am on it.)
I didnt find it at http://bb.osmocom.org/trac/wiki/AreasOfWork but in
the Mailinglistarchives of April-2010 i stumbled upon Christian Vogels
post "Subject: PATCH: 5x8 font". After some manual patching i made it
to compile the demo app (Printing all available characters in the font
from upper left corner down to the bottom. Now that looked allmost like
a phone :)
It seems like there have not been any follow ups on proportional fonts
and the remaining ascii characters as well as the possibility to view
different sizes of fonts on the screen.
Because there is not much to see on the C115 and there is no
navigationsystem of any kind implemented in the compal_e88 firmware
I typed together a ericsson clone menu structure with a total of 330
menuitems (transations english to german allmost finished) to have
something to display once the proportional 5x8 fonts are finished.
now i would continue to write
a menu action handler that checks if a navigation key is pressed
if a entry in the menu is selected lets look if there is
a PhoneMenu "muid" with the siblings "suid" the menu is drawn.
if it is a sibling only a switch case list where all actions
get caught and processed will handle it.
Well, what do you think about that? Should it be built in another way?
Am i to early in typing menue structures while the whole "rendering"
is not sorted out in any way? Does anyone work on the fonts or a UI?
I really am not able judge whether a nested structure monster like this
really is the right solution. What it definitly is it is easy to read
understand and extend. at least for me ;)
if someone wants it i can post the complete menu (~1200 lines) somewhere.
Best wishes,
Rade
Below are some snipplets of the things i allready did:
...sniplets...
struct PhoneMenu
{
 int muid; /* menu uid */
 const char* menuLabel_en; /* menu name, english */
 const char* menuLabel_de; /* menu name, german */
 char siblings; /* amount of siblings within the menu */
 struct PhoneMenuSibling pms[]; /* nested structure below */
};
struct PhoneMenuSibling
{
 int suid; /* sibling uid */
 const char* siblingLabel_en; /* label in english */
 const char* siblingLabel_de; /* label in german */
};
....
A Menu looks like this:
struct PhoneMenu menu = /* the startscreen */
{
0,
"Main Menu", /* menu label */
"Hauptmenü", /* menu label in german language */
6, /* 6 items in the list below */
{
{1, "Phonebook", "Telefonbuch"},
{2, "Messages", "Nachrichten"},
{3, "Call information", "Anrufinformation"},
{4, "Active call", "Aktive Verbindung"},
{5, "Settings", "Einstellungen"},
{6, "Extras", "Extras"}
}
};
struct PhoneMenu menu_phone_book =
{
1,
"Phone book",
"Telefonbuch",
10,
{
{11, "Call Contact", "Kontak Anrufen"},
{12, "Add Contact", "Kontakt hinzufügen"},
{13, "Edit Contact", "Kontakte bearbeiten"},
{14, "Business Cards", "Visitenkarten"},
{15, "Call from SIM", "Adresse aus SIM"},
{16, "Groups", "Gruppen"},
{17, "Calling Cards", "Rufkarten"},
{18, "Options", "Optionen"},
{19, "Memory status", "Speicherverbrauch"}
{10, "Special numbers", "Spezialnummern"}
}
};
.......
struct PhoneMenu menu_phone_book_business_cards_receive =
{
143,
"Receive",
"empfange Visitenkarte",
2,
{
{1431, "Via Infrared", "via Infrarot"},
{1432, "Via Bluetooth", "via Bluetooth"}
}
};
>Do you run your own network? How do you plan to test your modifications?
No, I'm not running my own network. I tried to make an emergency call and I got a voice saying to call to different numbers (police, fire dept, etc). That's why I need to know exactly what number is dialed from Osmocom and where I can modify it. I looked on the code but couldn't find (maybe I'm too tired).
Hello,
I was walking through trac while I came across this file:
http://bb.osmocom.org/trac/browser/src/host/layer23/src/common/sim.c
I see here:
183 /* send APDU to card reader */
184 static int sim_apdu_send(struct osmocom_ms *ms, uint8_t *data,
uint16_t length)
185 {
186 LOGP(DSIM, LOGL_INFO, "sending APDU (class 0x%02x, ins 0x%02x)\n",
187 data[0], data[1]);
188 l1ctl_tx_sim_req(ms, data, length);
189 return 0;
190 }
ohoh, that's hardcoded.
If we would like to have a software SIM, a SIM in a card reader on the
PC, or a real sim in the MS, I think this would this be the correct
place to plug a modular sim implementation.
I mean something that looks like:
struct osmocom_sim_ops {
int (*sim_apdu_init)(.....);
int (*sim_apdu_fini)(.....);
void (*sim_op_reset)(.....);
void (*sim_apdu_send)(.....);
void (*sim_response_callback)(.....);
};
void ms_register_sim_driver(struct osmocom_ms *ms, struct osmocom_sim_ops *ops);
this could be a part of struct osmocom_ms.
I would be easy to have 3 implementations:
-sim in the mobile, using the current calls 'l1ctl_tx_sim_req'
'l1ctl_tx_sim_conf'
-sim in PCSC using pcsclite or winscard, and a command-line option to
select the reader (by index, by name, or first reader with a card
inside for simple setups)
-virtual sim using pure software
What do you think about this?
Regards
Sebastien
Hello,
What number is it dialed when I place the emergency call? Maybe you could also point me to where I find that number as I want to modify it. Thanks.
Regards,
Bogdan
Hi all,
Harald - I will put the sourcecode later on today. The reason I didn't was because the code it's not so clean and good - but it works.
Martynas - my phone remain stationary and in fact I have over 40 cells (from other networks too). I don't find it to be a lot. About the precision, Google returned "accuracy":3875.0" which is surprisingly true. I was about 3-4km away from the final coordinates. Maybe I'll modify the code to give the position for each cell it finds.
Tomas - No proprietary libraries, the code will be here in the evening. It's not so professional done, but considering that it took me somewhere around 30 minutes, I'm good with it.
Regards,
Bogdan
As I said in a previous post, I don't see why I need to have a GPS to get an approximation of my location. I then suggested using an open source cell list or Google API.
So, I have just finished writing a program that parses your kml file from the gsmmap, send the request to Google and it will get your approx location (just like Google Maps on your mobile) and write the result in another kml file.
The program is written in Java. To run it under windows:
C:\Program Files\Java\jdk1.6.0_17\bin>java -jar glocation.jar
Usage: glocation -i <path to input file> -o <output file>
C:\Program Files\Java\jdk1.6.0_17\bin>java -jar glocation.jar -i c:\gsm.kml -o final.kml
Name : MNC 03 (T-Mobile)
Name : LAC 3030
Name : CELL-ID 0031
Name : CELL-ID 0032
Name : CELL-ID 135c
Name : CELL-ID 24a7
Name : CELL-ID 4c2a
Name : CELL-ID 4c31
Name : CELL-ID 4d10
Name : CELL-ID 51e3
Name : CELL-ID 537b
Name : CELL-ID 5567
Name : CELL-ID 5f8a
Name : LAC 4010
Name : CELL-ID 4c34
Name : CELL-ID 5b4b
---------------------------------------
Sending data to Google...
{"location":{"latitude":48.21451,"longitude":16.356414,"accuracy":511.0},"access
_token":"2:BaEsaRey871FCt1e:A5vJ-lyJuPrukpMV"}
lat=48.21451
long=16.356414
Hi list!
Thanks to the mailing-list's archive i found how to activate the "sim
reader" option on osmocom.cfg.
Now i'm trying to find on the wiki some more infos about osmocom.cfg
configuration, but seems to be missing.
Some hints?!
Thank you for attention
Regards
Luca