Hi,
I would like to start a discussion to set for all osmocom core
network projects a language standard (could be also set for other
osmocom projects).
The current state is the code is compiled with the compilers choice of
c/c++. This produce unexpected build failures on newer or older system.
I would like to start setting it to c11/c++11 + gnu extensions. This is
a more random choice of standard. I would argue to have at least c99
for c.
Any feedback?
Best,
lynxis
--
Alexander Couzens
mail: lynxis(a)fe80.eu
jabber: lynxis(a)fe80.eu
gpg: 390D CF78 8BF9 AA50 4F8F F1E2 C29E 9DA6 A0DF 8604
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 <laforge(a)gnumonks.org> http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch. A6)
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
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!
Hi Vadim and all,
pyProg.py fails with an error, could you help (btw, I change all real info
to xxx :)):
support@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 <module>
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 <chliny2016(a)gmail.com> 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 <module>
> (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 <vyanitskiy(a)sysmocom.de>
> 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 <vyanitskiy at sysmocom.de> 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
>>
>
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-path>
./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 <module>
from pySim.cards import card_detect, Card
File "/home/support/pysim/pySim/cards.py", line 29, in <module>
from smartcard.util import toBytes
ModuleNotFoundError: No module named 'smartcard'
BTW, I have manually imported smartcard in python, and it's successful.
Br,
Andrew
Hello Pierre,
> Hi, could you share your gist that you have posted earlier in the
> following url?
>
> https://gist.github.com/efistokl/b95538772e54e5edb7765021c2b5a745#22-config…
I think the README.md of the repo
https://github.com/Pentonet/pentonet-genieacs-package has the same
contents as the gist you mentioned used to have. (I've just made the
repo public)
Also, the repository contains a package I used to set up my nano3g. I
didn't document it at all though.
Also, I think in the gist I didn't include these two fields:
Device.Services.FAPService.1.CellConfig.UMTS.RAN.X_000295_DataOnFACHEnable
= false (xsd:boolean)
Device.Services.FAPService.1.CellConfig.UMTS.RAN.X_000295_FdEnabled =
false (xsd:boolean)
They are important for PS to work properly (as said by ip.access support).
> I am trying to set up my nano3Gs once again and I remember reading this
> awesome guide before, but when I visited the page today, sadly it was
> not available anymore.
Thanks, I am glad it was useful.
Kind regards,
Mykola
Dear Osmocom community,
I'd like to share this with you, as I believe not many have read the
book "GSM and UMTS; The Creation of Global Mobile Communications" by
Friedhelm Hillebrand (who by the way just received the Order of Merit of
the Federal Republic of Germany for his substantial contributions to
mobile communications).
The document (and some others on the included CD-ROM that comes with the
book) reminds me to the much more widely known "Aprils Fool RFCs"
within the IETF. It's a pity that ETSI - unlike IETF - didn't go through
with it and hence those documents were never officially published, so
that today only some fax scans seem to exist.
Enjoy!
--
- Harald Welte <hwelte(a)sysmocom.de> 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