Thanks Harald,
I spent some more time on this today, it looks like you can initiate the
connection from the BSC to the CBC or the other way around,
I worked out a basic config on OsmoCBC and OsmoBSC (going for BSC
initiating the connection to CBC):
OsmoCBC Config:
cbc
unknown-peers accept
And the config on OsmoBSC:
cbc
remote-ip 10.0.1.252
remote-port 48049
no listen-port
Unfortunately when the BSC connects to the CBC (abridged):
<0000> cbsp_server.c:140 r=10.0.1.201:36667<->l=10.0.1.252:48049: Accepting
unknown CBSP peer 10.0.1.201:36667
<0000> cbsp_server.c:153 r=10.0.1.201:36667<->l=10.0.1.252:48049: New CBSP
client connection
<0000> cbsp_server.c:154 CBSP-SERVER[0x55e569d983c0]{INIT}: Received Event
RESET.cmd
<0000> cbsp_server_fsm.c:203 CBSP-SERVER[0x55e569d983c0]{RESET_PENDING}:
Event Rx Restart not permitted
<0000> cbsp_server_fsm.c:206 r=10.0.1.201:36667<->l=10.0.1.252:48049:
unknown/unhandled RESET COMPLETE
Segmentation fault (core dumped)
After that the connection is dropped and the CBC halts,
So I tried it in reverse, on the CBC I set it up to connect to a remote BSC
and plugged in the details of the BSC, and on the BSC I setup a CBC
listener IP/port, but wasn't seeing any traffic originating from the CBC;
I'm not sure if the CBC needs a REST request before it'll establish the
connection, I got some way towards working out what the JSON encoding
should be from the source code but I'm no good with C.
Any pointers would be greatly appreciated,
Cheers,
Nick
On Fri, Jun 26, 2020 at 2:32 AM Harald Welte <laforge(a)osmocom.org> wrote:
Dear Nick,
On Mon, Jun 22, 2020 at 05:45:00PM +1000, Nick Jones wrote:
Hi all,
Just wondering what the status of OsmoCBC is?
I guess nobody has played with it except myself (the main developer)
I started compiling from source, but I
couldn't find any docs on
interfacing with it other than that it's via a HTTP REST API,
If there aren't any docs are there packet captures or examples I can work
from that'd be quicker than trying to reverse it from the source code,
Happy to contribute some docs once I work it out,
I am currently buried alive in work and to be honest I don't recall the
details.
I remember the BSC + BTS side of Cell Broadcast was fully implemented and
working,
and that the CBC was somewhat early stage. I will try to review the code
and
get back as soon as I can. If you don't get a response in 7 days, please
ping me again.
--
- Harald Welte <laforge(a)osmocom.org>
http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch.
A6)