From sunil.srikantamurthy1990 at gmail.com Thu May 2 08:58:22 2019 From: sunil.srikantamurthy1990 at gmail.com (Sunil Hebbur Srikantamurthy) Date: Thu, 2 May 2019 10:58:22 +0200 Subject: Beginner: Need guidence in setting up the simtracer 2 Message-ID: Hello all, I have newly ordered the Simtracer 2. I have received the same today. I would like to have some guidence from you, how to proceed now. Should I load a firmware on the module?, which software should I use? how to track the message exchanges from the sim to mobile. There are several manuals, could u please tell which one to read? Could you please guide me on the same. Best regards, M.Sc. Sunil Hebbur Srikantamurthy Chair of Communication Networks Electrical Engineering and Information Technology Chemnitz University of Technology -------------- next part -------------- An HTML attachment was scrubbed... URL: From felix.ontanon at podgroup.com Thu May 2 09:02:41 2019 From: felix.ontanon at podgroup.com (=?UTF-8?B?Si4gRsOpbGl4IE9udGHDscOzbg==?=) Date: Thu, 2 May 2019 11:02:41 +0200 Subject: Beginner: Need guidence in setting up the simtracer 2 In-Reply-To: References: Message-ID: Hi Sunil, I recently wrote a quick few internal notes for my colleagues to use Simtrace2+Wireshark on Ubuntu 18.04 I'll share with you in the case it helps. Using Simtrace2 I had not to flash any firmware, it works out of the box. ------ h1. Simtrace and Wireshark h2. Simtrace2 The official installation steps are here: https://osmocom.org/projects/simtrace2/wiki But !! Follow this installation steps for a full-debian-packaged installation (tested on Ubuntu 18.04 LTS). Let's first prepare your system to compile debian packages, let's install some recurring compiling dependencies and then devscripts (the utilities for building debian packages): $ sudo apt install build-essential libtool libtalloc-dev shtool autoconf automake git-core pkg-config make gcc $ sudo apt install devscripts First, install libosmocore dependencies, download libosmocore itself and build the debian packages and install $ sudo apt install libgnutls28-dev doxygen libtalloc-dev $ git clone git://git.osmocom.org/libosmocore.git $ cd libosmocore $ debuild -uc -us $ cd .. $ sudo dpkg -i *deb Next, install simtrace2 dependencies, download simtrace2 itself and build the debian packages and install $ sudo apt install libusb-1.0-0-dev libpcsclite-dev $ git clone git://git.osmocom.org/simtrace2.git $ cd simtrace2 $ debuild -uc -us $ cd .. $ sudo dpkg -i *deb Finally, let's configure perms to launch simtrace2 in user space $ sudo adduser $USERNAME plugdev $ sudo wget -O /etc/udev/rules.d/99-simtrace2.rules https://git.osmocom.org/simtrace2/plain/host/99-simtrace2.rules $ sudo service udev reload $ sudo udevadm control --reload-rules $ sudo udevadm trigger Plug simtrace2 and test !!! $ simtrace2-sniff simtrace2-sniff - Phone-SIM card communication sniffer (C) 2010-2017 by Harald Welte (C) 2018 by Kevin Redon Using USB device 1d50:60e3 Addr=15, Path=1-3, Cfg=1, Intf=0, Alt=0: 255/1/0 (SIMtrace Sniffer) Entering main loop Card state change: reset asserted ATR: 3b 9f 96 80 1f 87 80 31 e0 73 fe 21 19 67 4a 55 73 30 31 07 46 be PPS: ff 10 96 79 PPS: ff 10 96 79 Fi/Di switched to 512/32 TPDU: 00 a4 00 04 02 3f 00 61 2c TPDU: 00 c0 00 00 2c 62 2a 82 02 78 21 83 02 3f 00 a5 09 80 01 71 83 04 00 03 18 9c 8a 01 05 8c 04 26 1a 00 00 c6 0c 90 01 60 83 01 01 83 01 81 83 01 0a 90 00 TPDU: 00 a4 08 04 02 2f e2 61 21 .. .. h2. Wireshark Install wireshark, run as root, capture localhost. Apply the following wireshark filter: udp port 4729 -- *J. F?lix Onta??n* Director of Research and Innovation Pod Group felix.ontanon at podgroup.com www.podgroup.com www.podm2m.com www.pod.solutions UK: +44 (0)1223 850 900 <+44%201223%20850900> USA: +1 415 7070 500 Spain: +34 954 050 200 <+34%20954%2005%2002%2000> [image: Facebook] [image: Twitter] [image: LinkedIn] [image: Instagram] *Sales*: sales at podgroup.com *Support*: support at podgroup.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sunil.srikantamurthy1990 at gmail.com Tue May 14 13:19:17 2019 From: sunil.srikantamurthy1990 at gmail.com (Sunil Hebbur Srikantamurthy) Date: Tue, 14 May 2019 15:19:17 +0200 Subject: Beginner: Need guidence in setting up the simtracer 2 In-Reply-To: References: Message-ID: Hello, Thank you. I am facing issue installing libosmocore dependencies. when I run command: debuild -uc -us dpkg-buildpackage -rfakeroot -us -uc -ui dpkg-buildpackage: warning: using a gain-root-command while being root dpkg-buildpackage: info: source package libosmocore dpkg-buildpackage: info: source version 1.1.0 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Pau Espin Pedrol < pespin at sysmocom.de> dpkg-source --before-build libosmocore dpkg-buildpackage: info: host architecture amd64 dpkg-checkbuilddeps: error: Unmet build dependencies: debhelper (>= 9) dh-autoreconf libpcsclite-dev python (>= 2.7.6) dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting dpkg-buildpackage: warning: (Use -d flag to override.) debuild: fatal error at line 1152: dpkg-buildpackage -rfakeroot -us -uc -ui failed Could you please guide me on the same. and also could you please explain what is meant by *be in command: dpkg -i *deb. Thanks Best regards, M.Sc. Sunil Hebbur Srikantamurthy Chair of Communication Networks Electrical Engineering and Information Technology Chemnitz University of Technology On Thu, May 2, 2019 at 11:02 AM J. F?lix Onta??n wrote: > Hi Sunil, > > I recently wrote a quick few internal notes for my colleagues to use > Simtrace2+Wireshark on Ubuntu 18.04 > I'll share with you in the case it helps. Using Simtrace2 I had not to > flash any firmware, it works out of the box. > > ------ > > h1. Simtrace and Wireshark > > h2. Simtrace2 > > The official installation steps are here: > https://osmocom.org/projects/simtrace2/wiki > > But !! Follow this installation steps for a full-debian-packaged > installation (tested on Ubuntu 18.04 LTS). > > Let's first prepare your system to compile debian packages, let's install > some recurring compiling dependencies and then devscripts (the utilities > for building debian packages): > > $ sudo apt install build-essential libtool libtalloc-dev shtool autoconf > automake git-core pkg-config make gcc > $ sudo apt install devscripts > > First, install libosmocore dependencies, download libosmocore itself and > build the debian packages and install > > $ sudo apt install libgnutls28-dev doxygen libtalloc-dev > $ git clone git://git.osmocom.org/libosmocore.git > $ cd libosmocore > $ debuild -uc -us > $ cd .. > $ sudo dpkg -i *deb > > Next, install simtrace2 dependencies, download simtrace2 itself and build > the debian packages and install > > $ sudo apt install libusb-1.0-0-dev libpcsclite-dev > $ git clone git://git.osmocom.org/simtrace2.git > $ cd simtrace2 > $ debuild -uc -us > $ cd .. > $ sudo dpkg -i *deb > > Finally, let's configure perms to launch simtrace2 in user space > > $ sudo adduser $USERNAME plugdev > $ sudo wget -O /etc/udev/rules.d/99-simtrace2.rules > https://git.osmocom.org/simtrace2/plain/host/99-simtrace2.rules > $ sudo service udev reload > $ sudo udevadm control --reload-rules > $ sudo udevadm trigger > > Plug simtrace2 and test !!! > > $ simtrace2-sniff > simtrace2-sniff - Phone-SIM card communication sniffer > (C) 2010-2017 by Harald Welte > (C) 2018 by Kevin Redon > > Using USB device 1d50:60e3 Addr=15, Path=1-3, Cfg=1, Intf=0, Alt=0: > 255/1/0 (SIMtrace Sniffer) > Entering main loop > Card state change: reset asserted > ATR: 3b 9f 96 80 1f 87 80 31 e0 73 fe 21 19 67 4a 55 73 30 31 07 46 be > PPS: ff 10 96 79 > PPS: ff 10 96 79 > Fi/Di switched to 512/32 > TPDU: 00 a4 00 04 02 3f 00 61 2c > TPDU: 00 c0 00 00 2c 62 2a 82 02 78 21 83 02 3f 00 a5 09 80 01 71 83 04 00 > 03 18 9c 8a 01 05 8c 04 26 1a 00 00 c6 0c 90 01 60 83 01 01 83 01 81 83 01 > 0a 90 00 > TPDU: 00 a4 08 04 02 2f e2 61 21 > .. > .. > > h2. Wireshark > > Install wireshark, run as root, capture localhost. Apply the following > wireshark filter: > > udp port 4729 > > > -- > > > > *J. F?lix Onta??n* > Director of Research and Innovation > Pod Group > > felix.ontanon at podgroup.com > > www.podgroup.com > www.podm2m.com > www.pod.solutions > > UK: +44 (0)1223 850 900 <+44%201223%20850900> > USA: +1 415 7070 500 > Spain: +34 954 050 200 <+34%20954%2005%2002%2000> > > [image: Facebook] [image: Twitter] > [image: LinkedIn] > [image: Instagram] > > > *Sales*: sales at podgroup.com > > *Support*: support at podgroup.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From laforge at gnumonks.org Tue May 14 14:11:16 2019 From: laforge at gnumonks.org (Harald Welte) Date: Tue, 14 May 2019 16:11:16 +0200 Subject: Beginner: Need guidence in setting up the simtracer 2 In-Reply-To: References: Message-ID: <20190514141116.GE13712@nataraja> Hi J. Felix and Sunil, I'm wondering: Are you actually intending to do development on the SIMtrace2 software, or do you just want to use it? If you just want to use it, why not simply use the osmocom packages provided for Ubuntu 18.04 at http://download.opensuse.org/repositories/network:/osmocom:/nightly/xUbuntu_18.04/ as explained at https://osmocom.org/projects/cellular-infrastructure/wiki/Nightly_Builds Building from source should generally only be done by developers who want to contribute to development/extension of the software. And for those, I would sort-of expect that they know how to do system-level C development on Linux, including auto-tools, pkg-config, etc. 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 sunil.srikantamurthy1990 at gmail.com Tue May 14 14:47:22 2019 From: sunil.srikantamurthy1990 at gmail.com (Sunil Hebbur Srikantamurthy) Date: Tue, 14 May 2019 16:47:22 +0200 Subject: Beginner: Need guidence in setting up the simtracer 2 In-Reply-To: <20190514141116.GE13712@nataraja> References: <20190514141116.GE13712@nataraja> Message-ID: Hello, I would like to just use the simtracer 2. Could you please provide me detailed steps to sniff the traffic. Should I download all the files? Would the command simtrace2-sniff work on the go. Thank you. Best regards, M.Sc. Sunil Hebbur Srikantamurthy Chair of Communication Networks Electrical Engineering and Information Technology Chemnitz University of Technology On Tue, May 14, 2019 at 4:11 PM Harald Welte wrote: > Hi J. Felix and Sunil, > > I'm wondering: Are you actually intending to do development on the > SIMtrace2 > software, or do you just want to use it? > > If you just want to use it, why not simply use the osmocom packages > provided > for Ubuntu 18.04 at > > http://download.opensuse.org/repositories/network:/osmocom:/nightly/xUbuntu_18.04/ > as explained at > https://osmocom.org/projects/cellular-infrastructure/wiki/Nightly_Builds > > Building from source should generally only be done by developers who want > to contribute to development/extension of the software. And for those, I > would > sort-of expect that they know how to do system-level C development on > Linux, > including auto-tools, pkg-config, etc. > > Regards, > Harald > -- > - 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 sunil.srikantamurthy1990 at gmail.com Thu May 16 08:56:42 2019 From: sunil.srikantamurthy1990 at gmail.com (Sunil Hebbur Srikantamurthy) Date: Thu, 16 May 2019 10:56:42 +0200 Subject: Beginner: Need guidence in setting up the simtracer 2 In-Reply-To: References: <20190514141116.GE13712@nataraja> Message-ID: Helli, I also tried the compiling and accessing instructions as described in https://osmocom.org/projects/simtrace2/wiki, but I am facing following issues there too. 1) I am unable to download the packages libosmocore-dev libpcsclite-dev. Err:1 http://download.opensuse.org/repositories/network:/osmocom:/nightly/xUbuntu_18.04 ./ libosmocore12 1.1.0.12.1850 404 Not Found [IP: 195.135.221.134 80] 2) I am not able to compile. make does'nt run. 3) Un able to detect the simtracer2 with ./simtrace2-list Could any one please guide and help me to set this up. Best regards, M.Sc. Sunil Hebbur Srikantamurthy Chair of Communication Networks Electrical Engineering and Information Technology Chemnitz University of Technology On Tue, May 14, 2019 at 4:47 PM Sunil Hebbur Srikantamurthy < sunil.srikantamurthy1990 at gmail.com> wrote: > Hello, > > I would like to just use the simtracer 2. Could you please provide me > detailed steps to sniff the traffic. Should I download all the files? > Would the command simtrace2-sniff work on the go. > > Thank you. > > Best regards, > M.Sc. Sunil Hebbur Srikantamurthy > Chair of Communication Networks > Electrical Engineering and Information Technology > Chemnitz University of Technology > > > On Tue, May 14, 2019 at 4:11 PM Harald Welte wrote: > >> Hi J. Felix and Sunil, >> >> I'm wondering: Are you actually intending to do development on the >> SIMtrace2 >> software, or do you just want to use it? >> >> If you just want to use it, why not simply use the osmocom packages >> provided >> for Ubuntu 18.04 at >> >> http://download.opensuse.org/repositories/network:/osmocom:/nightly/xUbuntu_18.04/ >> as explained at >> https://osmocom.org/projects/cellular-infrastructure/wiki/Nightly_Builds >> >> Building from source should generally only be done by developers who want >> to contribute to development/extension of the software. And for those, I >> would >> sort-of expect that they know how to do system-level C development on >> Linux, >> including auto-tools, pkg-config, etc. >> >> Regards, >> Harald >> -- >> - 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 laforge at gnumonks.org Thu May 16 09:45:29 2019 From: laforge at gnumonks.org (Harald Welte) Date: Thu, 16 May 2019 11:45:29 +0200 Subject: Beginner: Need guidence in setting up the simtracer 2 In-Reply-To: References: <20190514141116.GE13712@nataraja> Message-ID: <20190516094529.GA10927@nataraja> Dear Sunil, with all due respect, the questions you are asking here are very basic questions about software installation (and to some extend compilation) on a GNU/Linux operating system. They are not related at all to the SIMtrace project. You would have the exact same issues with installing virtually any other software either from package feeds or from source code on GNU/Linux. It is rather unlikely that people here will spend their spare time for free in helping you with those issues, sorry. Thanks for your understanding. Having said that, if somebody reading this wants to help you, by all means. I just think it's unlikely. Best 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 holger at freyther.de Thu May 16 13:23:34 2019 From: holger at freyther.de (Holger Freyther) Date: Thu, 16 May 2019 14:23:34 +0100 Subject: Beginner: Need guidence in setting up the simtracer 2 In-Reply-To: References: <20190514141116.GE13712@nataraja> Message-ID: <3C7CC38A-F219-44C4-A406-4EE37CD099C8@freyther.de> > On 16. May 2019, at 09:56, Sunil Hebbur Srikantamurthy wrote: > > Helli, > > I also tried the compiling and accessing instructions as described in https://osmocom.org/projects/simtrace2/wiki, but I am facing following issues there too. > > 1) I am unable to download the packages libosmocore-dev libpcsclite-dev. > Err:1 http://download.opensuse.org/repositories/network:/osmocom:/nightly/xUbuntu_18.04 ./ libosmocore12 1.1.0.12.1850 > 404 Not Found [IP: 195.135.221.134 80] you seem to have executed one of apt update/apt-get update on one day and now attempt to install on another day. As this is a nightly package.. the version will change all day... and by the time you tried to download it, it failed. Execute apt update/apt install in closer proximity (or you were unlucky to download it within a possible broken window). From alan at kageds.com Thu May 30 10:46:17 2019 From: alan at kageds.com (KageDS) Date: Thu, 30 May 2019 11:46:17 +0100 Subject: simtrace2 just sits and does nothing : any suggestions? Message-ID: <8d408eaa-2376-1c42-ebff-69de51fb98f0@kageds.com> Hello list, I've been playing with the sysmoQMOD board and I find that more often than not the remsim-client justs sits there waiting for something [1] when I list the modem using ofono/test/list-modem [2] it shows that there is no SIM present. I've tried a Telit modem and a Sierra Wireless modem and both do the same thing. Sometimes it works but more often than not it justs sits there. I've tried using the 'uhubctl' tool to power cycle the modem but this has no effect on the st2 client. It deletes the modem instance and cretes a new one in ofono. Anyone have any suggestion of what I can try to trigger the modem to do something? Or how I can get some debug info from the card? Thanks Alan --------------------------------- [1] sudo ./osmo-remsim-client-st2 -V 0x1d50 -P 0x4004 -c 0 -C 1 -I 0 -H 1-6.1 simtrace2-remsim-client - Remote SIM card client for SIMtrace (C) 2010-2017, Harald Welte (C) 2018, sysmocom -s.f.m.c. GmbH, Author: Kevin Redon <0000> fsm.c:299 RSPRO_CLIENT(server)[0x564613030760]{INIT}: Allocated <0000> fsm.c:299 BANKD_CONN(bankd)[0x5646130317c0]{INIT}: Allocated SIMtrace <- 01 05 00 00 00 00 09 00 01 SIMtrace <- 02 02 00 00 00 00 09 00 01 SIMtrace <= cardem_request_set_atr(3b 00 ) SIMtrace <- 01 02 00 00 00 00 0b 00 02 3b 00 SIMtrace <- 02 01 00 00 00 00 0b 00 02 2c 01 Entering main loop <0003> input/ipa.c:128 127.0.0.1:9998 connection done <0000> rspro_client_fsm.c:105 RSPRO_CLIENT(server)[0x564613030760]{INIT}: RSPRO link to 127.0.0.1:9998 UP <0000> rspro_client_fsm.c:107 RSPRO_CLIENT(server)[0x564613030760]{INIT}: Received Event SRVC_E_TCP_UP <0000> rspro_client_fsm.c:210 RSPRO_CLIENT(server)[0x564613030760]{INIT}: state_chg to ESTABLISHED <0000> rspro_client_fsm.c:78 RSPRO_CLIENT(server)[0x564613030760]{ESTABLISHED}: Tx RSPRO connectClientReq <0000> rspro_client_fsm.c:141 RSPRO_CLIENT(server)[0x564613030760]{ESTABLISHED}: Received RSPRO [L1]> 00 40 ee 07 [L2]> 30 3d 80 01 02 81 02 09 26 a2 34 a3 32 30 2d 0a 01 01 16 0a 66 69 78 6d 65 2d 6e 61 6d 65 80 0d 72 65 6d 73 69 6d 2d 73 65 72 76 65 72 81 0d 30 2e 31 2e 30 2e 31 32 2d 66 30 31 38 0a 01 00 <0000> simtrace2-remsim_client.c:669 RSPRO_CLIENT(server)[0x564613030760]{ESTABLISHED}: Received Event SRVC_E_CLIENT_CONN_RES <0000> rspro_client_fsm.c:254 RSPRO_CLIENT(server)[0x564613030760]{ESTABLISHED}: state_chg to CONNECTED <0000> rspro_client_fsm.c:141 RSPRO_CLIENT(server)[0x564613030760]{CONNECTED}: Received RSPRO [L1]> 00 21 ee 07 [L2]> 30 1e 80 01 02 81 01 00 a2 16 b1 14 30 06 02 01 01 02 01 00 30 0a 80 04 7f 00 00 01 02 02 27 0f <0000> simtrace2-remsim_client.c:687 BANKD_CONN(bankd)[0x5646130317c0]{INIT}: Received Event BDC_E_ESTABLISH <0000> bankd_client_fsm.c:195 BANKD_CONN(bankd)[0x5646130317c0]{INIT}: state_chg to REESTABLISH <0000> bankd_client_fsm.c:159 BANKD_CONN(bankd)[0x5646130317c0]{REESTABLISH}: Creating TCP connection to bankd at 127.0.0.1:9999 <0000> rspro_client_fsm.c:78 RSPRO_CLIENT(server)[0x564613030760]{CONNECTED}: Tx RSPRO configClientBankRes <0003> input/ipa.c:128 127.0.0.1:9999 connection done RSPRO link to 127.0.0.1:9999 UP <0000> bankd_client_fsm.c:47 BANKD_CONN(bankd)[0x5646130317c0]{REESTABLISH}: Received Event BDC_E_TCP_UP <0000> bankd_client_fsm.c:181 BANKD_CONN(bankd)[0x5646130317c0]{REESTABLISH}: state_chg to ESTABLISHED <0000> simtrace2-remsim_client.c:649 BANKD_CONN(bankd)[0x5646130317c0]{ESTABLISHED}: Received RSPRO [L1]> 00 45 ee 07 [L2]> 30 42 80 01 02 81 02 09 26 a2 39 a3 37 30 32 0a 01 02 16 0a 66 69 78 6d 65 2d 6e 61 6d 65 80 0c 72 65 6d 73 69 6d 2d 62 61 6e 6b 64 81 13 30 2e 31 2e 30 2e 31 32 2d 66 30 31 38 2d 64 69 72 74 79 0a 01 00 <0000> simtrace2-remsim_client.c:613 BANKD_CONN(bankd)[0x5646130317c0]{ESTABLISHED}: Received Event BDC_E_CLIENT_CONN_RES <0000> bankd_client_fsm.c:122 BANKD_CONN(bankd)[0x5646130317c0]{ESTABLISHED}: state_chg to CONNECTED <0000> simtrace2-remsim_client.c:649 BANKD_CONN(bankd)[0x5646130317c0]{CONNECTED}: Received RSPRO [L1]> 00 2c ee 07 [L2]> 30 29 80 01 02 81 01 00 a2 21 aa 1f 30 06 02 01 00 02 01 00 04 15 3b 9e 96 80 1f c7 80 31 e0 73 fe 21 1b 66 d0 02 17 8d 11 00 89 SIMtrace <= cardem_request_set_atr(3b 9e 96 80 1f c7 80 31 e0 73 fe 21 1b 66 d0 02 17 8d 11 00 89 ) SIMtrace <- 01 02 00 00 00 00 1e 00 15 3b 9e 96 80 1f c7 80 31 e0 73 fe 21 1b 66 d0 02 17 8d 11 00 89 <0000> bankd_client_fsm.c:58 BANKD_CONN(bankd)[0x5646130317c0]{CONNECTED}: Received Event BDC_E_RSPRO_TX -------------------------- [2] ~/ofono/test/list-modems [ /sierra_15 ] ??? Powered = 1 ??? Interfaces = org.ofono.SimManager org.ofono.LocationReporting org.ofono.VoiceCallManager ??? Model = MC7304 ??? Revision = SWI9X15C_05.05.58.00 r27038 carmd-fwbuild1 2015/03/04 21:30:23 ??? Manufacturer = Sierra Wireless, Incorporated ??? Serial = 356853054058773 ??? Online = 0 ??? SystemPath = /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6.2 ??? Features = sim gps ??? Type = hardware ??? Emergency = 0 ??? Lockdown = 0 ??? [ org.ofono.SimManager ] ??????? Present = 0 ??? [ org.ofono.LocationReporting ] ??????? Enabled = 0 ??????? Type = nmea ??? [ org.ofono.VoiceCallManager ] ??????? EmergencyNumbers = 08 000 999 110 112 911 118 119 -------------------------------- From laforge at gnumonks.org Thu May 30 21:56:02 2019 From: laforge at gnumonks.org (Harald Welte) Date: Thu, 30 May 2019 23:56:02 +0200 Subject: simtrace2 just sits and does nothing : any suggestions? In-Reply-To: <8d408eaa-2376-1c42-ebff-69de51fb98f0@kageds.com> References: <8d408eaa-2376-1c42-ebff-69de51fb98f0@kageds.com> Message-ID: <20190530215602.GH22070@nataraja> Hi Alan, sorry to hear about your troubles. My first question would be to do a 'strace' on the remsim-client when this problem happens. >From the log file it seems that remsim-client is fully set up, i.e. it has connected to the server, received instruction to connect to the bankd and it has established that bankd connection. It appears that the client "simply" doesn't receive any APDU from the SAM3S microcontroller. The strace would give us certainty about what the remsim-client is doing, i.e. whether or not it receives something over USB or whether it's in some endless loop or whatever else. If remsim-client appears to be fine, we have to look one level deeper: the simtrace2 cardem firmware running on the SAM3S microcontrollers. Debugging the microcontroller itself is unfortunately not possible without a 3.3V UART cable attached to the 3-pin headers of the SAM3S processors (X601, X701). I can ship you the required cabling tomorrow, hoping this helps us further to see what's going on. Do you have any particular method to reproduce this? Does it appear related to a specific sim card? Does it fail from the beginning or only appear after some time? I'm basically looking for any way to gaing more information. If you'd like to provide remote (SSH) access to a machine where the board is connected, we could also try to debug that remotely. Another thing to try would be to use the 'simtrace2-remsim' program from simtrace2.git (see the sysmoQMOD user manual towards the end) with a local PC/SC reader. If it works there, then the bug must be in the osmo-remsim software. Thanks for your patience. 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 alan at kageds.com Fri May 31 09:02:30 2019 From: alan at kageds.com (KageDS) Date: Fri, 31 May 2019 10:02:30 +0100 Subject: simtrace2 just sits and does nothing : any suggestions? In-Reply-To: <20190530215602.GH22070@nataraja> References: <8d408eaa-2376-1c42-ebff-69de51fb98f0@kageds.com> <20190530215602.GH22070@nataraja> Message-ID: <407edc77-aa63-2638-a432-2491d0f2bf15@kageds.com> Hi Harald, Thanks for responding. > Debugging the microcontroller itself is unfortunately not possible without > a 3.3V UART cable attached to the 3-pin headers of the SAM3S processors (X601, > X701). I can ship you the required cabling tomorrow, hoping this helps > us further to see what's going on. I will dig out a Raspberry PI and connect it to the debug port. > Do you have any particular method to reproduce this? Does it appear related > to a specific sim card? Does it fail from the beginning or only appear after > some time? I'm basically looking for any way to gaing more information. I've managed to narrow the problem down a little bit: i) The card reader and sysmoQMOD are on the same server : works great ii) Move the card reader and bankkd onto a remote server which adds a delay : soon get this stuck state iii) Move the card reader back to the same server : still in this stuck state iv) Power cycle the sysmoQMOD card : works again It seems that when I intoduce a delay between bankd and st2 it can? get into this state and then stays there. I've tried several methods to restart the modem rather than powercycle the card but nothing seems to work: atz at#reboot uhubctl -a cycle? -p 2 Regards Alan From alan at kageds.com Fri May 31 10:02:50 2019 From: alan at kageds.com (KageDS) Date: Fri, 31 May 2019 11:02:50 +0100 Subject: simtrace2 just sits and does nothing : any suggestions? In-Reply-To: <20190530215602.GH22070@nataraja> References: <8d408eaa-2376-1c42-ebff-69de51fb98f0@kageds.com> <20190530215602.GH22070@nataraja> Message-ID: <86009086-a7ac-4f2e-1339-cb4cc91b9923@kageds.com> Hi Harold, FYI The pins are missing on X601 and X701. Looks like I need to dig up some header pins as well. On 30/05/2019 22:56, Harald Welte wrote: > a 3.3V UART cable attached to the 3-pin headers of the SAM3S processors (X601, > X701) From alan at kageds.com Fri May 31 11:41:40 2019 From: alan at kageds.com (KageDS) Date: Fri, 31 May 2019 12:41:40 +0100 Subject: simtrace2 just sits and does nothing : any suggestions? In-Reply-To: <20190530215602.GH22070@nataraja> References: <8d408eaa-2376-1c42-ebff-69de51fb98f0@kageds.com> <20190530215602.GH22070@nataraja> Message-ID: On 30/05/2019 22:56, Harald Welte wrote: > The strace would give us certainty about what the remsim-client is doing, > i.e. whether or not it receives something over USB or whether it's in some > endless loop or whatever else. Hi Harald, Of course when I run 'strace remsim-client' I don't see the problem, at least not yet. To me that suggests its some sort of timing issue. Alan From alan at kageds.com Fri May 31 13:21:35 2019 From: alan at kageds.com (KageDS) Date: Fri, 31 May 2019 14:21:35 +0100 Subject: simtrace2 just sits and does nothing : any suggestions? In-Reply-To: References: <8d408eaa-2376-1c42-ebff-69de51fb98f0@kageds.com> <20190530215602.GH22070@nataraja> Message-ID: <17e7f98d-db09-ab2f-ed1a-6414a4894402@kageds.com> Hi Harald, Here is the strace after it gets stuck. https://pastebin.com/X0fWT5y5 Let me know if you spot anything interesting. The only way I've found to get it working again is to power cycle the card. Regards Alan From laforge at gnumonks.org Fri May 31 14:08:23 2019 From: laforge at gnumonks.org (Harald Welte) Date: Fri, 31 May 2019 16:08:23 +0200 Subject: simtrace2 just sits and does nothing : any suggestions? In-Reply-To: <86009086-a7ac-4f2e-1339-cb4cc91b9923@kageds.com> References: <8d408eaa-2376-1c42-ebff-69de51fb98f0@kageds.com> <20190530215602.GH22070@nataraja> <86009086-a7ac-4f2e-1339-cb4cc91b9923@kageds.com> Message-ID: <20190531140823.GL22070@nataraja> Hi Alan, On Fri, May 31, 2019 at 11:02:50AM +0100, KageDS wrote: > FYI The pins are missing on X601 and X701. Looks like I need to dig up some > header pins as well. yes, this is intentional. The pin headers were impacting some enclosure ingtegration of a customer, and we decided to not place them by default. After all, they're not for use in production. I guess we could place them for the 1-off evaluation board purchases, thanks for pointing that out. -- - 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 gnumonks.org Fri May 31 14:11:37 2019 From: laforge at gnumonks.org (Harald Welte) Date: Fri, 31 May 2019 16:11:37 +0200 Subject: simtrace2 just sits and does nothing : any suggestions? In-Reply-To: <17e7f98d-db09-ab2f-ed1a-6414a4894402@kageds.com> References: <8d408eaa-2376-1c42-ebff-69de51fb98f0@kageds.com> <20190530215602.GH22070@nataraja> <17e7f98d-db09-ab2f-ed1a-6414a4894402@kageds.com> Message-ID: <20190531141137.GM22070@nataraja> Hi Alan, we are be building a setup with the 'tc netem' scheduler between remsim-client and remsim-bankd, so we can introduce any amount of delay to further investigate. Regards, Harald -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6)