From chliny2016 at gmail.com Tue Dec 1 01:17:59 2020 From: chliny2016 at gmail.com (Chunlin Yang) Date: Mon, 30 Nov 2020 17:17:59 -0800 Subject: Help on using pysim to flash a SIM card Message-ID: Hi All,I'm following this wiki http://osmocom.org/projects/pysim/wiki I cloned pysim repo, and I cloned this repo also: git clone https://github.com/LudovicRousseau/pyscard.git *although pcsc_scan works* But when I run below: cd ./pySim-read.py ?p 0 *it always gives me this error:* cd ~/pysim ./pySim-read.py -p0 Traceback (most recent call last): File "./pySim-read.py", line 36, in from pySim.cards import card_detect, Card File "/home/support/pysim/pySim/cards.py", line 29, in from smartcard.util import toBytes ModuleNotFoundError: No module named 'smartcard' BTW, I have manually imported smartcard in python, and it's successful. Br, Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From vyanitskiy at sysmocom.de Tue Dec 1 08:45:21 2020 From: vyanitskiy at sysmocom.de (Vadim Yanitskiy) Date: Tue, 1 Dec 2020 09:45:21 +0100 Subject: Help on using pysim to flash a SIM card In-Reply-To: References: Message-ID: <90daa2f7-dc90-7bba-cf18-ed1b0ce51e9c@sysmocom.de> On 12/1/20 2:17 AM, Chunlin Yang wrote: > ModuleNotFoundError: No module named 'smartcard' > > BTW, I have manually imported smartcard in python, and it's successful. I guess you have two Python versions (2.7 and 3.x), so it could be that you've installed smartcard for 3.x and in works in the shell. Unfortunately, pySim has not been completely migrated to 3.x yet, so it starts under 2.7 by default. You can try to run it under 3.x: python3 ./pySim-read.py -p0 or install the 'smartcard' module for Python 2.7. Best regards, Vadim. -- - Vadim Yanitskiy http://www.sysmocom.de/ ======================================================================= * sysmocom - systems for mobile communications GmbH * Alt-Moabit 93 * 10559 Berlin, Germany * Sitz / Registered office: Berlin, HRB 134158 B * Geschaeftsfuehrer / Managing Director: Harald Welte From chliny2016 at gmail.com Tue Dec 1 09:24:16 2020 From: chliny2016 at gmail.com (Chunlin Yang) Date: Tue, 1 Dec 2020 01:24:16 -0800 Subject: Help on using pysim to flash a SIM card In-Reply-To: References: <90daa2f7-dc90-7bba-cf18-ed1b0ce51e9c@sysmocom.de> Message-ID: Hi Vadim and all, pyProg.py fails with an error, could you help (btw, I change all real info to xxx :)): support at S2600WFT:~/pysim$ python ./pySim-prog.py -p 0 -x 208 -y 93 -t sysmoUSIM-SJS1 -i 208930000000003 --op=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -k xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -s xxxxxxxxxxxxxxxxxxxxx -a xxxxxxxx Using PC/SC reader interface Ready for Programming: Insert card now (or CTRL-C to cancel) Generated card parameters : > Name : Magic > SMSP : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > ICCID : xxxxxxxxxxxxxxxxxxxx > MCC/MNC : 208/93 > IMSI : xxxxxxxxxxxxxxx > Ki : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > OPC : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > ACC : None > ADM1(hex): xxxxxxxxxxxxxxxx Programming ... Card programming failed with an execption: ---------------------8<--------------------- Traceback (most recent call last): File "./pySim-prog.py", line 719, in rc = process_card(opts, first, card_handler) File "./pySim-prog.py", line 671, in process_card card.program(cp) File "/home/support/pysim/pySim/cards.py", line 713, in program self._scc.verify_chv(0x0A, h2b(p['pin_adm'])) File "/home/support/pysim/pySim/commands.py", line 206, in verify_chv return self._tp.send_apdu_checksw(self.cla_byte + '2000' + ('%02X' % chv_no) + '08' + fc) File "/home/support/pysim/pySim/transport/__init__.py", line 104, in send_apdu_checksw raise RuntimeError("SW match failed! Expected %s and got %s." % (sw.lower(), rv[1])) RuntimeError: SW match failed! Expected 9000 and got 63c9. ---------------------8<--------------------- Programming failed: Remove card from reader Thanks. Br, Andrew On Tue, Dec 1, 2020 at 1:07 AM Chunlin Yang wrote: > Thanks a lot Vadim! > I have thought it might be an issue between python3 and python2. So I have > tried on both versions. > on Python3, I got same error. > But now with this command 'python ./pySim-read.py -p0', it works. I used > to use this command './pySim-read.py -p0' and it gave me the same error. > > But although 'python ./pySim-read.py -p0' works (reads out the content of > the SIM, it gives me an error/prompt at the end: > Traceback (most recent call last): > File "./pySim-read.py", line 255, in > (res, sw) = card.read_ehplmn() > AttributeError: 'OpenCellsSim' object has no attribute 'read_ehplmn' > > maybe I can just ignore this prompt as I don't need ehplmn. > > Br, > Andrew > > On Tue, Dec 1, 2020 at 12:45 AM Vadim Yanitskiy > wrote: > >> On 12/1/20 2:17 AM, Chunlin Yang wrote: >> > ModuleNotFoundError: No module named 'smartcard' >> > >> > BTW, I have manually imported smartcard in python, and it's successful. >> >> I guess you have two Python versions (2.7 and 3.x), so it could be that >> you've installed smartcard for 3.x and in works in the shell. >> Unfortunately, pySim has not been completely migrated to 3.x yet, so it >> starts under 2.7 by default. You can try to run it under 3.x: >> >> python3 ./pySim-read.py -p0 >> >> or install the 'smartcard' module for Python 2.7. >> >> Best regards, >> Vadim. >> >> -- >> - Vadim Yanitskiy http://www.sysmocom.de/ >> ======================================================================= >> * sysmocom - systems for mobile communications GmbH >> * Alt-Moabit 93 >> * 10559 Berlin, Germany >> * Sitz / Registered office: Berlin, HRB 134158 B >> * Geschaeftsfuehrer / Managing Director: Harald Welte >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From domi at tomcsanyi.net Tue Dec 1 10:29:57 2020 From: domi at tomcsanyi.net (=?UTF-8?Q?Tomcs=C3=A1nyi=2C_Domonkos?=) Date: Tue, 1 Dec 2020 11:29:57 +0100 Subject: Help on using pysim to flash a SIM card In-Reply-To: References: <90daa2f7-dc90-7bba-cf18-ed1b0ce51e9c@sysmocom.de> Message-ID: Hi Andrew, Have a look at this list for example for APDU response codes to understand better what is going on. https://www.eftlab.com/knowledge-base/complete-list-of-apdu-responses/ Kind regards, Domi On Tue, Dec 1, 2020 at 10:24 AM Chunlin Yang wrote: > > Hi Vadim and all, > > pyProg.py fails with an error, could you help (btw, I change all real info to xxx :)): > > support at S2600WFT:~/pysim$ python ./pySim-prog.py -p 0 -x 208 -y 93 -t sysmoUSIM-SJS1 -i 208930000000003 --op=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -k xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -s xxxxxxxxxxxxxxxxxxxxx -a xxxxxxxx > Using PC/SC reader interface > Ready for Programming: Insert card now (or CTRL-C to cancel) > Generated card parameters : > > Name : Magic > > SMSP : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > > ICCID : xxxxxxxxxxxxxxxxxxxx > > MCC/MNC : 208/93 > > IMSI : xxxxxxxxxxxxxxx > > Ki : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > > OPC : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > > ACC : None > > ADM1(hex): xxxxxxxxxxxxxxxx > Programming ... > > Card programming failed with an execption: > ---------------------8<--------------------- > Traceback (most recent call last): > File "./pySim-prog.py", line 719, in > rc = process_card(opts, first, card_handler) > File "./pySim-prog.py", line 671, in process_card > card.program(cp) > File "/home/support/pysim/pySim/cards.py", line 713, in program > self._scc.verify_chv(0x0A, h2b(p['pin_adm'])) > File "/home/support/pysim/pySim/commands.py", line 206, in verify_chv > return self._tp.send_apdu_checksw(self.cla_byte + '2000' + ('%02X' % chv_no) + '08' + fc) > File "/home/support/pysim/pySim/transport/__init__.py", line 104, in send_apdu_checksw > raise RuntimeError("SW match failed! Expected %s and got %s." % (sw.lower(), rv[1])) > RuntimeError: SW match failed! Expected 9000 and got 63c9. > ---------------------8<--------------------- > > Programming failed: Remove card from reader > > Thanks. > Br, > Andrew > > On Tue, Dec 1, 2020 at 1:07 AM Chunlin Yang wrote: >> >> Thanks a lot Vadim! >> I have thought it might be an issue between python3 and python2. So I have tried on both versions. >> on Python3, I got same error. >> But now with this command 'python ./pySim-read.py -p0', it works. I used to use this command './pySim-read.py -p0' and it gave me the same error. >> >> But although 'python ./pySim-read.py -p0' works (reads out the content of the SIM, it gives me an error/prompt at the end: >> Traceback (most recent call last): >> File "./pySim-read.py", line 255, in >> (res, sw) = card.read_ehplmn() >> AttributeError: 'OpenCellsSim' object has no attribute 'read_ehplmn' >> >> maybe I can just ignore this prompt as I don't need ehplmn. >> >> Br, >> Andrew >> >> On Tue, Dec 1, 2020 at 12:45 AM Vadim Yanitskiy wrote: >>> >>> On 12/1/20 2:17 AM, Chunlin Yang wrote: >>> > ModuleNotFoundError: No module named 'smartcard' >>> > >>> > BTW, I have manually imported smartcard in python, and it's successful. >>> >>> I guess you have two Python versions (2.7 and 3.x), so it could be that >>> you've installed smartcard for 3.x and in works in the shell. >>> Unfortunately, pySim has not been completely migrated to 3.x yet, so it >>> starts under 2.7 by default. You can try to run it under 3.x: >>> >>> python3 ./pySim-read.py -p0 >>> >>> or install the 'smartcard' module for Python 2.7. >>> >>> Best regards, >>> Vadim. >>> >>> -- >>> - Vadim Yanitskiy http://www.sysmocom.de/ >>> ======================================================================= >>> * sysmocom - systems for mobile communications GmbH >>> * Alt-Moabit 93 >>> * 10559 Berlin, Germany >>> * Sitz / Registered office: Berlin, HRB 134158 B >>> * Geschaeftsfuehrer / Managing Director: Harald Welte From chliny2016 at gmail.com Wed Dec 2 23:15:40 2020 From: chliny2016 at gmail.com (Chunlin Yang) Date: Wed, 2 Dec 2020 15:15:40 -0800 Subject: Help on using pysim to flash a SIM card In-Reply-To: References: <90daa2f7-dc90-7bba-cf18-ed1b0ce51e9c@sysmocom.de> Message-ID: Thanks Domonkos. *It does not give me helpful info.* *only code relevant to my issue is as below:* [image: image.png] *but my issue is as below:* Programming ... Card programming failed with an execption: ---------------------8<--------------------- Traceback (most recent call last): File "./pySim-prog.py", line 719, in rc = process_card(opts, first, card_handler) File "./pySim-prog.py", line 671, in process_card card.program(cp) File "/home/support/pysim/pySim/cards.py", line 713, in program self._scc.verify_chv(0x0A, h2b(p['pin_adm'])) File "/home/support/pysim/pySim/commands.py", line 206, in verify_chv return self._tp.send_apdu_checksw(self.cla_byte + '2000' + ('%02X' % chv_no) + '08' + fc) File "/home/support/pysim/pySim/transport/__init__.py", line 104, in send_apdu_checksw raise RuntimeError("SW match failed! Expected %s and got %s." % (sw.lower(), rv[1])) RuntimeError: SW match failed! Expected 9000 and got 63c8. I'm flashing this SIM card for a 5G project at https://github.com/free5gc/free5gc Does this SIM card SW supports 5G? Thanks. Br, Chunlin On Tue, Dec 1, 2020 at 2:30 AM Tomcs?nyi, Domonkos wrote: > Hi Andrew, > > Have a look at this list for example for APDU response codes to > understand better what is going on. > https://www.eftlab.com/knowledge-base/complete-list-of-apdu-responses/ > > Kind regards, > Domi > > On Tue, Dec 1, 2020 at 10:24 AM Chunlin Yang wrote: > > > > Hi Vadim and all, > > > > pyProg.py fails with an error, could you help (btw, I change all real > info to xxx :)): > > > > support at S2600WFT:~/pysim$ python ./pySim-prog.py -p 0 -x 208 -y 93 -t > sysmoUSIM-SJS1 -i 208930000000003 --op=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > -k xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -s xxxxxxxxxxxxxxxxxxxxx -a xxxxxxxx > > Using PC/SC reader interface > > Ready for Programming: Insert card now (or CTRL-C to cancel) > > Generated card parameters : > > > Name : Magic > > > SMSP : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > > > ICCID : xxxxxxxxxxxxxxxxxxxx > > > MCC/MNC : 208/93 > > > IMSI : xxxxxxxxxxxxxxx > > > Ki : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > > > OPC : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > > > ACC : None > > > ADM1(hex): xxxxxxxxxxxxxxxx > > Programming ... > > > > Card programming failed with an execption: > > ---------------------8<--------------------- > > Traceback (most recent call last): > > File "./pySim-prog.py", line 719, in > > rc = process_card(opts, first, card_handler) > > File "./pySim-prog.py", line 671, in process_card > > card.program(cp) > > File "/home/support/pysim/pySim/cards.py", line 713, in program > > self._scc.verify_chv(0x0A, h2b(p['pin_adm'])) > > File "/home/support/pysim/pySim/commands.py", line 206, in verify_chv > > return self._tp.send_apdu_checksw(self.cla_byte + '2000' + ('%02X' % > chv_no) + '08' + fc) > > File "/home/support/pysim/pySim/transport/__init__.py", line 104, in > send_apdu_checksw > > raise RuntimeError("SW match failed! Expected %s and got %s." % > (sw.lower(), rv[1])) > > RuntimeError: SW match failed! Expected 9000 and got 63c9. > > ---------------------8<--------------------- > > > > Programming failed: Remove card from reader > > > > Thanks. > > Br, > > Andrew > > > > On Tue, Dec 1, 2020 at 1:07 AM Chunlin Yang > wrote: > >> > >> Thanks a lot Vadim! > >> I have thought it might be an issue between python3 and python2. So I > have tried on both versions. > >> on Python3, I got same error. > >> But now with this command 'python ./pySim-read.py -p0', it works. I > used to use this command './pySim-read.py -p0' and it gave me the same > error. > >> > >> But although 'python ./pySim-read.py -p0' works (reads out the content > of the SIM, it gives me an error/prompt at the end: > >> Traceback (most recent call last): > >> File "./pySim-read.py", line 255, in > >> (res, sw) = card.read_ehplmn() > >> AttributeError: 'OpenCellsSim' object has no attribute 'read_ehplmn' > >> > >> maybe I can just ignore this prompt as I don't need ehplmn. > >> > >> Br, > >> Andrew > >> > >> On Tue, Dec 1, 2020 at 12:45 AM Vadim Yanitskiy > wrote: > >>> > >>> On 12/1/20 2:17 AM, Chunlin Yang wrote: > >>> > ModuleNotFoundError: No module named 'smartcard' > >>> > > >>> > BTW, I have manually imported smartcard in python, and it's > successful. > >>> > >>> I guess you have two Python versions (2.7 and 3.x), so it could be that > >>> you've installed smartcard for 3.x and in works in the shell. > >>> Unfortunately, pySim has not been completely migrated to 3.x yet, so it > >>> starts under 2.7 by default. You can try to run it under 3.x: > >>> > >>> python3 ./pySim-read.py -p0 > >>> > >>> or install the 'smartcard' module for Python 2.7. > >>> > >>> Best regards, > >>> Vadim. > >>> > >>> -- > >>> - Vadim Yanitskiy > http://www.sysmocom.de/ > >>> ======================================================================= > >>> * sysmocom - systems for mobile communications GmbH > >>> * Alt-Moabit 93 > >>> * 10559 Berlin, Germany > >>> * Sitz / Registered office: Berlin, HRB 134158 B > >>> * Geschaeftsfuehrer / Managing Director: Harald Welte > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 18609 bytes Desc: not available URL: From choukoumoun at gmail.com Thu Dec 3 08:22:10 2020 From: choukoumoun at gmail.com (Choukou Moun) Date: Thu, 3 Dec 2020 09:22:10 +0100 Subject: Openbsc install limenet sdr Message-ID: Hello, Anybody have success to install openbsc on limenet sdr? I have many compilation error with sources or packages. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From domi at tomcsanyi.net Thu Dec 3 10:34:56 2020 From: domi at tomcsanyi.net (Tomcsanyi, Domonkos) Date: Thu, 3 Dec 2020 11:34:56 +0100 Subject: Help on using pysim to flash a SIM card In-Reply-To: References: Message-ID: <8D129EA1-53EA-465C-8ADE-866C24592474@tomcsanyi.net> Hi, You don?t need a new SIM card necessarily for 5G, so it should be fine. The issue you have seems to be because of missing/incorrect PIN or ADM key imho. Cheers, Domi > 03.12.2020 d?tummal, 0:16 id?pontban Chunlin Yang ?rta: > > ? > Thanks Domonkos. > It does not give me helpful info. > only code relevant to my issue is as below: > > > but my issue is as below: > > Programming ... > > Card programming failed with an execption: > ---------------------8<--------------------- > Traceback (most recent call last): > File "./pySim-prog.py", line 719, in > rc = process_card(opts, first, card_handler) > File "./pySim-prog.py", line 671, in process_card > card.program(cp) > File "/home/support/pysim/pySim/cards.py", line 713, in program > self._scc.verify_chv(0x0A, h2b(p['pin_adm'])) > File "/home/support/pysim/pySim/commands.py", line 206, in verify_chv > return self._tp.send_apdu_checksw(self.cla_byte + '2000' + ('%02X' % chv_no) + '08' + fc) > File "/home/support/pysim/pySim/transport/__init__.py", line 104, in send_apdu_checksw > raise RuntimeError("SW match failed! Expected %s and got %s." % (sw.lower(), rv[1])) > RuntimeError: SW match failed! Expected 9000 and got 63c8. > > I'm flashing this SIM card for a 5G project at https://github.com/free5gc/free5gc > > Does this SIM card SW supports 5G? > > Thanks. > > Br, > Chunlin > >> On Tue, Dec 1, 2020 at 2:30 AM Tomcs?nyi, Domonkos wrote: >> Hi Andrew, >> >> Have a look at this list for example for APDU response codes to >> understand better what is going on. >> https://www.eftlab.com/knowledge-base/complete-list-of-apdu-responses/ >> >> Kind regards, >> Domi >> >> On Tue, Dec 1, 2020 at 10:24 AM Chunlin Yang wrote: >> > >> > Hi Vadim and all, >> > >> > pyProg.py fails with an error, could you help (btw, I change all real info to xxx :)): >> > >> > support at S2600WFT:~/pysim$ python ./pySim-prog.py -p 0 -x 208 -y 93 -t sysmoUSIM-SJS1 -i 208930000000003 --op=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -k xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -s xxxxxxxxxxxxxxxxxxxxx -a xxxxxxxx >> > Using PC/SC reader interface >> > Ready for Programming: Insert card now (or CTRL-C to cancel) >> > Generated card parameters : >> > > Name : Magic >> > > SMSP : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx >> > > ICCID : xxxxxxxxxxxxxxxxxxxx >> > > MCC/MNC : 208/93 >> > > IMSI : xxxxxxxxxxxxxxx >> > > Ki : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx >> > > OPC : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx >> > > ACC : None >> > > ADM1(hex): xxxxxxxxxxxxxxxx >> > Programming ... >> > >> > Card programming failed with an execption: >> > ---------------------8<--------------------- >> > Traceback (most recent call last): >> > File "./pySim-prog.py", line 719, in >> > rc = process_card(opts, first, card_handler) >> > File "./pySim-prog.py", line 671, in process_card >> > card.program(cp) >> > File "/home/support/pysim/pySim/cards.py", line 713, in program >> > self._scc.verify_chv(0x0A, h2b(p['pin_adm'])) >> > File "/home/support/pysim/pySim/commands.py", line 206, in verify_chv >> > return self._tp.send_apdu_checksw(self.cla_byte + '2000' + ('%02X' % chv_no) + '08' + fc) >> > File "/home/support/pysim/pySim/transport/__init__.py", line 104, in send_apdu_checksw >> > raise RuntimeError("SW match failed! Expected %s and got %s." % (sw.lower(), rv[1])) >> > RuntimeError: SW match failed! Expected 9000 and got 63c9. >> > ---------------------8<--------------------- >> > >> > Programming failed: Remove card from reader >> > >> > Thanks. >> > Br, >> > Andrew >> > >> > On Tue, Dec 1, 2020 at 1:07 AM Chunlin Yang wrote: >> >> >> >> Thanks a lot Vadim! >> >> I have thought it might be an issue between python3 and python2. So I have tried on both versions. >> >> on Python3, I got same error. >> >> But now with this command 'python ./pySim-read.py -p0', it works. I used to use this command './pySim-read.py -p0' and it gave me the same error. >> >> >> >> But although 'python ./pySim-read.py -p0' works (reads out the content of the SIM, it gives me an error/prompt at the end: >> >> Traceback (most recent call last): >> >> File "./pySim-read.py", line 255, in >> >> (res, sw) = card.read_ehplmn() >> >> AttributeError: 'OpenCellsSim' object has no attribute 'read_ehplmn' >> >> >> >> maybe I can just ignore this prompt as I don't need ehplmn. >> >> >> >> Br, >> >> Andrew >> >> >> >> On Tue, Dec 1, 2020 at 12:45 AM Vadim Yanitskiy wrote: >> >>> >> >>> On 12/1/20 2:17 AM, Chunlin Yang wrote: >> >>> > ModuleNotFoundError: No module named 'smartcard' >> >>> > >> >>> > BTW, I have manually imported smartcard in python, and it's successful. >> >>> >> >>> I guess you have two Python versions (2.7 and 3.x), so it could be that >> >>> you've installed smartcard for 3.x and in works in the shell. >> >>> Unfortunately, pySim has not been completely migrated to 3.x yet, so it >> >>> starts under 2.7 by default. You can try to run it under 3.x: >> >>> >> >>> python3 ./pySim-read.py -p0 >> >>> >> >>> or install the 'smartcard' module for Python 2.7. >> >>> >> >>> Best regards, >> >>> Vadim. >> >>> >> >>> -- >> >>> - Vadim Yanitskiy http://www.sysmocom.de/ >> >>> ======================================================================= >> >>> * sysmocom - systems for mobile communications GmbH >> >>> * Alt-Moabit 93 >> >>> * 10559 Berlin, Germany >> >>> * Sitz / Registered office: Berlin, HRB 134158 B >> >>> * Geschaeftsfuehrer / Managing Director: Harald Welte -------------- next part -------------- An HTML attachment was scrubbed... URL: From laforge at osmocom.org Thu Dec 3 13:10:54 2020 From: laforge at osmocom.org (Harald Welte) Date: Thu, 3 Dec 2020 14:10:54 +0100 Subject: Openbsc install limenet sdr In-Reply-To: References: Message-ID: On Thu, Dec 03, 2020 at 09:22:10AM +0100, Choukou Moun wrote: > Anybody have success to install openbsc on limenet sdr? > I have many compilation error with sources or packages. Why not simply use the official Raspbian packages provided by osmocom? https://osmocom.org/projects/cellular-infrastructure/wiki/Nightly_Builds (Raspian 10 only) or https://osmocom.org/projects/cellular-infrastructure/wiki/Latest_Builds (Raspbian 9 + 10) -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From choukoumoun at gmail.com Thu Dec 3 14:49:21 2020 From: choukoumoun at gmail.com (Choukou Moun) Date: Thu, 3 Dec 2020 15:49:21 +0100 Subject: Openbsc install limenet sdr In-Reply-To: References: Message-ID: Hello Harald i wish you good. I will with this repo. Thank you. Le jeu. 3 d?c. 2020 ? 14:20, Harald Welte a ?crit : > On Thu, Dec 03, 2020 at 09:22:10AM +0100, Choukou Moun wrote: > > Anybody have success to install openbsc on limenet sdr? > > I have many compilation error with sources or packages. > > Why not simply use the official Raspbian packages provided by osmocom? > > https://osmocom.org/projects/cellular-infrastructure/wiki/Nightly_Builds > (Raspian 10 only) > or > https://osmocom.org/projects/cellular-infrastructure/wiki/Latest_Builds > (Raspbian 9 + 10) > > -- > - Harald Welte > http://laforge.gnumonks.org/ > > ============================================================================ > "Privacy in residential applications is a desirable marketing option." > (ETSI EN 300 175-7 Ch. > A6) > -------------- next part -------------- An HTML attachment was scrubbed... URL: From choukoumoun at gmail.com Thu Dec 3 17:09:33 2020 From: choukoumoun at gmail.com (Choukou Moun) Date: Thu, 3 Dec 2020 18:09:33 +0100 Subject: Openbsc install limenet sdr In-Reply-To: References: Message-ID: Hello Harald, I try it and i have this message : The following packages have unmet dependencies: osmocom-nitb : Depends: libosmocore12 but it is not installable Depends: libosmogsm13 but it is not installable E: Unable to correct problems, you have held broken packages. Do you have a process top install it with the valid libosmocore ? I try to compile the last libosmocore from source and install osmo-nitb with package -> same error. I try to install libosmocore an openbsc from source i have this : ~~~~~~^~~~~~~~~ make[3]: *** [Makefile:543: trau/libosmotrau_la-osmo_ortp.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory '/opt/GSM/osmo-combo/build/libosmo-abis/src' make[2]: *** [Makefile:469: all-recursive] Error 1 make[2]: Leaving directory '/opt/GSM/osmo-combo/build/libosmo-abis' make[1]: *** [Makefile:376: all] Error 2 make[1]: Leaving directory '/opt/GSM/osmo-combo/build/libosmo-abis' make: *** [Makefile:63: build/libosmo-abis.made] Error 2 Thank you. Le jeu. 3 d?c. 2020 ? 15:49, Choukou Moun a ?crit : > Hello Harald i wish you good. > > I will with this repo. > > Thank you. > > Le jeu. 3 d?c. 2020 ? 14:20, Harald Welte a ?crit : > >> On Thu, Dec 03, 2020 at 09:22:10AM +0100, Choukou Moun wrote: >> > Anybody have success to install openbsc on limenet sdr? >> > I have many compilation error with sources or packages. >> >> Why not simply use the official Raspbian packages provided by osmocom? >> >> https://osmocom.org/projects/cellular-infrastructure/wiki/Nightly_Builds >> (Raspian 10 only) >> or >> https://osmocom.org/projects/cellular-infrastructure/wiki/Latest_Builds >> (Raspbian 9 + 10) >> >> -- >> - Harald Welte >> http://laforge.gnumonks.org/ >> >> ============================================================================ >> "Privacy in residential applications is a desirable marketing option." >> (ETSI EN 300 175-7 Ch. >> A6) >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bryancoxwell at gmail.com Tue Dec 8 21:55:15 2020 From: bryancoxwell at gmail.com (bryan coxwell) Date: Tue, 8 Dec 2020 16:55:15 -0500 Subject: Unable to send OTA updates to SIM Message-ID: The setup: - I am using Osmo-MSC, Osmo-HLR, python-smpplib, and sim-tools. My SIM card is a Sysmocom USIM-SJS1 which came with OTA keys. - Osmo-MSC has been configured to accept SMPP connections, and dcs-transparent has been set. - Using sim-tools with the --smpp flag, I generated the necessary SMPP messages to load the HelloSTK.cap file to the SIM. (Essentially, I've followed the instructions here: https://osmocom.org/projects/cellular-infrastructure/wiki/Shadysimpy) - Sim-tools outputs 6 messages, so in a separate program I use python-smpplib to push each message to the MSC over SMPP. - The send function in my program looks like this: parts = ["027000003815060115150000001dbf31df8eb85248617ff79260f7bf0abd332e2b3c> "02700000901506011515000000d85420f0f778e35b4b8e0ae5d961593444f20fdebb> "02700000901506011515000000729062e3cc920acc51be4f22fd067314bfaee313d6> "02700000901506011515000000373f30a3c12b494d3089c70a2dd46e33e3fccac790> "0270000068150601151500000083f04c39ef2df571bd5389f71b8c528e9b3edea046> "02700000601506011515000000ad6eeebc9373de8bd3a8888324ffaad4d8cd935f0c> ] for part in parts: pdu = client.send_message( source_addr_ton=smpplib.consts.SMPP_TON_INTL, source_addr='0', dest_addr_ton=smpplib.consts.SMPP_TON_INTL, destination_addr='3331112222', short_message=bytes.fromhex(part), data_coding=246, esm_class=64, registered_delivery=True, ) print(pdu.sequence) I have Wireshark running on the computer hosting the MSC, and it shows GSM SMS messages sending to the UE, however there is no response, and when I inspect the SIM card, no applet has been loaded. Am I missing something here? What could be causing this issue? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From laforge at osmocom.org Sun Dec 13 11:48:47 2020 From: laforge at osmocom.org (Harald Welte) Date: Sun, 13 Dec 2020 12:48:47 +0100 Subject: Openbsc install limenet sdr In-Reply-To: References: Message-ID: On Thu, Dec 03, 2020 at 06:09:33PM +0100, Choukou Moun wrote: > I try it and i have this message : Please start with a clean installation. It seems you might be trying to mix packages from different repositories (testing vs. nightly vs. packges from your distribution), which cannot work. > The following packages have unmet dependencies: > osmocom-nitb : Depends: libosmocore12 but it is not installable > Depends: libosmogsm13 but it is not installable > E: Unable to correct problems, you have held broken packages. please do not use osmo-nitb ans raise questions here. It is software that has been obsoleted in 2017. -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From mariolucas75 at mail.ru Mon Dec 14 20:11:43 2020 From: mariolucas75 at mail.ru (=?UTF-8?B?TWFyaW8gTHVjYXM=?=) Date: Mon, 14 Dec 2020 23:11:43 +0300 Subject: =?UTF-8?B?T3Ntb0JTQyhjb25maWctbmV0LWJ0cykgY2VsbCByZXNlbGVjdGlvbiBwYXJh?= =?UTF-8?B?bWV0ZXJzIGRvbnQgc2hvdyB1cCBhZnRlciBzZXQgdXA=?= Message-ID: <1607976703.712517024@f707.i.mail.ru> Dear Team please help me with the following question: ? I want to set up following parameters in osmobsc config: ? cell bar quality cell reselection offset temporary offset penalty time cell reselection hysterisis ? These parameter play role when a MS should reselect another cell. ? These parameters do appear in OsmoBSC(config-net-bts) and i do set up them. ? But when i run ?show running-config? only hysterisis is present? the rest have gone ?. also gsmtap from wireshark does not show the rest of parameters. Pls help if you can ?. ? ? Pls find the log from OsmoBSC(config-net-bts)# show running-config: ? ? ? OsmoBSC(config-net-bts)# show running-config Current configuration: ! ! log stderr ?logging filter all 1 ?logging color 0 ?logging print category-hex 1 ?logging print category 0 ?logging timestamp 0 ?logging print file 1 ?logging level rll notice ?logging level mm notice ?logging level rr notice ?logging level rsl notice ?logging level nm info ?logging level pag notice ?logging level meas notice ?logging level msc notice ?logging level ho notice ?logging level hodec notice ?logging level ref notice ?logging level nat notice ?logging level ctrl notice ?logging level filter debug ?logging level pcu debug ?logging level lcls notice ?logging level chan notice ?logging level ts notice ?logging level as notice ?logging level cbs notice ?logging level lglobal notice ?logging level llapd notice ?logging level linp notice ?logging level lmux notice ?logging level lmi notice ?logging level lmib notice ?logging level lsms notice ?logging level lctrl notice ?logging level lgtp notice ?logging level lstats notice ?logging level lgsup notice ?logging level loap notice ?logging level lss7 notice ?logging level lsccp notice ?logging level lsua notice ?logging level lm3ua notice ?logging level lmgcp notice ?logging level ljibuf notice ?logging level lrspro notice ! stats interval 5 ! line vty ?no login ! e1_input ?e1_line 0 driver ipa ?e1_line 0 port 0 ?no e1_line 0 keepalive cs7 instance 0 ?point-code 0.23.3 network ?network country code 1 ?mobile network code 1 ?encryption a5 0 ?neci 1 ?paging any use tch 0 ?handover 0 ?handover algorithm 1 ?handover1 window rxlev averaging 10 ?handover1 window rxqual averaging 1 ?handover1 window rxlev neighbor averaging 10 ?handover1 power budget interval 6 ?handover1 power budget hysteresis 3 ?handover1 maximum distance 9999 ?dyn_ts_allow_tch_f 0 ?bts 0 ? type sysmobts ? band GSM900 ? cell_identity 6969 ? location_area_code 1 ? base_station_id_code 63 ? ms max power 15 ? cell reselection hysteresis 4 ? rxlev access min 0 ? radio-link-timeout 32 ? channel allocator ascending ? rach tx integer 9 ? rach max transmission 7 ? channel-description attach 1 ? channel-description bs-pa-mfrms 5 ? channel-description bs-ag-blks-res 1 ? no access-control-class-ramping ? access-control-class-ramping-step-interval dynamic ? access-control-class-ramping-step-size 1 ? early-classmark-sending forbidden ? early-classmark-sending-3g allowed ? ipa unit-id 6969 0 ? oml ipa stream-id 255 line 0 ? neighbor-list mode automatic ? codec-support fr ? amr tch-f modes 0 2 4 7 ? amr tch-f threshold ms 32 32 32 ? amr tch-f hysteresis ms 8 8 8 ? amr tch-f threshold bts 32 32 32 ? amr tch-f hysteresis bts 8 8 8 ? amr tch-f start-mode auto ? amr tch-h modes 0 2 4 ? amr tch-h threshold ms 32 32 ? amr tch-h hysteresis ms 8 8 ? amr tch-h threshold bts 32 32 ? amr tch-h hysteresis bts 8 8 ? amr tch-h start-mode auto ? gprs mode none ? trx 0 ?? rf_locked 0 ?? arfcn 10 ?? nominal power 26 ?? max_power_red 16 ?? rsl e1 tei 0 ?? timeslot 0 ??? phys_chan_config CCCH+SDCCH4 ??? hopping enabled 0 ?? timeslot 1 ??? phys_chan_config TCH/F ??? hopping enabled 0 ?? timeslot 2 ??? phys_chan_config TCH/F ??? hopping enabled 0 ?? timeslot 3 ??? phys_chan_config TCH/F ??? hopping enabled 0 ?? timeslot 4 ??? phys_chan_config TCH/F ??? hopping enabled 0 ?? timeslot 5 ??? phys_chan_config TCH/F ??? hopping enabled 0 ?? timeslot 6 ??? phys_chan_config TCH/F ??? hopping enabled 0 ?? timeslot 7 ??? phys_chan_config TCH/F ??? hopping enabled 0 msc 0 ?ip.access rtp-base 4000 ?no bsc-welcome-text ?no bsc-msc-lost-text ?no bsc-grace-text ?codec-list fr1 hr1 fr2 fr3 hr3 ?type normal ?allow-emergency allow ?amr-config 12_2k forbidden ?amr-config 10_2k forbidden ?amr-config 7_95k forbidden ?amr-config 7_40k forbidden ?amr-config 6_70k forbidden ?amr-config 5_90k allowed ?amr-config 5_15k forbidden ?amr-config 4_75k forbidden ?amr-payload octet-aligned ?asp-protocol m3ua ?lcls-mode disabled ?lcls-codec-mismatch forbidden ?mgw local-port 2727 ?mgw remote-ip 127.0.0.1 ?mgw remote-port 2427 bsc ?mid-call-timeout 0 ?no missing-msc-text cbc ?no remote-ip ?no listen-port end OsmoBSC(config-net-bts)# ? ? ? -- Mario Lucas -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariolucas75 at mail.ru Mon Dec 14 19:55:52 2020 From: mariolucas75 at mail.ru (=?UTF-8?B?TWFyaW8gTHVjYXM=?=) Date: Mon, 14 Dec 2020 22:55:52 +0300 Subject: =?UTF-8?B?dHJ4IG91dHB1dCBwb3dlciBjb25maWcgaW4gYnRz?= Message-ID: <1607975752.540721279@f726.i.mail.ru> Dear team could you pls help me with this question ? In bts config? we have following entries: ? trx 0 ?? nominal power 23 ?? ! to use full TRX power, set max_power_red 0 ?? max_power_red 20 ? and ? osmotrx tx-attenuation (oml|<0-50>) ? ? So why do we need these ?max_power_red 20? and ?osmotrx tx-attenuation? which both as i understand weaken the signal? If we want to have a weak signal why we just don?t use only ?nominal power? with whatever weak or strong signal value we want? ? Thank you so much ? -- Mario Lucas -------------- next part -------------- An HTML attachment was scrubbed... URL: From keith at rhizomatica.org Mon Dec 14 21:48:38 2020 From: keith at rhizomatica.org (Keith) Date: Mon, 14 Dec 2020 15:48:38 -0600 Subject: OsmoBSC(config-net-bts) cell reselection parameters dont show up after set up In-Reply-To: <1607976703.712517024@f707.i.mail.ru> References: <1607976703.712517024@f707.i.mail.ru> Message-ID: <97dc68d5-a06d-b863-8c40-46844fd24c69@rhizomatica.org> On 14/12/2020 14:11, Mario Lucas wrote: > ? > But when i run ?show running-config? only hysterisis is present? the > rest have gone ?. also gsmtap from wireshark does not show the rest of > parameters. > > ? I'm purely guessing from what you post, but... > ? > ?handover 0 I think if you actually activate handover, you might find these params showing up, and taking effect. I might be wrong though. From keith at rhizomatica.org Mon Dec 14 21:43:36 2020 From: keith at rhizomatica.org (Keith) Date: Mon, 14 Dec 2020 15:43:36 -0600 Subject: trx output power config in bts In-Reply-To: <1607975752.540721279@f726.i.mail.ru> References: <1607975752.540721279@f726.i.mail.ru> Message-ID: <8d9bc1c2-d701-f516-294c-c02f04f31e3a@rhizomatica.org> On 14/12/2020 13:55, Mario Lucas wrote: > Dear team could you pls help me with this question > ? > In bts config? we have following entries: > ? > trx 0 > ?? nominal power 23 > ?? ! to use full TRX power, set max_power_red 0 > ?? max_power_red 20 > ?and > ? > osmotrx tx-attenuation (oml|<0-50>) ^^ This command does not exist in all osmo-bts-* variants. > ? > > If we want to have a weak signal why we just don?t use only ?nominal > power? with whatever weak or strong signal value we want? Somebody else might correct me if I am wrong, but I'm pretty sure than "nominal power" is only used to calculate informational reports for the operator, in "show trx" for example. So after calibration of any RF power attenuation or amplification equipment connected to your BTS, you might adjust "nominal power" to reflect that. Then, you might want to control your cell size from the BSC, with max_power_red I'm not sure of the origins of the osmotrx commands, nor am I absolutely sure about the override capabilities of that command, but I believe that the idea is that if you use osmotrx tx-attenuation 0, then the bts should ignore attentuation commands sent over the Abis as a result of having max_power_red in the BSC config. This has been discussed before BTW, more than once, I believe, for example: https://openbsc.osmocom.narkive.com/2YXqsMED/question-about-ms-max-power-parameter even though the title is about ms-max-power there. -------------- next part -------------- An HTML attachment was scrubbed... URL: From domi at tomcsanyi.net Tue Dec 15 08:54:14 2020 From: domi at tomcsanyi.net (Tomcsanyi, Domonkos) Date: Tue, 15 Dec 2020 09:54:14 +0100 Subject: OsmoBSC(config-net-bts) cell reselection parameters dont show up after set up In-Reply-To: <97dc68d5-a06d-b863-8c40-46844fd24c69@rhizomatica.org> References: <97dc68d5-a06d-b863-8c40-46844fd24c69@rhizomatica.org> Message-ID: <5D0402E5-9C08-4E23-B67A-7DAC05149755@tomcsanyi.net> I am also just speculating here, but reselection != handovers, so I am quite sure those parameters must exist without activating handovers. Back in thr days when I was tweaking these (2015ish maybe?) we might not even had handovers but reselection params could be changed. Cheers, Domi > 14.12.2020 d?tummal, 22:48 id?pontban Keith ?rta: > > ? >> On 14/12/2020 14:11, Mario Lucas wrote: >> >> But when i run ?show running-config? only hysterisis is present? the >> rest have gone ?. also gsmtap from wireshark does not show the rest of >> parameters. >> >> > I'm purely guessing from what you post, but... >> >> handover 0 > > I think if you actually activate handover, you might find these params > showing up, and taking effect. > > I might be wrong though. > > > > From laforge at osmocom.org Tue Dec 15 12:25:24 2020 From: laforge at osmocom.org (Harald Welte) Date: Tue, 15 Dec 2020 13:25:24 +0100 Subject: Eclipse TITAN / warnings / finding errors in the log Message-ID: Hi! It has recently come to my attention that people find it hard to find error messages when compiling TTCN-3 code. This is primarily due to the hundreds to thousands of compiler warnings which [at least our] code generates when building with ttcn3_compiler of TITAN. While some of those warnings indeed should be resolved, a great number of them is actually things where we know what we are doing, and where we'd normally want to disable the warnings. Unfortunately, TITAN doesn't have a system to selectively disable warnings like -Wno-foo in gcc. There are two things that help: 1) colorized output of ttcn3_compiler, which is something I submitted quite a long time ago, but which hasn't e.g. ended up yet in a number of distribution packages. Please feel free to use the eclipse-titan package we build in the OBS network:osmocom:latest feeds to get that feature 2) ttcn3_compiler actually has a '-w' command line argument to make all warnings quiet, which is also supported by ttcn3_makefilegen. You can edit the osmo-ttcn3-hacks/regen-makefile.sh to add that option to ttcn3_makefilegen Regards, Harald -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From vyanitskiy at sysmocom.de Wed Dec 16 14:09:58 2020 From: vyanitskiy at sysmocom.de (Vadim Yanitskiy) Date: Wed, 16 Dec 2020 15:09:58 +0100 Subject: Eclipse TITAN / warnings / finding errors in the log In-Reply-To: References: Message-ID: <846393fa-2fc0-626e-60bc-4ea506576f20@sysmocom.de> Hi Harald, On 12/15/20 1:25 PM, Harald Welte wrote: > There are two things that help: there is another approach that usually works good for me: $ make compile 2>&1 | grep "error:" Best regards, Vadim. -- - Vadim Yanitskiy http://www.sysmocom.de/ ======================================================================= * sysmocom - systems for mobile communications GmbH * Alt-Moabit 93 * 10559 Berlin, Germany * Sitz / Registered office: Berlin, HRB 134158 B * Geschaeftsfuehrer / Managing Director: Harald Welte From laforge at osmocom.org Wed Dec 16 19:21:44 2020 From: laforge at osmocom.org (Harald Welte) Date: Wed, 16 Dec 2020 20:21:44 +0100 Subject: OsmoBSC(config-net-bts) cell reselection parameters dont show up after set up In-Reply-To: <1607976703.712517024@f707.i.mail.ru> References: <1607976703.712517024@f707.i.mail.ru> Message-ID: Hi Mario, On Mon, Dec 14, 2020 at 11:11:43PM +0300, Mario Lucas wrote: > cell bar quality > cell reselection offset > temporary offset > penalty time > cell reselection hysterisis > ? > These parameter play role when a MS should reselect another cell. > ? > These parameters do appear in OsmoBSC(config-net-bts) and i do set up them. > ? > But when i run ?show running-config? only hysterisis is present? the rest have gone ?. also gsmtap from wireshark does not show the rest of parameters. This sounds like a bug, please file one in the OsmoBSC project on https://osmocom.org/ - thanks! -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From laforge at osmocom.org Thu Dec 31 11:04:45 2020 From: laforge at osmocom.org (Harald Welte) Date: Thu, 31 Dec 2020 12:04:45 +0100 Subject: Idea for 2021: Regular "OsmoDevCall" Message-ID: Dear Osmocom community, as the pandemic continues and physical meetings are out of the question for the forseeable future, it would be a good idea to have a periodic virtual online meeting of the interested Osmocom community. I was thinking of a format where we would serve two major purposes: 1) technical talks about osmocom relevant topics - ideally current/recent developments * can be pre-recorded to avoid any problems with technical setup, streaming, ... * should ideally have a Q+A session at their initial "airing" during one OsmoDevCall 2) unstructured solicited social event (USSE) * random chat in audio (optionally video) * not recorded, obviously The recording of the technical presentation should then be permanently made available (like the presentations of our prior OsmoCon / OsmoDevCon). Not every OsmoDevCall would neccessarily need the two parts, but I think it would be great if we can make that happen. We could also have e.g. a two-weekly schedule for the USSE and a monthly schedule for the technical presentation. We'd need somebody to volunteer to "manage" the "broadcast" side of this, preferably somebody with at least some prior exposure to online events (like the c3voc). I'm using https://osmocom.org/issues/4928 to collect a tentative list of topics. Feel free to add your ideas there, as well as any comment/ feedback you may have. Regards, Harald -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6)