<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">At step one run "layer1.compalram.bin"<br><br>--- On <b>Fri, 1/21/11, Muhammad Rasyid Sahputra <i><mrs@infosec-id.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Muhammad Rasyid Sahputra <mrs@infosec-id.com><br>Subject: Re: radio is not started<br>To: "Bogdan Alecu" <b.alecu@yahoo.com><br>Cc: baseband-devel@lists.osmocom.org<br>Date: Friday, January 21, 2011, 12:51 PM<br><br><div id="yiv1525433720">I just newcomer in osmocombb so I guess still miss various concept here. I tried to clarify (several question mark below) the stuff which I hope don't bore anyone here :).<div><br></div><div><b>1). sylvain branch: </b>yes. I am using sylvain test branch and uncomment the TX part as written in SIM Reader wiki for firmware Makefile.</div><div><br></div><div><b>2).
 osmocon</b></div><div><br></div><div>This is the utility to upload osmocombb firmware from laptop to my motorola c118 through usb cable. </div><div><br></div><div>and here's the output I got,</div><div><br></div><div>$ ./osmocon -p /dev/tty.usbserial -m c123xor ../../target/firmware/board/compal_e88/loader.compalram.bin</div><div><br></div><div>...</div><div>...</div><div><div>Received PROMPT1 from phone, responding with CMD</div><div>read_file(../../target/firmware/board/compal_e88/loader.compalram.bin): file_size=16864, hdr_len=4, dnload_len=16871</div><div>got 1 bytes from modem, data looks like: 1b  .</div><div>got 1 bytes from modem, data looks like: f6  .</div><div>got 1 bytes from modem, data looks like: 02  .</div><div>got 1 bytes from modem, data looks like: 00  .</div><div>got 1 bytes from modem, data looks like: 41  A</div><div>got 1 bytes from modem, data looks like: 02  .</div><div>got 1 bytes from modem,
 data looks like: 43  C</div><div>Received PROMPT2 from phone, starting download</div><div>handle_write(): 1023 bytes (1023/16871)</div><div>handle_write(): 1024 bytes (2047/16871)</div><div>handle_write(): 1024 bytes (3071/16871)</div><div>handle_write(): 1024 bytes (4095/16871)</div><div>handle_write(): 1024 bytes (5119/16871)</div><div>handle_write(): 1024 bytes (6143/16871)</div><div>handle_write(): 1024 bytes (7167/16871)</div><div>handle_write(): 1024 bytes (8191/16871)</div><div>handle_write(): 1024 bytes (9215/16871)</div><div>handle_write(): 1024 bytes (10239/16871)</div><div>handle_write(): 1024 bytes (11263/16871)</div><div>handle_write(): 1024 bytes (12287/16871)</div><div>handle_write(): 1024 bytes (13311/16871)</div><div>handle_write(): 1024 bytes (14335/16871)</div><div>handle_write(): 1024 bytes (15359/16871)</div><div>handle_write(): 1024 bytes (16383/16871)</div><div>handle_write(): 488 bytes (16871/16871)</div><div>handle_write():
 finished</div><div>got 1 bytes from modem, data looks like: 1b  .</div><div>got 1 bytes from modem, data looks like: f6  .</div><div>got 1 bytes from modem, data looks like: 02  .</div><div>got 1 bytes from modem, data looks like: 00  .</div><div>got 1 bytes from modem, data looks like: 41  A</div><div>got 1 bytes from modem, data looks like: 03  .</div><div>got 1 bytes from modem, data looks like: 42  B</div><div>Received DOWNLOAD ACK from phone, your code is running now!</div><div>Received DOWNLOAD ACK from phone, your code is running now!</div><div><br></div><div><br></div><div>OSMOCOM Loader (revision osmocon_v0.0.0-757-gc4483bf-modified)</div><div>======================================================================</div><div>Running on compal_e88 in environment compalram</div><div>Found flash of 2097152 bytes at 0x0 with 2 regions</div><div><br></div></div><div><br></div><div>Is above output good enough to think
 that firmware is already downloaded by motorola c118 and the osmocombb firmware is running well there?</div><div><br></div><div><br></div><div><b>3). mobile application</b></div><div><br></div><div>since layer1 stuff is handled by osmocombb firmware which run on the phone by now, mobile application will handle layer2 and layer3. I believe this mean, mobile application will perform logical process of GSM call flow for full location update to the operator network. But to do so, Ki information is needed. And this is where sim reader feature come into the play?to read the Ki (and also IMSI?) information from the operator simcard?</div><div><br></div><div>here's the output I got,</div><div><br></div><div><div>$ sudo ./mobile -i 127.0.0.1</div><div>Password:</div><div>Copyright (C) 2008-2010 ...</div><div>Contributions by ...</div><div><br></div><div>License GPLv2+: GNU GPL version 2 or later <<a rel="nofollow" target="_blank"
 href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>></div><div>This is free software: you are free to change and redistribute it.</div><div>There is NO WARRANTY, to the extent permitted by law.</div><div><br></div><div><000e> sim.c:1206 init SIM client</div><div><0005> gsm48_cc.c:61 init Call Control</div><div><0001> gsm48_rr.c:4944 init Radio Ressource process</div><div><0004> gsm48_mm.c:1220 init Mobility Management process</div><div><0004> gsm48_mm.c:971 Selecting PLMN SEARCH state, because no SIM.</div><div><0002> gsm322.c:3471 init PLMN process</div><div><0003> gsm322.c:3472 init Cell Selection process</div><div>Mobile '1' initialized, please start phone now!</div><div>VTY available on port 4247.</div></div><div><br></div><div><br></div><div>At this point, the mobile application communicate to the osmocombb firmware through /tmp/osmocom_l2 socket, while also open VTY connection
 on port 4247 right?</div><div><br></div><div>In other words, to communicate with mobile application which will send command to the firmware in my motorola c118 through /tmp/osmocom_l2, we can use telnet to localhost port 4247?</div><div><br></div><div><br></div><div><b>4) VTY communication</b></div><div><br></div><div><div>$ telnet localhost 4247</div><div>Trying ::1...</div><div>telnet: connect to address ::1: Connection refused</div><div>Trying fe80::1...</div><div>telnet: connect to address fe80::1: Connection refused</div><div>Trying 127.0.0.1...</div><div>Connected to localhost.</div><div>Escape character is '^]'.</div><div>Welcome to the OpenBSC Control interface</div><div><i>OsmocomBB> en</i></div><div><i>OsmocomBB# show subs</i></div><div>Mobile Subscriber of MS '1':</div><div> No SIM present.</div></div><div><br></div><div><br></div><div>at this state, no sim present yet. and we can ask mobile communication to read the simcard using
 this command:</div><div><br></div><div><i>OsmocomBB# sim read 1</i></div><div><i><br></i></div><div>after running this command, if I see from console where mobile application run earlier, it shows the output:</div><div><br></div><div>...</div><div>...</div><div><div><0004> subscriber.c:556 Requesting SIM file 0x2fe2</div><div><000e> sim.c:209 got new job: SIM_JOB_READ_BINARY (handle=00000004)</div><div><000e> sim.c:697 go MF</div><div><000e> sim.c:241 SELECT (file=0x3f00)</div><div><000e> sim.c:187 sending APDU (class 0xa0, ins 0xa4)</div></div><div><br></div><div><br></div><div>and if I put command from VTY to show information about subscriber saved inside my simcard,</div><div><br></div><div><div><i>OsmocomBB# show subs 1</i></div><div><i>Mobile Subscriber of MS '1':</i></div><div><i> IMSI: </i></div><div><i> Status: U2_NOT_UPDATED  IMSI detached  LAI: invalid</i></div><div><i> Access barred
 cells: no</i></div><div><i> Access classes:</i></div></div><div><br></div><div>At this point, I come into conclusion that the mobile application tried to read the simcard (this is shown by <000e> sim.c:209 got new job: SIM_JOB_READ_BINARY (handle=00000004)) but failed as it can't show what is the IMSI of my simcard?thus location update process will failed since information such as IMSI and Ki was failed to be retrieved?</div><div><br></div><div><br></div><div><b>5) Mobile application configuration</b></div><div><br></div><div>I think the VTY shell is similar to router configuration, where it could load previous saved simcard configuration, or MS name to be used, etc. Thus modify the MS name won't change the situation as locup is still failed?</div><div><br></div><div><br></div><div><br></div><div>Please Advise.</div><div><br></div><div>Thanks.</div><div><br></div><div><br></div><div>Regards,</div><div>Rasyid</div><div><br><div><div>On
 Jan 21, 2011, at 6:19 PM, Bogdan Alecu wrote:</div><br class="yiv1525433720Apple-interchange-newline"><blockquote type="cite"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">I guess you have the default configuration: <br>"No Mobile Station defined, creating: MS '1'"<br><br>After you start "mobile" application, select "enable" and then "write". This will write your configuration to /etc/osmocom/osmocom.cfg After that edit this file and set from no sim to sim reader. Restart the mobile application and it should work.<br></td></tr></tbody></table><br>

      </blockquote></div><br></div></div></blockquote></td></tr></table><br>