Skip to content

Commit

Permalink
[Pipe] Apply serial protocol only for serial communications, close #290
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-rabault authored and Salem-Tho committed Sep 7, 2022
1 parent 5a49bf7 commit 551f8cc
Show file tree
Hide file tree
Showing 42 changed files with 918 additions and 923 deletions.
12 changes: 6 additions & 6 deletions examples/projects/Arduino/gate_serialcom/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

/*******************************************************************************
* OTHER GATE PARAMETERS
Expand Down
2 changes: 0 additions & 2 deletions examples/projects/Arduino/gate_serialcom/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ lib_deps =
Gate
Pipe


[env:zero]
board = mkrzero
platform_packages = framework-arduino-samd@https://github.com/Luos-io/Arduino_core.git
Expand All @@ -52,4 +51,3 @@ platform_packages = framework-arduino-samd@https://github.com/Luos-io/Arduino_co
[env:seed]
board = seeed_xiao
platform_packages = framework-arduino-samd-seeed@https://github.com/Luos-io/Arduino_core.git

12 changes: 6 additions & 6 deletions examples/projects/Arduino/inspector_serialcom/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

#endif /* _NODE_CONFIG_H_ */
24 changes: 12 additions & 12 deletions examples/projects/ESP32/gate_serialcom_arduino/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
* NBR_PORT | 2 | PTP Branch number Max 8
* NBR_RETRY | 10 | Send Retry number in case of NACK or collision
******************************************************************************/

#define MAX_SERVICE_NUMBER 2
#define MSG_BUFFER_SIZE 2048
#define MAX_MSG_NB 40
#define MAX_SERVICE_NUMBER 3
#define MAX_PROFILE_NUMBER 1
#define MAX_MSG_NB 5
#define INIT_TIME 150

/*******************************************************************************
* LUOS HAL LIBRARY DEFINITION
Expand Down Expand Up @@ -100,14 +100,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* INIT_TIME | 150 | Wait init time before first detection
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

/*******************************************************************************
* OTHER GATE PARAMETERS
Expand All @@ -117,6 +117,6 @@
* INIT_TIME | 150 | Wait init time before first detection
* ******************************************************************************/

#define PIPE_SERIAL_BAUDRATE 115200
#define INIT_TIME 150

#endif /* _NODE_CONFIG_H_ */
12 changes: 6 additions & 6 deletions examples/projects/NUCLEO-F072RB/gate_serialcom/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

/*******************************************************************************
* OTHER GATE PARAMETERS
Expand Down
12 changes: 6 additions & 6 deletions examples/projects/NUCLEO-F401RE/gate_serialcom/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

/*******************************************************************************
* OTHER GATE PARAMETERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048
#define NODETECTION

#endif /* _NODE_CONFIG_H_ */
12 changes: 6 additions & 6 deletions examples/projects/NUCLEO-F410RB/gate_serialcom/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

/*******************************************************************************
* OTHER GATE PARAMETERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

#endif /* _NODE_CONFIG_H_ */
12 changes: 6 additions & 6 deletions examples/projects/NUCLEO-G431KB/gate_serialcom/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

/*******************************************************************************
* OTHER GATE PARAMETERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

#endif /* _NODE_CONFIG_H_ */
12 changes: 6 additions & 6 deletions examples/projects/NUCLEO-G474RE/gate_serialcom/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

/*******************************************************************************
* OTHER GATE PARAMETERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

#endif /* _NODE_CONFIG_H_ */
12 changes: 6 additions & 6 deletions examples/projects/NUCLEO-L432KC/gate_serialcom/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

/*******************************************************************************
* OTHER GATE PARAMETERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

#endif /* _NODE_CONFIG_H_ */
12 changes: 6 additions & 6 deletions examples/projects/STM32F4-discovery/gate_serialcom/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

/*******************************************************************************
* OTHER GATE PARAMETERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

#endif /* _NODE_CONFIG_H_ */
12 changes: 6 additions & 6 deletions examples/projects/l0/gate_serialcom/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* INIT_TIME | 150 | Wait init time before first detection
******************************************************************************/
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

/*******************************************************************************
* OTHER GATE PARAMETERS
Expand Down
Loading

0 comments on commit 551f8cc

Please sign in to comment.