Skip to content

Commit

Permalink
First ExiDecoded handshake message received
Browse files Browse the repository at this point in the history
  • Loading branch information
mstegen committed Jul 20, 2023
1 parent 50b7f27 commit fd1c1bf
Show file tree
Hide file tree
Showing 41 changed files with 41,765 additions and 280 deletions.
10 changes: 10 additions & 0 deletions include/ipv6.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

extern uint16_t evccPort;
extern uint16_t seccPort;
extern uint16_t evccTcpPort;
extern uint8_t SeccIp[];
extern uint8_t EvccIp[];

void setSeccIp();
void IPv6Manager(uint16_t rxbytes);
uint16_t calculateUdpAndTcpChecksumForIPv6(uint8_t *UdpOrTcpframe, uint16_t UdpOrTcpframeLen, const uint8_t *ipv6source, const uint8_t *ipv6dest, uint8_t nxt);
29 changes: 28 additions & 1 deletion include/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#define SPI_REG_ACTION_CTRL 0x1B00

#define QCASPI_GOOD_SIGNATURE 0xAA55
#define QCA7K_BUFFER_SIZE 3163

#define SPI_INT_WRBUF_BELOW_WM (1 << 10)
#define SPI_INT_CPU_ON (1 << 6)
Expand All @@ -34,6 +35,10 @@
#define SPI_INT_RDBUF_ERR (1 << 1)
#define SPI_INT_PKT_AVLBL (1 << 0)

/*====================================================================*
* States
*--------------------------------------------------------------------*/

#define MODEM_POWERUP 0
#define MODEM_WRITESPACE 1
#define MODEM_CM_SET_KEY_REQ 2
Expand All @@ -45,6 +50,14 @@
#define ATTEN_CHAR_RSP 50
#define SLAC_MATCH_REQ 60

#define MODEM_GET_SW_REQ 100
#define MODEM_WAIT_SW 110
#define MODEM_LINK_READY 120


/*====================================================================*
* SLAC commands
*--------------------------------------------------------------------*/

#define CM_SET_KEY 0x6008
#define CM_GET_KEY 0x600C
Expand Down Expand Up @@ -77,4 +90,18 @@
#define MMTYPE_REQ 0x0000 // request
#define MMTYPE_CNF 0x0001 // confirmation = +1
#define MMTYPE_IND 0x0002
#define MMTYPE_RSP 0x0003
#define MMTYPE_RSP 0x0003

// Frametypes

#define FRAME_IPV6 0x86DD
#define FRAME_HOMEPLUG 0x88E1

/* V2GTP */
#define V2GTP_HEADER_SIZE 8 /* header has 8 bytes */

extern uint8_t txbuffer[], rxbuffer[];
extern uint8_t myMac[];
extern uint8_t pevMac[];
void qcaspi_write_burst(uint8_t *src, uint32_t len);
void setMacAt(uint8_t *mac, uint16_t offset);
1 change: 1 addition & 0 deletions include/tcp.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
void evaluateTcpPacket(void);
2 changes: 2 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ framework = arduino
upload_port = COM5
monitor_port = COM5

monitor_filters = esp32_exception_decoder

build_flags =
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
Expand Down
Loading

0 comments on commit fd1c1bf

Please sign in to comment.