Hi everyone,
I am facing a new problem. When i am trying to load layer1 on to mobile phone, getting the following error:
saxena@cosec-ug-vm1-04:/opt/osmocom-bb/src/host/osmocon$ sudo -E ./osmocon -p /dev/ttyUSB0 -m c123xor ../..target/firmware/board/compal_e88/layer1.compalram.bin
got 1 bytes from modem, data looks like: 2e .
got 1 bytes from modem, data looks like: c8 .
got 1 bytes from modem, data looks like: 1b .
got 4 bytes from modem, data looks like: f6 02 00 41 ...A
got 1 bytes from modem, data looks like: 01 .
got 1 bytes from modem, data looks like: 40 @
Received PROMPT1 from phone, responding with CMD
opening file: No such file or directory
Next time when I am trying, it does not show anything and just hang like as:
saxena@cosec-ug-vm1-04:/opt/osmocom-bb/src/host/osmocon$ sudo -E ./osmocon -p /dev/ttyUSB0 -m c123xor ../..target/firmware/board/compal_e88/layer1.compalram.bin
(no display)
Now, the phone is not able to switch on. I pressed red button many times but it doesn't work.
can anyone tell me what is wrong in it?
With regards
Neetesh Saxena...
Get your own FREE website, FREE domain & FREE mobile app with Company email. Know More >
neetesh saxena wrote:
> MS '1' is down, radio is not started
hi neetesh,
did you start your phone? what does "osmocon" (debugging ouput) show?
does it load the layer1 binary when pressing the red button?
best regards,
andreas
Hi,
I am a new user to osmocom. I am getting the following error:
OsmocomBB# show ms 1
MS '1' is down, radio is not started
IMEI: 000000000000000
IMEISV: 0000000000000000
IMEI generation: fixed
automatic network selection state: A0 null
cell selection state: C0 null
radio ressource layer state: idle
mobility management layer state: MM idle, PLMN search
OsmocomBB# show subscriber 1
Mobile Subscriber of MS '1':
IMSI:
Status: U2_NOT_UPDATED IMSI detached LAI: invalid
Access barred cells: no
Access classes:
can anyone tell me the solution what is the exact problem.
I have also tried this one:
"enable" -> "conf t" -> "ms 1" -> "no shutdown"
and make "write" the config.
Please help me. I am also using C118 phone in Germany.
regards,
Neetesh
Get your own FREE website, FREE domain & FREE mobile app with Company email. Know More >
---
include/osmocom/core/msgb.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/include/osmocom/core/msgb.h b/include/osmocom/core/msgb.h
index fe2733b..9221fda 100644
--- a/include/osmocom/core/msgb.h
+++ b/include/osmocom/core/msgb.h
@@ -99,7 +99,7 @@ uint16_t msgb_length(const struct msgb *msg);
* This function computes the number of bytes between the tail of the
* message and the layer 1 header.
*/
-static inline unsigned int msgb_l1len(const struct msgb *msgb)
+static inline uint16_t msgb_l1len(const struct msgb *msgb)
{
return msgb->tail - (uint8_t *)msgb_l1(msgb);
}
@@ -111,7 +111,7 @@ static inline unsigned int msgb_l1len(const struct msgb *msgb)
* This function computes the number of bytes between the tail of the
* message and the layer 2 header.
*/
-static inline unsigned int msgb_l2len(const struct msgb *msgb)
+static inline uint16_t msgb_l2len(const struct msgb *msgb)
{
return msgb->tail - (uint8_t *)msgb_l2(msgb);
}
@@ -123,7 +123,7 @@ static inline unsigned int msgb_l2len(const struct msgb *msgb)
* This function computes the number of bytes between the tail of the
* message and the layer 3 header.
*/
-static inline unsigned int msgb_l3len(const struct msgb *msgb)
+static inline uint16_t msgb_l3len(const struct msgb *msgb)
{
return msgb->tail - (uint8_t *)msgb_l3(msgb);
}
@@ -135,7 +135,7 @@ static inline unsigned int msgb_l3len(const struct msgb *msgb)
* This function computes the length difference between the underlying
* data buffer and the used section of the \a msgb.
*/
-static inline unsigned int msgb_headlen(const struct msgb *msgb)
+static inline uint16_t msgb_headlen(const struct msgb *msgb)
{
return msgb->len - msgb->data_len;
}
@@ -147,7 +147,7 @@ static inline unsigned int msgb_headlen(const struct msgb *msgb)
* This function computes the amount of octets left in the underlying
* data buffer after the end of the message.
*/
-static inline int msgb_tailroom(const struct msgb *msgb)
+static inline uint16_t msgb_tailroom(const struct msgb *msgb)
{
return (msgb->head + msgb->data_len) - msgb->tail;
}
@@ -159,7 +159,7 @@ static inline int msgb_tailroom(const struct msgb *msgb)
* This function computes the amount of bytes left in the underlying
* data buffer before the start of the actual message.
*/
-static inline int msgb_headroom(const struct msgb *msgb)
+static inline uint16_t msgb_headroom(const struct msgb *msgb)
{
return (msgb->data - msgb->head);
}
--
1.8.3.2
--------------060007020105010906090408--
Hello guys,
attached is a patch that fixes a few issues regarding SIM reader in Motorola phones (tested on C123), description:
if there’s a lot of reading from SIM it happens a FIFO gets full, IMHO the right way is to read until the FIFO is empty (while-loop added)
FETCH APDU has to be handled in the same way as GET RESPONSE (added)
once REG_SIM_IT_SIM_NATR is triggered it should set the rxDoneFlag to 1 because otherwise there’s trouble recognising NO SIM state on L1 if SIM isn’t present
in calypso_sim_powerup() and calypso_sim_reset() should set state to IDLE and put sim_len to 0 because if you do powerdown/powerup the state machine gets messed up
unsetting CONFBYPASS should make the CONFSVCCLEV and CONFSRSTLEV irrelevant but it doesn’t, calypso_sim_powerdown() fixed based on calypso spec
both calypso_sim_powerup() and calypso_sim_powerup() now return ATR as it should be when you poweron/reset the card
some minor debug messages fixed to keep all the messages consistent
Patch is apply-able on the current master.
Cheers!
Lukas
Hello,
I am running osmocom-bb on a Ubuntu x86 machine with a Motorola C121.
Everything works (as far as I can tell).
Now I would like to move the host programs to a Raspberry Pi.
So, I did a "make nofirmware" on the Rpi and copied the *.compalram.bin
files from the x86 Ubuntu box over to the Rpi.
When I use osmocon on the pi to upload the bin file to the phone, the
transfer stops after the "finished" line and then, after a while, the
phone sends a DOWNLOAD NAK, instead of the usual "DOWNLOAD ACK your code
is running now".
Has anybody seen this behaviour and knows how to fix it?
I have tried two USB/serial adapters (both FTDI based) just in case its
a hw problem, but the result is always the same: the upload to the phone
works on the Ubuntu/x86 box but not on the pi.
Any help is greatly appreciated.
Kind Regards,
-Walter
hello everybody
I want to use LCR send voice from PC to osmocom-bb, and recv traffic
voice from osmocom-bb to PC.
So at osmocom-bb/src/host/layer23/src/mobile/gsm48_rr.c
int gsm48_rr_init(struct osmocom_ms *ms)
I change
Hello.
I've got rid of unnecessary cycle and to made difference between v2 and v3 more
visible: v2 is basically just v3 with last bits of Kc zeroed. Also - small
readability improvements.
Also I've added test suite with test vectors from original python implementation.
--
best regards,
Max, http://fairwaves.ru