Hi,
I am trying to modify osmocomBB to work without the phone as layer 1. My goal is that application will using socket to communicate with BTS (modified BTS which can send and receive message throught sockets).
I analyzed the osmocomBB code and I found that I'll have to modify osmocon.c (host/osmocon/osmocon.c) file. This file is interface between serial communication and layer2. If I am right, I have to do this changes:
1. Delete functions handle the serial interface 2. Add new tool server to dnload structure 3. Creating new tool server for L1 interface (UNIX socket or IP socket with GSMTAP) 4. Add callback function for reading from layer2 socket and forward this messages to L1 socket interface.
Simplified I have to listen and forward packets from BTS to layer2 socket and from L2 to L1.
Do I think in right direction or I am wrong and it will need more modifications?
Best regards, Miroslav Babjak
Hi,
Do I think in right direction or I am wrong and it will need more modifications?
You should just implement a virtual layer 1 that uses the same interface as osmocon and present it to the 'mobile' application. No need to modify anything.
osmocon is full of stuff you won't need, it's much easier to start from scratch and implement something new that implements the L1CTL protocol that goes over serial.
Cheers,
Sylvain
Hi,
thanks for quick answer and advice.
I looked for l1ctl in sources files and I found it in src/host/layer23/src/common. I quickly looked at the main.c file in this directory and it looks quite simple if I use the l1l2_interface and l1ctl. We'll see how it goes.
The L1 interface is only one part from what I want to do.
The second part will be harder. I want to implement a GPRS stack to the 'mobile' application. I know that osmocomBB hasn't GPRS support and I have to build it from scratch. I found some topics about it in mailing list. It says that i can use the GPRS parts from another projects. SNDCP from OsmoSGSN and RLC/MAC message encoding and parsing from osmo-pcu. Is that true? Can you give me some hints to start?
Best regards, Miroslav Babják
Dne 23.10.2013 22:44, Sylvain Munaut napsal(a):
Hi,
Do I think in right direction or I am wrong and it will need more modifications?
You should just implement a virtual layer 1 that uses the same interface as osmocon and present it to the 'mobile' application. No need to modify anything.
osmocon is full of stuff you won't need, it's much easier to start from scratch and implement something new that implements the L1CTL protocol that goes over serial.
Cheers,
Sylvain