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
*bump*
Anyone have any thoughts / advice on this?
Many Thanks,
Matt.
----- Original Message ----
From: MATTHEW EVANS <mattjevans(a)btinternet.com>
To: baseband-devel(a)lists.osmocom.org
Sent: Friday, 21 January, 2011 21:08:36
Subject: Non Standard Baud Rates?
Hi,
I'm trying to get the burst_ind branch working at the higher speed baud rates. I
have a USB to Serial FTDI Cable (FT232R) plus the T191. This setup works fine
with the main trunk of osmocombb. When I fire up osmocon, layer1 appears to
download to the phone and runs successfully. Osmocon then logs 'Received
DOWNLOAD ACK from phone, your code is running now!'. The phone has layer1.bin
displayed as usual. However it goes no further and just hangs.
Could anyone please give any advice on what to try next?
Thanks,
Matt.
Make sure of the following:
1. Edit ~/.bashrc and put
export PATH=$PATH:<YOURPATH>/install/bin , where "yourpath" is your full path to where
arm-elf-gcc is located
2. restart your computer (sometimes it helps)
3. run the "make" under the same user that has the above path (no sudo make !!!)
Hi everyone.
I´m coding a fuzzer with osmocombb API, I expect send you something good in a mounth or two (It depends how much work i have).
I have two questions.
First, I triying a simple SMS handler, to send and receive. With wireshark I don´t see RACH request, I suppose it is because the DSP inside the phone manage it, am I wrong? About this, I don´t have knowledge about electronics, so I don´t want touch, any filter. So I need to see the RACH of the same phone were osmo is running, not another.
The second question is about SI AGCH response, I didn´t find the algorithm to know which SDCCH channel gives the BTS to the MS to send/recv LAPDm bursts.
---
Leonardo Nve
leonardo.nve(a)gmail.com
---
hi,
i typed "make osmocon" and "make layer23" and got some output.but i did not
get the firmware binaries in *src/target/firmware/board/compal_e88 *and* in
**src/host/osmocon/osmocon*, in *src/host/layer23/src/misc* and *
layer23/src/mobile*.
instead i got files like *.o,*.c etc..
plz help
hi,
i am having errors while bulding osmocom.I tried finding the solution in
archives(that of zaki and others) but was unable to figure out.
the error is:
configure: error: in
`/home/gsm/pro/osmocom-bb/src/shared/libosmocore/build-target':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** [shared/libosmocore/build-target/Makefile] Error 77
i am also attaching the config.log file
plz help me out.
Hi laf0rge,
I was building the firmware with a GCC 4.5.2 created by Steve-m's script and
had to include limits.h for UINT_MAX. While reading the code I stumbled across
a typo... I think the patches can be picked to master as well.
holger
hi,
I'll be listing some issues I found in SIMtrace.
This is to warn future users.
I don't have time now, but I intend to work on this project in 1 or 2
weeks and correct these bugs.
1. when starting host program simtrace, the firmware will first return
ATR. This is an error if simtrace is started after the card has been
reseted. The program should use the state of the reset and vcc lines to
know the state.
2. when using a usb hub, having a lot of USB traffic, or poor USB signal
quality (I don't know exactly), bulk read timeouts can occur in host program
simtrace/at91sam7/host/main.c line 230:
rc = usb_bulk_read(udev, SIMTRACE_IN_EP, buf, sizeof(buf), 100000);
rc is -110 (REQUEST_TIMEOUT). I increased the timeout (100000) so to
have less errors (but they still occur), and I ignore this error instead
of exiting (tracing still works).
3. it seems simtrace can loose track of the I/O stream after some
traffic. see pcsc_apdu.log to see the original, and simtrace_apdu.log
for the captured traffic.
in the end, simtrace misses:
APDU: A0 C0 00 00 0F
and does a wrong following APDU parsing
The problem occurs when using a OmniKey CardMan 5321 and Alcor Micro
AU9520. Thus the reader should not be the origin.
Also, if only the command where the error occurs is sent, no bytes are
skipped. But another error occurs (see next bug)
4. when executing only the last commands, then it is wrongly interpreted
(as ATR), but no bytes are skipped
ATR (12): 3b 0a 41 00 3f 43 00 01 50 29 01 02
ATR (66): a0 a4 00 00 02 a4 7f 20 9f 17 a0 a4 00 00 02 a4 6f ad 9f 0f
a0 c0 00 00 0f c0 00 00 00 03 6f ad 04 00 04 f0 44 01 02 00 00 90 00 a0
b0 00 00 03 b0 00 00 00 90 00 3b 0a 41 00 3f 43 00 01 50 29 01 02
I already wrote a SIM traffic parser for the PC before simtrace
appeared. I used a logic analyzer to record the traffic.
I will integrate the ATR and APDU parsing/checking into the simtrace
firmware. Wrong recorded traffic will be discarded instead of affecting
the rest of the parsing.
thanks,
kevin
Shame on me when I'm not able to print debug messages from cell_log :)
but...
cell_log -d DRR,3
doesn't give me any additional output. I would like to see the line
LOGP(DRR, LOGL_INFO, "IMMEDIATE ASSIGNMENT:\n");
from cell_log.c.
Can anybody help me?
Hi,
I know we have a http git mirror for openbsc. Do we have the same for
osmocom-bb.git?
the git tcp port is censored where I'm connected from.
Sorry if I misread the list archive :(
Sebastien