File tree Expand file tree Collapse file tree 3 files changed +57
-1
lines changed Expand file tree Collapse file tree 3 files changed +57
-1
lines changed Original file line number Diff line number Diff line change 10
10
System Calls <syscall >
11
11
FOTA API <fota >
12
12
Command Processor & Command Line Interface <command_proc >
13
+ Remote Console/Debugging <rdbg >
13
14
Message Queue <messageq >
Original file line number Diff line number Diff line change
1
+ Remote Console/Debugging
2
+ ========================
3
+
4
+ Logicrom provide in-built remote debugging console that runs over a TCP socket.
5
+
6
+ A remote console session can be initiated by sending *rdbg * command. Device
7
+ opens up a TCP socket to the server and port provided in the command. When
8
+ device is connected to server, it sends a message describing its identity
9
+ in following format
10
+
11
+ ::
12
+
13
+ $RDBG,[UID],[IMEI]#[CR][LF]
14
+
15
+
16
+ Where UID is device unique ID, and IMEI is module's IMEI.
17
+
18
+ After the identity string, login prompt is shown. Once logged in, complete
19
+ command line interface is available for device interaction.
20
+
21
+
22
+ Example Usage
23
+ --------------
24
+
25
+ To add remote debug command to system:
26
+
27
+ .. code-block :: c
28
+
29
+ #include <remotedbg.h>
30
+
31
+ remote_debug_enable();
32
+
33
+ Command Line Usage
34
+ ^^^^^^^^^^^^^^^^^^
35
+
36
+ .. code-block :: bash
37
+
38
+ # Initate remote debug
39
+ $ rdbg=< IP/domain> ,< port>
40
+
41
+ # close remote session
42
+ $ rdbg=close
43
+
44
+
45
+ API Reference
46
+ -------------
47
+
48
+ .. include :: /inc/remotedbg.inc
Original file line number Diff line number Diff line change @@ -12,14 +12,21 @@ extern "C" {
12
12
13
13
/**
14
14
* Initialize and enable Remote debugging
15
+ *
15
16
* This will also add rdbg command to firmware
17
+ *
16
18
* Usage of rdbg:
19
+ *
17
20
* rdbg=[IP],[Port]
21
+ *
18
22
* Where IP can be domain name or IP of server to connect
19
23
* Port is server port to connect
20
24
*
21
- * Once connected, remote server will be greeted with device parameter message in following format
25
+ * Once connected, remote server will be greeted with device parameter
26
+ * message in following format
27
+ *
22
28
* $RDBG,[Module UID],[IMEI]#[CR][LF]
29
+ *
23
30
* and followed by a login prompt.
24
31
*/
25
32
void remote_debug_enable (void );
You can’t perform that action at this time.
0 commit comments