Commit Graph
10 Commits
Author SHA1 Message Date
Alexander Couzens bebed508dd firmware: Drop CEMU_TX_DATA when sim is in-active
When the emulated sim is in reset or without power, drop
CEMU_TX_DATA.

Change-Id: I796e548225a742cddfde12bd6a60e4d2e5c04c8f
2026-07-14 18:24:58 +02:00
Alexander Couzens 567c03c83f firmware: card_emu.h: declare usb_buf_upd_len_and_submit()
usb_buf_upd_len_and_submit() is already a non-static function and should be
accessible.

Change-Id: I734d4b2d782223dd2f735f140d8c9bc6fc00a086
2026-07-14 18:24:44 +02:00
Alexander Couzens 1b43e1db48 firmware: card_emu.h: add missing header stdbool.h.
Change-Id: I4ad6d5cf0b4477cbd5f761d70c4cd92fb3ca1fcd
2026-07-14 18:24:15 +02:00
Alexander Couzens 01f36081fc README.md: describe the debug uart
Change-Id: I4cf929fded962e7ffb4c01628279385b2af04157
2026-07-14 18:24:10 +02:00
Alexander Couzens 7949165a4a README.md: fix typo in firmware
Change-Id: I16721418fce55322c8730920ceaa4e65f91a8a7e
2026-07-11 20:06:22 +02:00
Alexander Couzens f9885fe019 simtrace2-cardem-pcsc: allow to set sim presence polarity
Add api call osmo_st2_cardem_request_config2(struct cardemu_usb_msg_config *)
which contains a full cardemu_usb_msg_config.

Related: SYS#6946
Change-Id: Iacde63e667472a85a5f18cb4ca99dcfa1a84dd59
2024-06-23 18:47:42 +02:00
Alexander Couzens ec9b0b5254 firmware: allow to change the sim presence pin polarity
The sim presence pin allows the simtrace2 to inform the modem
about the presence of the simcard. On a generic simcard slot a
button is pressed by the simcard which generate a high or low voltage level.
Even though there are specifications of minipcie or ngff defining this signal, certain
modems behave different.
Certain modems require different signals from the specification.

Extend the usb protocol to set the behaviour at runtime.

Related: SYS#6946
Change-Id: I77118114ba873fdf0778137402888b40f2442456
2024-06-23 18:47:40 +02:00
Alexander Couzens 0cd501ef80 dissector: add support for sim polarity
Needs testing.

Related: SYS#6946
Change-Id: If3ae350d0f4d737bc9e80c4f5d73cc1a39d076af
2024-06-13 23:58:44 +02:00
Alexander Couzens d405133672 ngff_cardem: cosmetic: fix superflous space
Change-Id: Ib155d5778a0df7865958ab65fe2ce48b44f4326d
2024-05-22 15:09:23 +01:00
Alexander Couzens 2ceba0fdc4 firmware: usb: call USBD_HAL_DISCONNECT while usb init to recover from resets
The firmware doesn't recover from a OSMO_ASSERT() which direct reset the board.
After the reset the firmware will waits forever for the USBD state USBD_STATE_CONFIGURED.
By adding the explicit USBD_HAL_DISCONNECT the board always recovers.

Fixes: OS#5478
Related: SYS#5752
Change-Id: I600a26025166d20b6b27c191f24e4023efdaadf6
2022-03-09 07:21:01 +00:00