nuttx-apps/lte/alt1250
Xiang Xiao 083eb5e993 Fix the wrong comment banner
"Private Type"->"Private Types"
"Public Data Type"->"Public Types"

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-12-03 14:27:14 -03:00
..
callback_handlers lte/alt1250: Fix bug that name resolution failed for a long time 2023-09-16 18:09:29 +08:00
usock_handlers Fix the wrong comment banner 2023-12-03 14:27:14 -03:00
alt1250_atcmd.c Fix the wrong comment banner 2023-12-03 14:27:14 -03:00
alt1250_atcmd.h Fix the wrong comment banner 2023-12-03 14:27:14 -03:00
alt1250_container.c apps: fix style issues in code 2023-06-11 18:47:50 +08:00
alt1250_container.h Fix nuttx coding style 2023-08-01 23:10:32 -07:00
alt1250_daemon.h lte: Add usrsock daemon for ALT1250 LTE modem 2023-06-07 01:51:33 +08:00
alt1250_dbg.h apps: fix style issues in code 2023-06-11 18:47:50 +08:00
alt1250_devevent.c apps: fix style issues in code 2023-06-11 18:47:50 +08:00
alt1250_devevent.h lte: Add usrsock daemon for ALT1250 LTE modem 2023-06-07 01:51:33 +08:00
alt1250_devif.c apps: fix style issues in code 2023-06-11 18:47:50 +08:00
alt1250_devif.h apps: fix style issues in code 2023-06-11 18:47:50 +08:00
alt1250_main.c apps: fix style issues in code 2023-06-11 18:47:50 +08:00
alt1250_netdev.c lte/alt1250: Fix some bugs in alt1250 daemon 2023-11-09 20:11:07 +08:00
alt1250_netdev.h lte: Add usrsock daemon for ALT1250 LTE modem 2023-06-07 01:51:33 +08:00
alt1250_postproc.h Fix the wrong comment banner 2023-12-03 14:27:14 -03:00
alt1250_reset_seq.c Fix the wrong comment banner 2023-12-03 14:27:14 -03:00
alt1250_reset_seq.h lte: Add usrsock daemon for ALT1250 LTE modem 2023-06-07 01:51:33 +08:00
alt1250_select.c Fix the wrong comment banner 2023-12-03 14:27:14 -03:00
alt1250_select.h lte: Add usrsock daemon for ALT1250 LTE modem 2023-06-07 01:51:33 +08:00
alt1250_socket.c apps: fix style issues in code 2023-06-11 18:47:50 +08:00
alt1250_socket.h Fix the wrong comment banner 2023-12-03 14:27:14 -03:00
alt1250_usockevent.c apps: fix style issues in code 2023-06-11 18:47:50 +08:00
alt1250_usockevent.h Fix the wrong comment banner 2023-12-03 14:27:14 -03:00
alt1250_usockif.c lte/alt1250: Fix some bugs in alt1250 daemon 2023-11-09 20:11:07 +08:00
alt1250_usockif.h Fix the wrong comment banner 2023-12-03 14:27:14 -03:00
alt1250_util.c apps: fix style issues in code 2023-06-11 18:47:50 +08:00
alt1250_util.h Fix some coding style issue 2023-08-17 22:51:51 +03:00
Kconfig lte: Add usrsock daemon for ALT1250 LTE modem 2023-06-07 01:51:33 +08:00
Make.defs lte: Add usrsock daemon for ALT1250 LTE modem 2023-06-07 01:51:33 +08:00
Makefile lte: Add usrsock daemon for ALT1250 LTE modem 2023-06-07 01:51:33 +08:00
README.txt lte: Add usrsock daemon for ALT1250 LTE modem 2023-06-07 01:51:33 +08:00

NOTICE:
=======
  This document should be opened in a text editor with a width of at least 150 characters.

