User Tools

Site Tools


digic:processors:lime

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
digic:processors:lime [2021/03/07 14:58] – Include signatures jack001214digic:processors:lime [2021/03/16 12:01] (current) coon
Line 4: Line 4:
 All the investigations below were done under 200D (SL2) at version 1.0.1. All the investigations below were done under 200D (SL2) at version 1.0.1.
  
 +[[https://en.wikipedia.org/wiki/ESP32|ESP32]] 
 ==== LIME Shell ==== ==== LIME Shell ====
 The networking processor was found to have a DryOS implementation with an interactive shell which can be accessed from the ICU through UART. The networking processor was found to have a DryOS implementation with an interactive shell which can be accessed from the ICU through UART.
Line 145: Line 146:
 </code> </code>
 ==== Misc ==== ==== Misc ====
 +^   Socket  ^^^
 +^Option^Value^Info^
 +|AF_INET    |0x1|Internet IP Protocol|
 +|SOCK_STREAM|0x1|TCP Protocol        |
 +
 ^   Socket Options   ^^^ ^   Socket Options   ^^^
 ^Option^Value^Info^ ^Option^Value^Info^
 |SOL_SOCKET|0xffff|options at the socket level| |SOL_SOCKET|0xffff|options at the socket level|
 |SO_REUSEADDR| 0x2|allow reuse of local addresses| |SO_REUSEADDR| 0x2|allow reuse of local addresses|
 +
 +''socket_bind'' and ''socket_connect'' takes in three parameters. The array which is passed in should look like this:
 +<code>
 +char sockaddr[8];
 +
 +// 1 = IPv4, 2 = IPv6, 3 = Ethernet
 +sockaddr[0] = 0x00;
 +sockaddr[1] = 0x01;
 +
 +// port 25565
 +sockaddr[2] = 0x63; // low byte
 +sockaddr[3] = 0xdd; // high byte
 +
 +// ip address: 192.168.10.22
 +sockaddr[4] = 192;
 +sockaddr[5] = 168;
 +sockaddr[6] = 10;
 +sockaddr[7] = 22;
 +</code>
 +<code>
 +socket_bind(sock,sockaddr, 0x8)
 +socket_connect(sock,sockaddr, 0x8)
 +</code>
 +
 +
 +
  
digic/processors/lime.1615125491.txt.gz · Last modified: 2021/03/07 14:58 by jack001214