From laforge at gnumonks.org Sun Mar 1 20:38:23 2009 From: laforge at gnumonks.org (Harald Welte) Date: Sun, 1 Mar 2009 21:38:23 +0100 Subject: Jumper settings for 120 Ohm connection In-Reply-To: <49A917A3.7010509@kernreaktor.org> References: <49A410B6.5050401@kernreaktor.org> <20090227233529.GS4283@prithivi.gnumonks.org> <49A917A3.7010509@kernreaktor.org> Message-ID: <20090301203823.GK23945@prithivi.gnumonks.org> On Sat, Feb 28, 2009 at 11:53:23AM +0100, Holger Adams wrote: > Maybe its important to mention: > - Both LEDs of the E-1 card are blinking red this is correct (don't ask me why) -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From laforge at gnumonks.org Sun Mar 1 20:39:26 2009 From: laforge at gnumonks.org (Harald Welte) Date: Sun, 1 Mar 2009 21:39:26 +0100 Subject: Jumper settings for 120 Ohm connection In-Reply-To: <49a92be3.mirider@mirider.augusta.de> References: <49a92be3.mirider@mirider.augusta.de> Message-ID: <20090301203926.GL23945@prithivi.gnumonks.org> On Sat, Feb 28, 2009 at 12:19:47PM +0000, Dieter Spaar wrote: > Hello Holger, > > On Sat, 28 Feb 2009 11:53:23 +0100, "Holger Adams" wrote: > > > > Maybe its important to mention: > > - Both LEDs of the E-1 card are blinking red > > - Used cables for the RJ45 plug (CAT5): orange/blue > > I can't help with Linux (I use Windows), however I noticed > this in mISDN (hfc_multi.c) a while ago: > > case 1: /* HFC-E1 OEM */ > /* 2 red blinking: NT mode deactivate > * 2 red steady: TE mode deactivate > * left green: L1 active > * left red: frame sync, but no L1 > * right green: L2 active > */ > > So I would guess that there is a synchronisation problem which is not > related to the TEI setting. Maybe there is something wrong with the > wire connection. If you can see the signal sent from the E1 card at > the BS-11 and there is also a signal sent from the BS-11, than probably > the signal from the BS-11 is not received by the E1 card so it could > not synchronize on it. the led's keep blinking red all the time during OpenBSC operation, seems to be a hfcmulti driver bug that doesn't set the LED's correctly. -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From michael.gernoth at informatik.uni-erlangen.de Sun Mar 1 17:01:52 2009 From: michael.gernoth at informatik.uni-erlangen.de (Michael Gernoth) Date: Sun, 1 Mar 2009 18:01:52 +0100 Subject: BS11 configuration problem Message-ID: <20090301170152.GA7633@cip.informatik.uni-erlangen.de> Hi, after receiving an E1 card, I tried (unsuccessfully) to get bsc_hack up and running: http://pbot.rmdir.de/19e2baa94ffedfdb814dce0a9346532e After that, no new network can be found with a mobile phone. bs11_config is reporting: PHASE: 3 Normal MBCCU0: Load MBCCU1: Load Abis-link: Up When bsc_hack is started, the following message appears a huge number of times in the kernel log: Mar 1 17:24:51 faui43g kernel: mISDN_send: error -12 and then sometimes messages like: Mar 1 17:24:52 faui43g kernel: ph_data_indication 0x0 0x3 0x0 The kernel version is 2.6.27.19 (patched), but I also tried the newest git tree from Linus with the same results. I think the configuration of my BS-11 is somehow broken, as both TRX seem to be enabled: BS11 Power Amplifier 0 ATTRIBUTES: TRX Power: 30mW (GSM) BS11 Power Amplifier 1 ATTRIBUTES: TRX Power: 30mW (GSM) But running bs11_config delete-trx1 (or create-trx1) just produces BS11 DELETE OBJECT NACK (respectively BS11 CREATE OBJECT NACK): http://pbot.rmdir.de/53344f67ed0cb86f24c4a79f0af4fe2e Trying to reset the standard configuration by deleting and recreating all objects in create_objects() doesn't work, too: http://pbot.rmdir.de/13e0b928689c0d527b13fa52698b9391 (Patch: http://pbot.rmdir.de/e549a8a52da6d389326e2e2891c2f289) It seems to me, that I have to reset the BS-11 to the factory defaults and recreate the configuration with bs11_config, but I don't know how to do that (and if I need the firmware files for that...). Did I miss something obvious, or is the configuration of my BS11 somehow broken? Thanks & Regards, Michael -- Michael Gernoth Department of Computer Science IV Martensstrasse 1 D-91058 Erlangen Germany University of Erlangen-Nuremberg http://www4.informatik.uni-erlangen.de/~gernoth/ From laforge at gnumonks.org Sun Mar 1 20:45:44 2009 From: laforge at gnumonks.org (Harald Welte) Date: Sun, 1 Mar 2009 21:45:44 +0100 Subject: BS11 configuration problem In-Reply-To: <20090301170152.GA7633@cip.informatik.uni-erlangen.de> References: <20090301170152.GA7633@cip.informatik.uni-erlangen.de> Message-ID: <20090301204543.GM23945@prithivi.gnumonks.org> On Sun, Mar 01, 2009 at 06:01:52PM +0100, Michael Gernoth wrote: > Hi, > after receiving an E1 card, I tried (unsuccessfully) to get bsc_hack up and > running: > http://pbot.rmdir.de/19e2baa94ffedfdb814dce0a9346532e I'm sorry to hear that :( > After that, no new network can be found with a mobile phone. It looks just right, though. OML and RSL are bootstrapped. can you start it with -dDMI:DRSL:DNM to see if it actually ever receives something back from the BS-11? You should see something like 'E1 RX:' lines > bs11_config is reporting: > PHASE: 3 Normal MBCCU0: Load MBCCU1: Load Abis-link: Up good! > When bsc_hack is started, the following message appears a huge number > of times in the kernel log: > Mar 1 17:24:51 faui43g kernel: mISDN_send: error -12 > and then sometimes messages like: > Mar 1 17:24:52 faui43g kernel: ph_data_indication 0x0 0x3 0x0 this is strange. > The kernel version is 2.6.27.19 (patched), but I also tried the newest git > tree from Linus with the same results. sad. > I think the configuration of my BS-11 is somehow broken, as both TRX seem > to be enabled: This is not broken, it is just an option. The second TRX does not interfere in any way in the communication of the OML and RSL-first-TRX bringup, since OML never tells the TRX1 on which TEI/TS to talk to us. I have BS-11 with both TRX enabled without any problem here. > BS11 Power Amplifier 0 ATTRIBUTES: > TRX Power: 30mW (GSM) > > BS11 Power Amplifier 1 ATTRIBUTES: > TRX Power: 30mW (GSM) > > But running bs11_config delete-trx1 (or create-trx1) just produces > BS11 DELETE OBJECT NACK (respectively BS11 CREATE OBJECT NACK): > http://pbot.rmdir.de/53344f67ed0cb86f24c4a79f0af4fe2e yes, this is a known [to me] bug. Maybe Dieter can check his LMT traces and see what I am doing wrong when sending the DELETE OBJECT command to the BS-11. > Trying to reset the standard configuration by deleting and recreating > all objects in create_objects() doesn't work, too: > http://pbot.rmdir.de/13e0b928689c0d527b13fa52698b9391 > (Patch: http://pbot.rmdir.de/e549a8a52da6d389326e2e2891c2f289) > > It seems to me, that I have to reset the BS-11 to the factory defaults > and recreate the configuration with bs11_config, but I don't know how > to do that (and if I need the firmware files for that...). the configuration seems correct, it is set to the right Timeslot / TEI and thus OML should come up. Since the TEI is established between BS-11 site manager and OpenBSC, the problems must happen at a much higher/later level. All other parameters (such as RSL TEI/timeslot are configured over that OML link). I'm currently also out of further suggestions. the mISDN_send problems sound like a software issue on the PC within or above mISDN. I think everything on layer1 + TEI works just right. Cheers, -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From michael.gernoth at informatik.uni-erlangen.de Mon Mar 2 08:57:27 2009 From: michael.gernoth at informatik.uni-erlangen.de (Michael Gernoth) Date: Mon, 2 Mar 2009 09:57:27 +0100 Subject: BS11 configuration problem In-Reply-To: <20090301204543.GM23945@prithivi.gnumonks.org> References: <20090301170152.GA7633@cip.informatik.uni-erlangen.de> <20090301204543.GM23945@prithivi.gnumonks.org> Message-ID: <20090302085727.GA19669@informatik.uni-erlangen.de> On Sun, Mar 01, 2009 at 09:45:44PM +0100, Harald Welte wrote: > On Sun, Mar 01, 2009 at 06:01:52PM +0100, Michael Gernoth wrote: > > After that, no new network can be found with a mobile phone. > It looks just right, though. OML and RSL are bootstrapped. can you start it > with -dDMI:DRSL:DNM to see if it actually ever receives something back from the > BS-11? You should see something like 'E1 RX:' lines I've started it with all debug messages enabled: http://pbot.rmdir.de/48e64191d52377dc88b4e939cd232dbc There is just one RX line in the whole output: Mon Mar 2 09:44:34 2009 <1000> input/misdn.c:151 RX: 80 80 00 05 10 00 ff ff ff followed by: Mon Mar 2 09:44:34 2009 <0020> abis_nm.c:565 Software Activated Report > > But running bs11_config delete-trx1 (or create-trx1) just produces > > BS11 DELETE OBJECT NACK (respectively BS11 CREATE OBJECT NACK): > > http://pbot.rmdir.de/53344f67ed0cb86f24c4a79f0af4fe2e > yes, this is a known [to me] bug. Maybe Dieter can check his LMT traces and > see what I am doing wrong when sending the DELETE OBJECT command to the BS-11. Ok, then I don't worry about this anymore. > I'm currently also out of further suggestions. the mISDN_send problems sound > like a software issue on the PC within or above mISDN. I think everything on > layer1 + TEI works just right. The mISDN_send messages went away, when removing the usleep(100000) in handle_ts1_write() of input/misdn.c, but it still does not seem to work :-( Regards, Michael -- Michael Gernoth Department of Computer Science IV Martensstrasse 1 D-91058 Erlangen Germany University of Erlangen-Nuremberg http://www4.informatik.uni-erlangen.de/~gernoth/ From michael.gernoth at informatik.uni-erlangen.de Mon Mar 2 13:16:09 2009 From: michael.gernoth at informatik.uni-erlangen.de (Michael Gernoth) Date: Mon, 2 Mar 2009 14:16:09 +0100 Subject: BS11 configuration problem In-Reply-To: <20090302085727.GA19669@informatik.uni-erlangen.de> References: <20090301170152.GA7633@cip.informatik.uni-erlangen.de> <20090301204543.GM23945@prithivi.gnumonks.org> <20090302085727.GA19669@informatik.uni-erlangen.de> Message-ID: <20090302131609.GA20869@informatik.uni-erlangen.de> On Mon, Mar 02, 2009 at 09:57:27AM +0100, Michael Gernoth wrote: > The mISDN_send messages went away, when removing the usleep(100000) in > handle_ts1_write() of input/misdn.c, but it still does not seem to work :-( I've moved the E1 card to another machine and it's working now with a clean checkout :-) I still get the mISDN_send errors, but I'm ignoring them. Regards, Michael -- Michael Gernoth Department of Computer Science IV Martensstrasse 1 D-91058 Erlangen Germany University of Erlangen-Nuremberg http://www4.informatik.uni-erlangen.de/~gernoth/ From laforge at gnumonks.org Tue Mar 31 13:18:40 2009 From: laforge at gnumonks.org (Harald Welte) Date: Tue, 31 Mar 2009 15:18:40 +0200 Subject: BS11 configuration problem In-Reply-To: <20090302131609.GA20869@informatik.uni-erlangen.de> References: <20090301170152.GA7633@cip.informatik.uni-erlangen.de> <20090301204543.GM23945@prithivi.gnumonks.org> <20090302085727.GA19669@informatik.uni-erlangen.de> <20090302131609.GA20869@informatik.uni-erlangen.de> Message-ID: <20090331131840.GH5010@prithivi.gnumonks.org> On Mon, Mar 02, 2009 at 02:16:09PM +0100, Michael Gernoth wrote: > On Mon, Mar 02, 2009 at 09:57:27AM +0100, Michael Gernoth wrote: > > The mISDN_send messages went away, when removing the usleep(100000) in > > handle_ts1_write() of input/misdn.c, but it still does not seem to work :-( > > I've moved the E1 card to another machine and it's working now with a clean > checkout :-) great. so maybe there is some timing related issue that still needs to be sorted out. Those usleep()s should all go sooner than later anyway. Patches welcome :) -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From kpj at junghanns.net Wed Mar 4 13:15:29 2009 From: kpj at junghanns.net (Klaus-Peter Junghanns) Date: Wed, 04 Mar 2009 14:15:29 +0100 Subject: BS-11, bs11_config Message-ID: <1236172529.21933.71.camel@hdtv.site> Hello everybody, finally i found some time to unwrap my precious BS-11 and started playing. Unfortuantely i did not get to far... I managed to build the power cable, install the antenna, hook up the serial cable to a debian box and install the openbsc software. I followed the steps in the wiki, e.g. run "bs11_config -p /dev/ttyS0" and then turn on the BS-11. The green power LED on the BS-11 is solid green. But i do not get any output from the bs11_config (e.g. no booting messages, etc). :-( Sometimes bs11_config segfaults when i switch on the power to the BS-11: bs11_config -p /dev/ttyS0 bs11_config (C) 2009 by Harald Welte and Dieter Spaar This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY Invalid length in hdr: 0 Segmentation fault The serial cable is connected to the serial port (1 of 4) which is closest to the antenna connectors (like i have seen it on the photo). What did i do wrong? Thanks in advance for your help. :-) Mit freundlichen Gr??en -- best regards Klaus-Peter Junghanns -- Junghanns.NET Gesellschaft fuer Internet-Services & Software-Development mbH Breite Str. 13a 12167 Berlin Germany Geschaeftsfuehrer : Klaus-Peter Junghanns Eingetragen beim Amtsgericht Charlottenburg, HRB 79169 Finanzamt fuer Koerperschaften III, Steuernummer 29/409/8978 Umsatzsteuernummer : DE 217621658 WEEE-Reg.-Nr. DE 86102730 From michael.gernoth at informatik.uni-erlangen.de Wed Mar 4 13:06:01 2009 From: michael.gernoth at informatik.uni-erlangen.de (Michael Gernoth) Date: Wed, 4 Mar 2009 14:06:01 +0100 Subject: BS-11, bs11_config In-Reply-To: <1236172529.21933.71.camel@hdtv.site> References: <1236172529.21933.71.camel@hdtv.site> Message-ID: <20090304130600.GB33846@informatik.uni-erlangen.de> On Wed, Mar 04, 2009 at 02:15:29PM +0100, Klaus-Peter Junghanns wrote: > I followed the steps in the wiki, e.g. run "bs11_config -p /dev/ttyS0" > and then turn on the BS-11. The green power LED on the BS-11 is solid > green. But i do not get any output from the bs11_config (e.g. no > booting messages, etc). :-( You should start bs11_config after turning on the BS-11, as it tries to login to the BS-11 as the first step. I usually start the BS-11, wait 2 minutes and then start bs11_config. > Sometimes bs11_config segfaults when i switch on the power to the BS-11: Because it receives the initial spikes on the serial line as "garbage" and tries to interpret them. Just don't do it in this order. > The serial cable is connected to the serial port (1 of 4) which is > closest to the antenna connectors (like i have seen it on the photo). That is the right connector. If the communication does not work when you start bs11_config after the BS-11, try a serial to usb adapter. I had no success with the normal serial ports on two different machines, but a (FTDI) serial converter worked at once. See also: http://bs11-abis.gnumonks.org/trac/wiki/BS11_Troubleshooting Regards, Michael -- Michael Gernoth Department of Computer Science IV Martensstrasse 1 D-91058 Erlangen Germany University of Erlangen-Nuremberg http://www4.informatik.uni-erlangen.de/~gernoth/ From kpj at junghanns.net Wed Mar 4 14:08:03 2009 From: kpj at junghanns.net (Klaus-Peter Junghanns) Date: Wed, 04 Mar 2009 15:08:03 +0100 Subject: BS-11, bs11_config In-Reply-To: <20090304130600.GB33846@informatik.uni-erlangen.de> References: <1236172529.21933.71.camel@hdtv.site> <20090304130600.GB33846@informatik.uni-erlangen.de> Message-ID: <1236175683.21933.81.camel@hdtv.site> Hi, now I get this far: PHASE: 1 Warm Up Abis-link: Down PHASE: 1 Warm Up Abis-link: Down PHASE: 1 Warm Up Abis-link: Down PHASE: 1 Warm Up Abis-link: Down PHASE: 1 Warm Up Abis-link: Down PHASE: 1 Software required Abis-link: Down No valid Safety Load file "BTSBMC76.SWI" How do I get to phase 3 now? ;-) Mit freundlichen Gr??en -- best regards Klaus-Peter Junghanns -- Junghanns.NET Gesellschaft fuer Internet-Services & Software-Development mbH Breite Str. 13a 12167 Berlin Germany Geschaeftsfuehrer : Klaus-Peter Junghanns Eingetragen beim Amtsgericht Charlottenburg, HRB 79169 Finanzamt fuer Koerperschaften III, Steuernummer 29/409/8978 Umsatzsteuernummer : DE 217621658 WEEE-Reg.-Nr. DE 86102730 From holger at kernreaktor.org Wed Mar 4 20:28:05 2009 From: holger at kernreaktor.org (Holger Adams) Date: Wed, 04 Mar 2009 21:28:05 +0100 Subject: BS-11, bs11_config In-Reply-To: <1236175683.21933.81.camel@hdtv.site> References: <1236172529.21933.71.camel@hdtv.site> <20090304130600.GB33846@informatik.uni-erlangen.de> <1236175683.21933.81.camel@hdtv.site> Message-ID: <49AEE455.5030008@kernreaktor.org> Hello, > now I get this far: > > PHASE: 1 Warm Up Abis-link: Down > PHASE: 1 Warm Up Abis-link: Down > PHASE: 1 Warm Up Abis-link: Down > PHASE: 1 Warm Up Abis-link: Down > PHASE: 1 Warm Up Abis-link: Down > PHASE: 1 Software required Abis-link: Down > No valid Safety Load file "BTSBMC76.SWI" > > How do I get to phase 3 now? ;-) Mhm, we need a way to get this files out of the working BS-11 stations (yes, i know the problem about the copyrights, I just want the files). Is there a chance to modify bs11_config for this purpose? Holger From kpj at junghanns.net Fri Mar 6 18:04:43 2009 From: kpj at junghanns.net (Klaus-Peter Junghanns) Date: Fri, 06 Mar 2009 19:04:43 +0100 Subject: BS-11, bs11_config In-Reply-To: <49AEE455.5030008@kernreaktor.org> References: <1236172529.21933.71.camel@hdtv.site> <20090304130600.GB33846@informatik.uni-erlangen.de> <1236175683.21933.81.camel@hdtv.site> <49AEE455.5030008@kernreaktor.org> Message-ID: <1236362683.13656.4.camel@linux-hx6p> Hi, my BS-11 now has a firmware and gets up to phase 3 without problems. I even managed to solder the E1 cable with my shaky hands. ;-) The BS-11 is now connected to an E1 miniPCI card (with zaptel drivers) and layer 1 is up and running (using hdb3 line coding without crc4). This weekend i hope to find some time to write an input module for zaptel. I will provide some update on this next week. Mit freundlichen Gr??en -- best regards Klaus-Peter Junghanns -- Junghanns.NET Gesellschaft fuer Internet-Services & Software-Development mbH Breite Str. 13a 12167 Berlin Germany Geschaeftsfuehrer : Klaus-Peter Junghanns Eingetragen beim Amtsgericht Charlottenburg, HRB 79169 Finanzamt fuer Koerperschaften III, Steuernummer 29/409/8978 Umsatzsteuernummer : DE 217621658 WEEE-Reg.-Nr. DE 86102730 > Hello, > > > now I get this far: > > > > PHASE: 1 Warm Up Abis-link: Down > > PHASE: 1 Warm Up Abis-link: Down > > PHASE: 1 Warm Up Abis-link: Down > > PHASE: 1 Warm Up Abis-link: Down > > PHASE: 1 Warm Up Abis-link: Down > > PHASE: 1 Software required Abis-link: Down > > No valid Safety Load file "BTSBMC76.SWI" > > > > How do I get to phase 3 now? ;-) > > Mhm, we need a way to get this files out of the working BS-11 stations > (yes, i know the problem about the copyrights, I just want the files). > > Is there a chance to modify bs11_config for this purpose? > > Holger > From laforge at gnumonks.org Tue Mar 10 19:55:04 2009 From: laforge at gnumonks.org (Harald Welte) Date: Tue, 10 Mar 2009 16:55:04 -0300 Subject: BS-11, bs11_config In-Reply-To: <1236362683.13656.4.camel@linux-hx6p> References: <1236172529.21933.71.camel@hdtv.site> <20090304130600.GB33846@informatik.uni-erlangen.de> <1236175683.21933.81.camel@hdtv.site> <49AEE455.5030008@kernreaktor.org> <1236362683.13656.4.camel@linux-hx6p> Message-ID: <20090310195504.GF4036@prithivi.gnumonks.org> Hi kpj, On Fri, Mar 06, 2009 at 07:04:43PM +0100, Klaus-Peter Junghanns wrote: > my BS-11 now has a firmware and gets up to phase 3 without problems. > I even managed to solder the E1 cable with my shaky hands. ;-) > The BS-11 is now connected to an E1 miniPCI card (with zaptel drivers) > and layer 1 is up and running (using hdb3 line coding without crc4). good news. > This weekend i hope to find some time to write an input module > for zaptel. I will provide some update on this next week. cool, your work is very much appreciated. -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From kpj at junghanns.net Wed Mar 4 14:45:29 2009 From: kpj at junghanns.net (Klaus-Peter Junghanns) Date: Wed, 04 Mar 2009 15:45:29 +0100 Subject: BS-11, bs11_config In-Reply-To: <20090304130600.GB33846@informatik.uni-erlangen.de> References: <1236172529.21933.71.camel@hdtv.site> <20090304130600.GB33846@informatik.uni-erlangen.de> Message-ID: <1236177929.21933.78.camel@hdtv.site> Thanks... I just bouth a usb serial adapter from Conrad ("USB Modem Adapter", Nr. 982417) and now i can see the boot messages. I already had tried it with a second machine (Tyan mainboard) which also did not work. But now it's fine. :) Am Mittwoch, den 04.03.2009, 14:06 +0100 schrieb Michael Gernoth: > On Wed, Mar 04, 2009 at 02:15:29PM +0100, Klaus-Peter Junghanns wrote: > > I followed the steps in the wiki, e.g. run "bs11_config -p /dev/ttyS0" > > and then turn on the BS-11. The green power LED on the BS-11 is solid > > green. But i do not get any output from the bs11_config (e.g. no > > booting messages, etc). :-( > > You should start bs11_config after turning on the BS-11, as it tries to > login to the BS-11 as the first step. I usually start the BS-11, wait 2 > minutes and then start bs11_config. > > > Sometimes bs11_config segfaults when i switch on the power to the BS-11: > > Because it receives the initial spikes on the serial line as "garbage" > and tries to interpret them. Just don't do it in this order. > > > The serial cable is connected to the serial port (1 of 4) which is > > closest to the antenna connectors (like i have seen it on the photo). > > That is the right connector. > > If the communication does not work when you start bs11_config after the > BS-11, try a serial to usb adapter. I had no success with the normal > serial ports on two different machines, but a (FTDI) serial converter > worked at once. See also: > > http://bs11-abis.gnumonks.org/trac/wiki/BS11_Troubleshooting > > Regards, > Michael > From spaar at mirider.augusta.de Fri Mar 6 20:38:02 2009 From: spaar at mirider.augusta.de (Dieter Spaar) Date: Fri, 06 Mar 2009 20:38:02 Subject: Racal 6103 ? Message-ID: <49b189aa.mirider@mirider.augusta.de> Hello, does anyone has access to a Racal 6103 ? I have bought a used one and have some questions. Please drop me a note, private email is fine. Thank you very much. Best regards, Dieter -- Dieter Spaar, Germany spaar at mirider.augusta.de From robfitz at 273k.net Sun Mar 8 11:09:01 2009 From: robfitz at 273k.net (Robert Fitzsimons) Date: Sun, 8 Mar 2009 11:09:01 +0000 Subject: Racal 6103 ? In-Reply-To: <49b189aa.mirider@mirider.augusta.de> References: <49b189aa.mirider@mirider.augusta.de> Message-ID: <20090308110901.GC29277@localhost> Hi Dieter I've got one. Robert On Fri, Mar 06, 2009 at 08:38:02PM +0000, Dieter Spaar wrote: > Hello, > > does anyone has access to a Racal 6103 ? I have bought a used > one and have some questions. Please drop me a note, private > email is fine. Thank you very much. > > Best regards, > Dieter > -- > Dieter Spaar, Germany spaar at mirider.augusta.de From kpj at junghanns.net Tue Mar 10 14:24:00 2009 From: kpj at junghanns.net (Klaus-Peter Junghanns) Date: Tue, 10 Mar 2009 15:24:00 +0100 Subject: E1 interface, layer 2 Message-ID: <1236695040.30487.16.camel@hdtv.site> Hi, i am staring at the sources right now, figuring out how openbsc uses which part of misdn to send/receive frames over the e1 link. I think it's doing something like this (please correct me if i am wrong: - use timeslot 1 in hdlc mode for the signalling link - use misdns layer 2 to handle the TEI assignment, etc What i am wondering about is: - which ETSI standard describs layer 2 for GSM abis? Thanks a lot in advance for your feedback. :-) Mit freundlichen Gr??en -- best regards Klaus-Peter Junghanns -- Junghanns.NET Gesellschaft fuer Internet-Services & Software-Development mbH Breite Str. 13a 12167 Berlin Germany Geschaeftsfuehrer : Klaus-Peter Junghanns Eingetragen beim Amtsgericht Charlottenburg, HRB 79169 Finanzamt fuer Koerperschaften III, Steuernummer 29/409/8978 Umsatzsteuernummer : DE 217621658 WEEE-Reg.-Nr. DE 86102730 From spaar at mirider.augusta.de Tue Mar 10 16:02:04 2009 From: spaar at mirider.augusta.de (Dieter Spaar) Date: Tue, 10 Mar 2009 16:02:04 Subject: E1 interface, layer 2 Message-ID: <49b68efc.mirider@mirider.augusta.de> Hello, On Tue, 10 Mar 2009 15:24:00 +0100, "Klaus-Peter Junghanns" wrote: > > What i am wondering about is: > - which ETSI standard describs layer 2 for GSM abis? As far as I am aware, its LAPD as specified by ITU Q.920 and Q.921 (very similar if not equal to what is used in the "D"-channel of ISDN). Best regards, Dieter -- Dieter Spaar, Germany spaar at mirider.augusta.de From laforge at gnumonks.org Tue Mar 10 19:54:15 2009 From: laforge at gnumonks.org (Harald Welte) Date: Tue, 10 Mar 2009 16:54:15 -0300 Subject: E1 interface, layer 2 In-Reply-To: <1236695040.30487.16.camel@hdtv.site> References: <1236695040.30487.16.camel@hdtv.site> Message-ID: <20090310195415.GE4036@prithivi.gnumonks.org> On Tue, Mar 10, 2009 at 03:24:00PM +0100, Klaus-Peter Junghanns wrote: > i am staring at the sources right now, figuring out how openbsc uses > which part of misdn to send/receive frames over the e1 link. I think > it's doing something like this (please correct me if i am wrong: i hope it's not too hard to figure it out, the e1_input abstraction makes it a bit more difficult than it used to be. > - use timeslot 1 in hdlc mode for the signalling link yes. And use a number (minimum: two) DLC's with each their own pair of SAPI/TEI. > - use misdns layer 2 to handle the TEI assignment, etc yes. > What i am wondering about is: > - which ETSI standard describs layer 2 for GSM abis? it's gsm 08.56 (ETSI TS 100 595). you also might want to look at 08.51 / 08.52 and 08.54. -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From kpj at junghanns.net Wed Mar 11 12:20:37 2009 From: kpj at junghanns.net (Klaus-Peter Junghanns) Date: Wed, 11 Mar 2009 13:20:37 +0100 Subject: E1 interface, layer 2 In-Reply-To: <1236695040.30487.16.camel@hdtv.site> References: <1236695040.30487.16.camel@hdtv.site> Message-ID: <1236774037.30487.37.camel@hdtv.site> Hi, ETSI TS 140 056 is what i was looking for. Fortunately it's only 16 pages and states a few differences to ETSI EN 300 125 (ISDN layer 2, Q.921). Mit freundlichen Gr??en -- best regards Klaus-Peter Junghanns -- Junghanns.NET Gesellschaft fuer Internet-Services & Software-Development mbH Breite Str. 13a 12167 Berlin Germany Geschaeftsfuehrer : Klaus-Peter Junghanns Eingetragen beim Amtsgericht Charlottenburg, HRB 79169 Finanzamt fuer Koerperschaften III, Steuernummer 29/409/8978 Umsatzsteuernummer : DE 217621658 WEEE-Reg.-Nr. DE 86102730 From laforge at gnumonks.org Thu Mar 12 20:13:42 2009 From: laforge at gnumonks.org (Harald Welte) Date: Thu, 12 Mar 2009 17:13:42 -0300 Subject: Wanted: A-bis and/or Um protocol traces for GPRS Message-ID: <20090312201342.GE3891@prithivi.gnumonks.org> Hi! As one of our following steps in OpenBSC will be work on GPRS support, I would be interested in any GPRS related protocol traces of the A-bis interface or the Um interface. Particularly interesting obviosuly is the registration and session setup/teardown. So if anyone has such traces for GPRS, please don't hesitate to contact me. The traces will not be publicized but just used as a reference and example for the further development of OpenBSC. Thanks in advance! (yes, I'm still on holidays, but rather wrote that email immediately than to put it on a TODO list and loose time and/or forget about it) -- - 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 kernreaktor.org Wed Mar 18 15:21:18 2009 From: holger at kernreaktor.org (Holger Adams) Date: Wed, 18 Mar 2009 16:21:18 +0100 Subject: Problems with bs11_config ('BS11 DELETE OBJECT NACK') and bsc_hack Message-ID: <49C1116E.3080604@kernreaktor.org> Hello Everybody, my E-1 link now seems to work correctly. at least I can see the LAPD RR-PingPong on my analyzer. First Problem: I'm still having some problems with bs11_config, this happens with create-trx1 and delete-trx1. If I remember right, this already have been reported by somebody else. I first disconnected the BTS from the BSC with 'bs11_config disconnect'. openbsc:/svn/trunk/openbsc/src# ./bs11_config delete-trx1 bs11_config (C) 2009 by Harald Welte and Dieter Spaar This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY LMT LOGON: ACK PHASE: 2 Maintenance MBCCU0: No Load MBCCU1: Load Abis-link: Down Wed Mar 18 15:24:51 2009 <0020> abis_nm.c:689 BS11 DELETE OBJECT NACK Wed Mar 18 15:24:51 2009 <0020> abis_nm.c:689 BS11 DELETE OBJECT NACK LMT LOGOFF: ACK (same for create-trx1). ~ Second problem: openbsc:/svn/trunk/openbsc/src# ./bsc_hack -a -f 123 Allowing everyone? DB: Database initialized. DB: Database prepared. 1 device found id: 0 Dprotocols: 00000018 Bprotocols: 0000000e protocol: 4 nrbchan: 30 name: hfc-e1.1 activate bchan bootstrapping OML Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1405 Set Chan Attr (bts=0,trx=0,ts=0) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1405 Set Chan Attr (bts=0,trx=0,ts=1) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1344 CONNECT TERR TRAF Um=(bts=0,trx=0,ts=1) E1=(0,2,1) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1405 Set Chan Attr (bts=0,trx=0,ts=2) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1344 CONNECT TERR TRAF Um=(bts=0,trx=0,ts=2) E1=(0,2,2) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1405 Set Chan Attr (bts=0,trx=0,ts=3) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1344 CONNECT TERR TRAF Um=(bts=0,trx=0,ts=3) E1=(0,2,3) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1405 Set Chan Attr (bts=0,trx=0,ts=4) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1344 CONNECT TERR TRAF Um=(bts=0,trx=0,ts=4) E1=(0,3,0) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1405 Set Chan Attr (bts=0,trx=0,ts=5) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1344 CONNECT TERR TRAF Um=(bts=0,trx=0,ts=5) E1=(0,3,1) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1405 Set Chan Attr (bts=0,trx=0,ts=6) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1344 CONNECT TERR TRAF Um=(bts=0,trx=0,ts=6) E1=(0,3,2) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1405 Set Chan Attr (bts=0,trx=0,ts=7) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1344 CONNECT TERR TRAF Um=(bts=0,trx=0,ts=7) E1=(0,3,3) bootstrapping RSL MCC=1 MNC=1 bootstrapping OML Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1405 Set Chan Attr (bts=0,trx=0,ts=0) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1405 Set Chan Attr (bts=0,trx=0,ts=1) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1344 CONNECT TERR TRAF Um=(bts=0,trx=0,ts=1) E1=(0,2,1) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1405 Set Chan Attr (bts=0,trx=0,ts=2) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1344 CONNECT TERR TRAF Um=(bts=0,trx=0,ts=2) E1=(0,2,2) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1405 Set Chan Attr (bts=0,trx=0,ts=3) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1344 CONNECT TERR TRAF Um=(bts=0,trx=0,ts=3) E1=(0,2,3) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1405 Set Chan Attr (bts=0,trx=0,ts=4) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1344 CONNECT TERR TRAF Um=(bts=0,trx=0,ts=4) E1=(0,3,0) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1405 Set Chan Attr (bts=0,trx=0,ts=5) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1344 CONNECT TERR TRAF Um=(bts=0,trx=0,ts=5) E1=(0,3,1) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1405 Set Chan Attr (bts=0,trx=0,ts=6) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1344 CONNECT TERR TRAF Um=(bts=0,trx=0,ts=6) E1=(0,3,2) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1405 Set Chan Attr (bts=0,trx=0,ts=7) Wed Mar 18 15:23:37 2009 <0020> abis_nm.c:1344 CONNECT TERR TRAF Um=(bts=0,trx=0,ts=7) E1=(0,3,3) (...) 'bsc_hack' hangs here, can't get more - even with verbose settings. Sometimes I get something like a 'Failure Event' (can't remember excact message) and 'RADIO ... DISABLED'. I don't have loggings of these, Sorry. Have I missed something? Best Regards, Holger From holger at kernreaktor.org Thu Mar 19 10:02:05 2009 From: holger at kernreaktor.org (Holger Adams) Date: Thu, 19 Mar 2009 11:02:05 +0100 (CET) Subject: Problems with bs11_config ('BS11 DELETE OBJECT NACK') and bsc_hack In-Reply-To: <49C1116E.3080604@kernreaktor.org> References: <49C1116E.3080604@kernreaktor.org> Message-ID: <55834.134.108.69.210.1237456925.squirrel@mail.internet-xs.de> Am Mi, 18.03.2009, 16:21, schrieb Holger Adams: > Second problem: Ok, some more informations about this. Uutput of the 'bsc_hack' programm: http://www.kernreaktor.org/stuff/bs11_bschack.txt Sniffed Abis-Link (with K1103): http://www.kernreaktor.org/stuff/bs11-e1.txt Best Regards, Holger From Michael.Gernoth at informatik.uni-erlangen.de Thu Mar 19 10:13:35 2009 From: Michael.Gernoth at informatik.uni-erlangen.de (Michael Gernoth) Date: Thu, 19 Mar 2009 11:13:35 +0100 Subject: Problems with bs11_config ('BS11 DELETE OBJECT NACK') and bsc_hack In-Reply-To: <49C1116E.3080604@kernreaktor.org> References: <49C1116E.3080604@kernreaktor.org> Message-ID: <20090319101335.GA22763@informatik.uni-erlangen.de> Hi, On Wed, Mar 18, 2009 at 04:21:18PM +0100, Holger Adams wrote: > I'm still having some problems with bs11_config, this happens with > create-trx1 and delete-trx1. If I remember right, this already have been > reported by somebody else. I first disconnected the BTS from the BSC > with 'bs11_config disconnect'. Yes, this happens to me, too. Harald said that there is probably a bug in DELETE OBJECT. > Second problem: > 'bsc_hack' hangs here, can't get more - even with verbose settings. > Sometimes I get something like a 'Failure Event' (can't remember excact > message) and 'RADIO ... DISABLED'. I don't have loggings of these, Sorry. I had such problem when the E1 card was in a ,,modern'' PC (Core2Duo, but with a 32bit kernel). I've moved it to an old P4, and there I have traffic flowing after the initialization. Nonetheless I need to start bsc_hack twice before I can see the new network. Try adding --debug=DRLL:DCC:DMM:DRR:DRSL:DNM:DMI:DMUX:DPAG:DRLL:DSMS to bsc_hack and you should see frames being constantly sent from the BS-11 after the initialization. If you need it, I will log the output of two startups from bsc_hack. But I think I will only find the time to do that tomorrow or next week... Regards, Michael -- Michael Gernoth Department of Computer Science IV Martensstrasse 1 D-91058 Erlangen Germany University of Erlangen-Nuremberg http://www4.informatik.uni-erlangen.de/~gernoth/ From laforge at gnumonks.org Mon Mar 23 18:05:09 2009 From: laforge at gnumonks.org (Harald Welte) Date: Mon, 23 Mar 2009 15:05:09 -0300 Subject: Problems with bs11_config ('BS11 DELETE OBJECT NACK') and bsc_hack In-Reply-To: <20090319101335.GA22763@informatik.uni-erlangen.de> References: <49C1116E.3080604@kernreaktor.org> <20090319101335.GA22763@informatik.uni-erlangen.de> Message-ID: <20090323180509.GD3906@prithivi.gnumonks.org> On Thu, Mar 19, 2009 at 11:13:35AM +0100, Michael Gernoth wrote: > Hi, > > On Wed, Mar 18, 2009 at 04:21:18PM +0100, Holger Adams wrote: > > I'm still having some problems with bs11_config, this happens with > > create-trx1 and delete-trx1. If I remember right, this already have been > > reported by somebody else. I first disconnected the BTS from the BSC > > with 'bs11_config disconnect'. > > Yes, this happens to me, too. Harald said that there is probably a bug in > DELETE OBJECT. yes, DELETE OBJECT is currently not working in bs11_config. I or somebody else with LMT (Dieter?) need to look at a LMT when deleting an object and compare the binary data with what bs11_config generates in order to check for differences and fix them. Sorry, still on holidays, thousands of kilometers away from my BS-11's -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From spaar at mirider.augusta.de Thu Mar 19 12:03:41 2009 From: spaar at mirider.augusta.de (Dieter Spaar) Date: Thu, 19 Mar 2009 12:03:41 Subject: Problems with bs11_config ('BS11 DELETE OBJECT NACK') and bsc_hack Message-ID: <49c2349d.mirider@mirider.augusta.de> Hello Holger, On Thu, 19 Mar 2009 11:02:05 +0100 (CET), "Holger Adams" wrote: > > Sniffed Abis-Link (with K1103): > http://www.kernreaktor.org/stuff/bs11-e1.txt I am not familiar with the K1103. But if I don't misunderstand the traces, everything should be fine. After the database has been sent to the BS-11, you won't see any additional traffic on the E1 interface as long as there is no phone registering to the BS-11 or you advice OpenBSC to send something to the BS-11. You should now be able to see the network with a phone. If you want to generate some E1 traffic without a phone, you can press (or release) the instrusion switch, this should result in a report sent from the BS-11. However I don't know how long the delay is between actually changing the switch state and the resulting report. Best regards, Dieter -- Dieter Spaar, Germany spaar at mirider.augusta.de From holger at kernreaktor.org Thu Mar 19 13:32:48 2009 From: holger at kernreaktor.org (Holger Adams) Date: Thu, 19 Mar 2009 14:32:48 +0100 (CET) Subject: Problems with bs11_config ('BS11 DELETE OBJECT NACK') and bsc_hack In-Reply-To: <49c2349d.mirider@mirider.augusta.de> References: <49c2349d.mirider@mirider.augusta.de> Message-ID: <60809.134.108.69.210.1237469568.squirrel@mail.internet-xs.de> Hi Dieter, Am Do, 19.03.2009, 13:03, schrieb Dieter Spaar: > Hello Holger, > > On Thu, 19 Mar 2009 11:02:05 +0100 (CET), "Holger Adams" > wrote: >> >> Sniffed Abis-Link (with K1103): >> http://www.kernreaktor.org/stuff/bs11-e1.txt > > I am not familiar with the K1103. But if I don't misunderstand the traces, > everything should be fine. After the database has been sent to the BS-11, > you won't see any additional traffic on the E1 interface as long as there > is no phone registering to the BS-11 or you advice OpenBSC to send > something > to the BS-11. You should now be able to see the network with a phone. > > If you want to generate some E1 traffic without a phone, you can > press (or release) the instrusion switch, this should result in a report > sent from the BS-11. However I don't know how long the delay is between > actually changing the switch state and the resulting report. Hm, I pressed the intrusion switch but 'openbsc' didn't report it. Here's the logfile with all debug options enabled: http://www.kernreaktor.org/stuff/bs11_bschack_debug.txt The programm stucks at 'TX TEI(1): 10 1a 1e 06 0b 00 0b 06 1e 00 01 00 f1 10 00 01 28 ff' but continues playing LAPD-RR-Pingpong. Should I try to reflash the firmware? I also tried restarting 'openbsc' a few times. Best Regards, Holger From spaar at mirider.augusta.de Thu Mar 19 16:36:27 2009 From: spaar at mirider.augusta.de (Dieter Spaar) Date: Thu, 19 Mar 2009 16:36:27 Subject: Problems with bs11_config ('BS11 DELETE OBJECT NACK') and bsc_hack Message-ID: <49c2748b.mirider@mirider.augusta.de> Hello Holger, On Thu, 19 Mar 2009 14:32:48 +0100 (CET), "Holger Adams" wrote: > > The programm stucks at 'TX TEI(1): 10 1a 1e 06 0b 00 0b 06 1e 00 01 00 f1 > 10 00 01 28 ff' but continues playing LAPD-RR-Pingpong. Should I try to > reflash the firmware? I also tried restarting 'openbsc' a few times. > Does bs11_config show that both TRX are loaded and that the BS-11 is in Phase 3 ? Best regards, Dieter -- Dieter Spaar, Germany spaar at mirider.augusta.de From holger at kernreaktor.org Thu Mar 19 16:25:15 2009 From: holger at kernreaktor.org (Holger Adams) Date: Thu, 19 Mar 2009 17:25:15 +0100 Subject: Problems with bs11_config ('BS11 DELETE OBJECT NACK') and bsc_hack In-Reply-To: <49c2748b.mirider@mirider.augusta.de> References: <49c2748b.mirider@mirider.augusta.de> Message-ID: <49C271EB.9070104@kernreaktor.org> Hi Dieter, Dieter Spaar wrote: > On Thu, 19 Mar 2009 14:32:48 +0100 (CET), "Holger Adams" wrote: >> The programm stucks at 'TX TEI(1): 10 1a 1e 06 0b 00 0b 06 1e 00 01 00 f1 >> 10 00 01 28 ff' but continues playing LAPD-RR-Pingpong. Should I try to >> reflash the firmware? I also tried restarting 'openbsc' a few times. >> > > Does bs11_config show that both TRX are loaded and that the BS-11 is in > Phase 3 ? I remember that one TRX wasn't ('No Load') loaded. Phase 3 was reached. Best Regards, Holger From spaar at mirider.augusta.de Thu Mar 19 17:40:30 2009 From: spaar at mirider.augusta.de (Dieter Spaar) Date: Thu, 19 Mar 2009 17:40:30 Subject: Problems with bs11_config ('BS11 DELETE OBJECT NACK') and bsc_hack Message-ID: <49c2838f.mirider@mirider.augusta.de> Hello Holger, On Thu, 19 Mar 2009 17:25:15 +0100, "Holger Adams" wrote: > > I remember that one TRX wasn't ('No Load') loaded. Phase 3 was reached. If this is the first one, it won't work because this is the one OpenBSC uses in the moment. If it is not loaded you should switch off and on the BS-11 and check if it works afterwards. On my BS-11 there seems to be a temperature related problem which sometimes requires quite a few restarts to get the first TRX loaded. Additionally it could be that an attached RS232 cable disturbs the startup process. All of the above is not 100% sure because its difficult to reproduce, but maybe it helps to load the first TRX (if the second TRX is not loaded this should be no problem to get OpenBSC running). Best regards, Dieter -- Dieter Spaar, Germany spaar at mirider.augusta.de From holger at kernreaktor.org Mon Mar 23 08:13:00 2009 From: holger at kernreaktor.org (Holger Adams) Date: Mon, 23 Mar 2009 09:13:00 +0100 (CET) Subject: Problems with bs11_config ('BS11 DELETE OBJECT NACK') and bsc_hack In-Reply-To: <49c2838f.mirider@mirider.augusta.de> References: <49c2838f.mirider@mirider.augusta.de> Message-ID: <55809.134.108.69.210.1237795980.squirrel@mail.internet-xs.de> Hi Dieter, Am Do, 19.03.2009, 18:40, schrieb Dieter Spaar: > On Thu, 19 Mar 2009 17:25:15 +0100, "Holger Adams" > wrote: >> >> I remember that one TRX wasn't ('No Load') loaded. Phase 3 was reached. > > If this is the first one, it won't work because this is the one OpenBSC > uses in the moment. If it is not loaded you should switch off and on > the BS-11 and check if it works afterwards. On my BS-11 there seems > to be a temperature related problem which sometimes requires quite a > few restarts to get the first TRX loaded. Additionally it could be > that an attached RS232 cable disturbs the startup process. I switched to my second BS-11, there TRX1 seems to get loaded. There are still some problems of getting the TRX started (sorry for keep bugging, but it doesn't make real fun to start developing without a working fundament). Output of 'bsc_hack' <1000> input/misdn.c:123 alen =6, dev(0) channel(3) sapi(0) tei(1) <1000> input/misdn.c:126 <= len = 15, prim(0x3008) id(0x30100): DL_DATA_IND <1000> input/misdn.c:151 RX: 0c 12 01 90 0f 00 3c <1000> input/misdn.c:123 alen =6, dev(0) channel(3) sapi(0) tei(1) <1000> input/misdn.c:126 <= len = 20, prim(0x3008) id(0x30100): DL_DATA_IND <1000> input/misdn.c:151 RX: 0c 12 01 88 12 06 00 fa 00 00 00 00 <1000> input/misdn.c:123 alen =6, dev(0) channel(3) sapi(0) tei(1) <1000> input/misdn.c:126 <= len = 15, prim(0x3008) id(0x30100): DL_DATA_IND <1000> input/misdn.c:151 RX: 0c 12 01 90 0f 00 3c (...) Full Log: http://www.kernreaktor.org/stuff/bs11_bschack_with_trx1.txt E1-Trace: 08:53:15"2 1Tx> LAPD 0 1 0 20 0 0 INFO 0 CCCH(P+AG) RSL CHNIN 08:53:15"2 1Rx< LAPD 0 1 0 0 21 RR 08:53:15"2 1Tx> LAPD 0 1 0 21 0 0 INFO 0 CCCH(RACH) RSL CHNIN 08:53:15"2 1Rx< LAPD 0 1 0 0 22 RR 08:53:17"8 1Tx> LAPD 0 1 0 22 0 0 INFO 0 CCCH(P+AG) RSL CHNIN 08:53:17"8 1Rx< LAPD 0 1 0 0 23 RR (...) Full Log: http://www.kernreaktor.org/stuff/bs11_e1_with_trx1.txt I except of beeing 'DoSed' by various mobilephones lying around here, but nothing happens. I also can't see the 'OpenBSC-Test' provider on my mobilephones (manual network select). Question to Michael Gernoth: Is this the situation you had with your "new" PC? Best Regards, Holger From Michael.Gernoth at informatik.uni-erlangen.de Mon Mar 23 12:38:02 2009 From: Michael.Gernoth at informatik.uni-erlangen.de (Michael Gernoth) Date: Mon, 23 Mar 2009 13:38:02 +0100 Subject: Problems with bs11_config ('BS11 DELETE OBJECT NACK') and bsc_hack In-Reply-To: <55809.134.108.69.210.1237795980.squirrel@mail.internet-xs.de> References: <49c2838f.mirider@mirider.augusta.de> <55809.134.108.69.210.1237795980.squirrel@mail.internet-xs.de> Message-ID: <20090323123802.GA37356@informatik.uni-erlangen.de> Hi Holger, On Mon, Mar 23, 2009 at 09:13:00AM +0100, Holger Adams wrote: > Output of 'bsc_hack' > <1000> input/misdn.c:123 alen =6, dev(0) channel(3) sapi(0) tei(1) > <1000> input/misdn.c:126 <= len = 15, prim(0x3008) id(0x30100): DL_DATA_IND > <1000> input/misdn.c:151 RX: 0c 12 01 90 0f 00 3c > <1000> input/misdn.c:123 alen =6, dev(0) channel(3) sapi(0) tei(1) > <1000> input/misdn.c:126 <= len = 20, prim(0x3008) id(0x30100): DL_DATA_IND > <1000> input/misdn.c:151 RX: 0c 12 01 88 12 06 00 fa 00 00 00 00 > <1000> input/misdn.c:123 alen =6, dev(0) channel(3) sapi(0) tei(1) > <1000> input/misdn.c:126 <= len = 15, prim(0x3008) id(0x30100): DL_DATA_IND > <1000> input/misdn.c:151 RX: 0c 12 01 90 0f 00 3c > (...) > > Question to Michael Gernoth: > Is this the situation you had with your "new" PC? Yes, this is the ouput I'm getting on the working PC. Can you see the network when you let bsc_hack run for two minutes and then restart it? That's how it is working for me. Do you also get scary mISDN-errors in the dmesg output? Regards, Michael -- Michael Gernoth Department of Computer Science IV Martensstrasse 1 D-91058 Erlangen Germany University of Erlangen-Nuremberg http://www4.informatik.uni-erlangen.de/~gernoth/ From holger at kernreaktor.org Mon Mar 23 15:53:04 2009 From: holger at kernreaktor.org (Holger Adams) Date: Mon, 23 Mar 2009 16:53:04 +0100 (CET) Subject: Problems with bs11_config ('BS11 DELETE OBJECT NACK') and bsc_hack In-Reply-To: <20090323123802.GA37356@informatik.uni-erlangen.de> References: <49c2838f.mirider@mirider.augusta.de> <55809.134.108.69.210.1237795980.squirrel@mail.internet-xs.de> <20090323123802.GA37356@informatik.uni-erlangen.de> Message-ID: <34427.134.108.69.210.1237823584.squirrel@mail.internet-xs.de> Hi Michael, Am Mo, 23.03.2009, 13:38, schrieb Michael Gernoth: > On Mon, Mar 23, 2009 at 09:13:00AM +0100, Holger Adams wrote: >> Output of 'bsc_hack' >> <1000> input/misdn.c:123 alen =6, dev(0) channel(3) sapi(0) tei(1) >> <1000> input/misdn.c:126 <= len = 15, prim(0x3008) id(0x30100): >> DL_DATA_IND >> <1000> input/misdn.c:151 RX: 0c 12 01 90 0f 00 3c >> <1000> input/misdn.c:123 alen =6, dev(0) channel(3) sapi(0) tei(1) >> <1000> input/misdn.c:126 <= len = 20, prim(0x3008) id(0x30100): >> DL_DATA_IND >> <1000> input/misdn.c:151 RX: 0c 12 01 88 12 06 00 fa 00 00 00 00 >> <1000> input/misdn.c:123 alen =6, dev(0) channel(3) sapi(0) tei(1) >> <1000> input/misdn.c:126 <= len = 15, prim(0x3008) id(0x30100): >> DL_DATA_IND >> <1000> input/misdn.c:151 RX: 0c 12 01 90 0f 00 3c >> (...) >> >> Question to Michael Gernoth: >> Is this the situation you had with your "new" PC? > > Yes, this is the ouput I'm getting on the working PC. Can you see the > network when you let bsc_hack run for two minutes and then restart it? > That's how it is working for me. Yes, I can see the network now (as you said, I had to wait a few minutes) > Do you also get scary mISDN-errors in the dmesg output? Nope, no mISDN errors in my dmesg (but a lot of "ph_data_indication"-messages). Best Regards, Holger From spaar at mirider.augusta.de Mon Mar 23 10:41:13 2009 From: spaar at mirider.augusta.de (Dieter Spaar) Date: Mon, 23 Mar 2009 10:41:13 Subject: Problems with bs11_config ('BS11 DELETE OBJECT NACK') and bsc_hack Message-ID: <49c7674a.mirider@mirider.augusta.de> Hello Holger, On Mon, 23 Mar 2009 09:13:00 +0100 (CET), "Holger Adams" wrote: > > There are still some problems of getting the TRX started (sorry for keep > bugging, but it doesn't make real fun to start developing without a > working fundament). I don't see a problem with the traces, what you receive is the "Channel Load" Indication from the BS-11, OpenBSC advices the BS-11 to send this report. > I except of beeing 'DoSed' by various mobilephones lying around here, but > nothing happens. I also can't see the 'OpenBSC-Test' provider on my > mobilephones (manual network select). A phone normally won't register to the test network as long as it reaches the network stored on the SIM. You should see the network "001-01" if you manually search for a network (it could also be "Test01" or similar), but not the name 'OpenBSC-Test'. Best regards, Dieter -- Dieter Spaar, Germany spaar at mirider.augusta.de From spaar at mirider.augusta.de Tue Mar 24 11:43:59 2009 From: spaar at mirider.augusta.de (Dieter Spaar) Date: Tue, 24 Mar 2009 11:43:59 Subject: Problems with bs11_config ('BS11 DELETE OBJECT NACK') and bsc_hack Message-ID: <49c8c77f.mirider@mirider.augusta.de> Hello Harald, On Mon, 23 Mar 2009 15:05:09 -0300, "Harald Welte" wrote: > > yes, DELETE OBJECT is currently not working in bs11_config. I or somebody else > with LMT (Dieter?) need to look at a LMT when deleting an object and compare > the binary data with what bs11_config generates in order to check for differences > and fix them. I think the DELETE OBJECT message is fine, the problem is that an object has to be locked before it can be deleted. This is how locking/unlocking looks in LMT (its basically the CHG_ADM_STATE message): ; Lock BBSIG 1 Tx 69A50200010401 Rx 61A5020001040124010701071C0100 Rx 6AA50200010401 ; Lock PA 1 Tx 69A50900010401 Rx 61A5090001040124010701071C0100 Rx 6AA50900010401 ; Unlock PA 1 Tx 69A50900010402 Rx 61A5090001040224010701071C0100 Rx 6AA50900010402 ; Unlock BBSIG 1 Tx 69A50200010402 Rx 61A5020001040224010701071C0100 Rx 6AA50200010402 After the object is locked, it can be deleted: ; Delete BBSIG 1 Tx ACA5020001 Rx ADA5020001 Please note that locking for deleting is enough, unlocking the deleted object is of course not needed. Best regards, Dieter -- Dieter Spaar, Germany spaar at mirider.augusta.de From laforge at gnumonks.org Wed Mar 25 13:37:29 2009 From: laforge at gnumonks.org (Harald Welte) Date: Wed, 25 Mar 2009 14:37:29 +0100 Subject: Problems with bs11_config ('BS11 DELETE OBJECT NACK') and bsc_hack In-Reply-To: <49c8c77f.mirider@mirider.augusta.de> References: <49c8c77f.mirider@mirider.augusta.de> Message-ID: <20090325133729.GB3804@prithivi.gnumonks.org> Hi Dieter, On Tue, Mar 24, 2009 at 11:43:59AM +0000, Dieter Spaar wrote: > On Mon, 23 Mar 2009 15:05:09 -0300, "Harald Welte" wrote: > > > > yes, DELETE OBJECT is currently not working in bs11_config. I or somebody else > > with LMT (Dieter?) need to look at a LMT when deleting an object and compare > > the binary data with what bs11_config generates in order to check for > > differences and fix them. > > I think the DELETE OBJECT message is fine, the problem is that an object > has to be locked before it can be deleted. ah, ok, makes a lot of sense. I've cooked up a patch (see attachment) and I'll test it once I'm back in my lab in Germany. -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) -------------- next part -------------- A non-text attachment was scrubbed... Name: bs11_config-delete.patch Type: text/x-diff Size: 756 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From laforge at gnumonks.org Sat Mar 28 17:04:43 2009 From: laforge at gnumonks.org (Harald Welte) Date: Sat, 28 Mar 2009 18:04:43 +0100 Subject: Solved: Problems with bs11_config ('BS11 DELETE OBJECT NACK') In-Reply-To: <49C1116E.3080604@kernreaktor.org> References: <49C1116E.3080604@kernreaktor.org> Message-ID: <20090328170443.GH15306@prithivi.gnumonks.org> Hi! > I'm still having some problems with bs11_config, this happens with > create-trx1 and delete-trx1. If I remember right, this already have been > reported by somebody else. I first disconnected the BTS from the BSC > with 'bs11_config disconnect'. I have just committed Rev. 433 that fixes this issue. At least on my BS-11 I can now reliably delete and create TRX1 objects after a 'disconnect' Regards! -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From e.cathelinaud at googlemail.com Fri Mar 20 20:18:34 2009 From: e.cathelinaud at googlemail.com (Eric Cathelinaud) Date: Fri, 20 Mar 2009 21:18:34 +0100 Subject: BTS connections Message-ID: <383f8f9a0903201318x1399c3datb406d6aacb454af7@mail.gmail.com> Hello everybody, I would like to know whether it would be possible to obtain some information about the cable connection. It is written on the website that the Y03 and Y04 PCM are left open, but I can see on the photo http://bs11-abis.gnumonks.org/trac/attachment/wiki/BS11_Configuration/bs11_connections.jpg that there is a twinax cable between them. Am I wrong? If not, I would like to know what's the use of this connection. Thanks a lot Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: From laforge at gnumonks.org Mon Mar 23 18:02:28 2009 From: laforge at gnumonks.org (Harald Welte) Date: Mon, 23 Mar 2009 15:02:28 -0300 Subject: BTS connections In-Reply-To: <383f8f9a0903201318x1399c3datb406d6aacb454af7@mail.gmail.com> References: <383f8f9a0903201318x1399c3datb406d6aacb454af7@mail.gmail.com> Message-ID: <20090323180228.GC3906@prithivi.gnumonks.org> On Fri, Mar 20, 2009 at 09:18:34PM +0100, Eric Cathelinaud wrote: > Hello everybody, > > I would like to know whether it would be possible to obtain some information > about the cable connection. It is written on the website that the Y03 and > Y04 PCM are left open, but I can see on the photo > http://bs11-abis.gnumonks.org/trac/attachment/wiki/BS11_Configuration/bs11_connections.jpg > that there is a twinax cable between them. > Am I wrong? If not, I would like to know what's the use of this connection. > you don't need that cable between Y03 and Y04. you probably need it in a different configuration (loop/multidrop/...) of the E1 interface. but the config that bs11_config and OpenBSC currently use don't need it. > Thanks a lot > > Eric -- - 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 Tue Mar 31 02:30:09 2009 From: laforge at gnumonks.org (Harald Welte) Date: Tue, 31 Mar 2009 04:30:09 +0200 Subject: SMS are now stored in SQL table Message-ID: <20090331023009.GF6990@prithivi.gnumonks.org> Hi all! Today I've just committed some code that stores incoming SMS in the SQL table as soon as they are received. There is also more error handling right now, i.e. if the SMS is sent to an unknown extension, it is rejected right away. What's still missing is the code to actually deliver the SMS from the SQL table to the destination phone. For this, we need to * decouple paging from voice calls * correctly construct TPDU and RP/CP header from actual SMS payload * trigger SMS delivery of pending messages at LOCATION UPDATING / IMSI ATT * trigger SMS delivery once the MS tells us it has memory (SMMA) * regularly iterate over undelivered SMS and try to send them * decide how to handle SMS while a voice call is ongoing If anyone has a good idea what to do about UCS2 encoded messages, I'm more than happy to hear about it. My plan so far is to translate it to UTF-8 and store it as UTF-8 in the SQL database. This way we have something that most linux systems (and other tools) can deal with. Disadvantage is that we'd end up translating a message back and forth... Also, if somebody is more familiar with the 'regular' SMSC architecture in real GSM networks, it would probably be good to think of a way how we can integrate external SMS delivery both incoming and outgoing. SMS is much easier since it is basically data/signalling only and there's no need to actually route unstructured voice data like it is the case for regular phone calls. -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From zecke at selfish.org Tue Mar 31 02:43:08 2009 From: zecke at selfish.org (Holger Freyther) Date: Tue, 31 Mar 2009 04:43:08 +0200 Subject: SMS are now stored in SQL table In-Reply-To: <20090331023009.GF6990@prithivi.gnumonks.org> References: <20090331023009.GF6990@prithivi.gnumonks.org> Message-ID: <200903310443.09507.zecke@selfish.org> On Tuesday 31 March 2009 04:30:09 Harald Welte wrote: > > What's still missing is the code to actually deliver the SMS from the SQL > table to the destination phone. For this, we need to > * decouple paging from voice calls yeah! I'm still trapped here and some how MIA. What do you think about this kind of interface? I think the idea is originating from you to put the requests into the gsm_subscriber struct? From 5ad8f58c50c5002aac3321dad0c1f47ddfde65df Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Tue, 31 Mar 2009 04:35:19 +0200 Subject: [PATCH] Proposal for a "channel request" interface... Reuqests for a subscriber a stored within the gsm_subscriber datastructure and it will keep track how many channels are allocated for this user and of which type to decide on policy... e.g. attempt to submit SMS during a phone call and not doing paging but a simple (immediate) assignment of the channel... --- include/openbsc/gsm_subscriber.h | 6 ++++++ src/gsm_04_08.c | 3 +-- src/gsm_subscriber.c | 10 ++++++++++ tests/db/Makefile.am | 4 ++-- tests/db/db_test.c | 4 ++++ 5 files changed, 23 insertions(+), 4 deletions(-) diff --git a/include/openbsc/gsm_subscriber.h b/include/openbsc/gsm_subscriber.h index e0c621b..6940fa7 100644 --- a/include/openbsc/gsm_subscriber.h +++ b/include/openbsc/gsm_subscriber.h @@ -23,6 +23,10 @@ struct gsm_subscriber { /* for internal management */ int use_count; struct llist_head entry; + + /* pending requests */ + struct gsm_bts *current_bts; + struct llist_head requests; }; enum gsm_subscriber_field { @@ -37,6 +41,8 @@ struct gsm_subscriber *subscr_get_by_tmsi(const char *tmsi); struct gsm_subscriber *subscr_get_by_imsi(const char *imsi); struct gsm_subscriber *subscr_get_by_extension(const char *ext); int subscr_update(struct gsm_subscriber *s, struct gsm_bts *bts); +void subscr_get_channel(struct gsm_subscriber *subscr, int type, + gsm_cbfn *cbfn, void *data); /* internal */ struct gsm_subscriber *subscr_alloc(void); diff --git a/src/gsm_04_08.c b/src/gsm_04_08.c index deafe7b..e075391 100644 --- a/src/gsm_04_08.c +++ b/src/gsm_04_08.c @@ -40,7 +40,6 @@ #include #include #include -#include #include #include @@ -1096,7 +1095,7 @@ static int gsm48_cc_rx_setup(struct msgb *msg) call->called_subscr = called_subscr; /* start paging of the receiving end of the call */ - paging_request(msg->trx->bts, called_subscr, RSL_CHANNEED_TCH_F, + subscr_get_channel(called_subscr, RSL_CHANNEED_TCH_F, setup_trig_pag_evt, call); /* send a CALL PROCEEDING message to the MO */ diff --git a/src/gsm_subscriber.c b/src/gsm_subscriber.c index d4dfea4..8f75414 100644 --- a/src/gsm_subscriber.c +++ b/src/gsm_subscriber.c @@ -44,6 +44,8 @@ struct gsm_subscriber *subscr_alloc(void) llist_add_tail(&s->entry, &active_subscribers); s->use_count = 1; + INIT_LLIST_HEAD(&s->requests); + return s; } @@ -92,6 +94,8 @@ struct gsm_subscriber *subscr_get_by_extension(const char *ext) int subscr_update(struct gsm_subscriber *s, struct gsm_bts *bts) { + /* FIXME: Migrate pending requests from one BSC to another */ + s->current_bts = bts; return db_sync_subscriber(s); } @@ -107,3 +111,9 @@ struct gsm_subscriber *subscr_put(struct gsm_subscriber *subscr) subscr_free(subscr); return NULL; } + +void subscr_get_channel(struct gsm_subscriber *subscr, int type, + gsm_cbfn *cbfn, void *data) +{ + paging_request(subscr->current_bts, subscr, type, cbfn, data); +} diff --git a/tests/db/Makefile.am b/tests/db/Makefile.am index 5c9c784..3d9722c 100644 --- a/tests/db/Makefile.am +++ b/tests/db/Makefile.am @@ -3,6 +3,6 @@ AM_CFLAGS=-Wall -ggdb3 noinst_PROGRAMS = db_test -db_test_SOURCES = db_test.c $(top_srcdir)/src/db.c $(top_srcdir)/src/gsm_subscriber.c -db_test_LDADD = -ldl -ldbi +db_test_SOURCES = db_test.c +db_test_LDADD = $(top_builddir)/src/libbsc.a -ldl -ldbi diff --git a/tests/db/db_test.c b/tests/db/db_test.c index a6632b7..2ccf243 100644 --- a/tests/db/db_test.c +++ b/tests/db/db_test.c @@ -100,3 +100,7 @@ int main() { return 0; } + +/* stubs */ +void input_event(void) {} +void nm_state_event(void) {} -- 1.6.0.4 From zecke at selfish.org Tue Mar 31 02:51:38 2009 From: zecke at selfish.org (Holger Freyther) Date: Tue, 31 Mar 2009 04:51:38 +0200 Subject: RequestForHelp on mISDNUser Message-ID: <200903310451.39144.zecke@selfish.org> Hey guys, some month ago I added basic support to dump the LAPD frame we send and receive. This code was disabled in Haralds restructuring of this layer in order to add support for the IP Access nanoBTS. The question is now should we repair or nuke this feature. Shortly after having finished my implementation prom pointed me to the mISDNuser tool[1]. It looks like this can write pcap files as well and that wireshark should be able to handle them. I would be happy if someone could try this tool and see what files are produced and if we should continue this way or restore the "-p file" functionality. thanks z. PS: Maybe we just need to move the pcap Linux-LAPD header over to this tool... [1] http://git.misdn.org/?p=mISDNuser.git;a=blob;f=debugtool/mISDNdebugtool.c;h=fa80000429719236271b26077ff741b1ed418c72;hb=54928dec57bc846f2c2186f3640e69a053cd3641