alt1250 usrsock daemon
======================

  This software module is a usrsock daemon in NuttX for ALT1250 modem.
  The ALT1250 modem is a modem provided by Sony Semiconductor Israel. And it supports LTE Cat-M1 and NB-IoT network.
  

Implementation Structure
========================
                                                                                 Call registerd functions
                                                                                <-------------------------------------------------+
                                                                                                                                  |
+-------------------------------------------------------------------------------------------------------------------------------- | -------------+
| alt1250_daemon                                                                                                                  |              |
| ~~~~~~~~~~~~~~                                                            Response                                              |              |
|   +----------------------------------------------------------------------------------+                                          |              |
|   |                                                                                  |                                          |              |
|   V  Response    _________________________________________________________           |                            +--------------------------+ |
|   +------------- | usrsock handlers                    | post process    |           |            +-------------> |   Event call back task   | |
|   |              +_____________________________________+_________________+           |            |          +--> |   to an application      | |
|   |              | socket handler                      | postproc_socket |           |            |          |    +--------------------------+ |
|   |           |D | bind handler                        | postproc_bind   |           |            |          |                                 |
|   |           |I | listen handler                      | postproc_listen |  <-----+  |            |          |                                 |
|   |           |S |      .                              |        .        |        |  |            |          |                                 |
|   |           |P |      .                              |        .        |  Call  |  |            |          |                                 |
|   |   +-----> |A |      .                              |        .        |  Back  |  |            | Event    |                                 |
|   |   |       |T |---------------+---------------------+-----------------|        |  |            | Message  |                                 |
|   |   |       |C | ioctl handler | lapi power handler  | postproc_XXXX   |        |  |            |          |                                 |
|   |   |       |H |                 lapi normal handler | postproc_XXXX   |        |  |            |          |                                 |
|   |   |          |               | lapi ifreq handler  | postproc_XXXX   | ___________________________________________________________________ |
|   |   | usrsock  |                 lapi ltecmd handler | postproc_XXXX   | | Command Reply | Reset Event | Asynchronous Event | Select Event | |
|   |   | request  |               |         .           |        .        | |-----------------------------------------------------------------| |
|   |   |          |                         .           |        .        | | Device event handling                                           | |
|   |   |          +-------------------------------------------------------+ +-----------------------------------------------------------------+ |
|   |   |                                    |                    |                                      /                                       |
+-- | - | ---------------------------------- | ------------------ | ------------------------------------ | --------------------------------------+
    |   |                                    |   Send Command     |                                      | Event notify
    V   |                                    V                    V                                      |
-- /dev/usrsock --                   ----------------------------------- /dev/alt1250 -----------------------------------
+----------------+                   +----------------------------------------------------------------------------------+
|   User Sock    |                   |                             ALT1250 Device Driver                                |
+----------------+                   +----------------------------------------------------------------------------------+
                                     +---------------------------------------++-----------------------------------------+
                                     |          SPI Driver                   ||            GPIO Driver                  |
                                     +---------------------------------------++-----------------------------------------+

Behavior Overview
=================

  Basically, alt1250_daemon receives a request from NutX User Sock and performs the expected processing according to the request.

  Each request is processed by its own "usrsock handler" depending on its type, and the result is returned to the User Sock as a
  response. To achieve each of these operations, the "usrsock handler" sends a command to the alt1250 device driver. The post process
  function is registerd in the command to process the command response if necessary.

  The command is sent to the ALT1250 via SPI, and the ALT1250 returns a response according to the command to notify alt1250_daemon.
  The alt1250_daemon receives the command response from that notification and either returns the response to User Sock or calls the
  "post process function" that was registered by the "usrsock handler". "post process" will return a response or send further
  commands to ALT1250 depending on the content of the request.

  The ALT1250 may make event notifications, and these notifications are asynchronous. ALT1250 asynchronous events are notified by the
  device driver as well as command responses, and when the alt1250_daemon receives them, it passes them to a task for callback to
  notify the user application.