digic:processors:lime
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
digic:processors:lime [2021/03/07 14:58] – Include signatures jack001214 | digic: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:// | ||
==== 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: | ||
</ | </ | ||
==== Misc ==== | ==== Misc ==== | ||
+ | ^ | ||
+ | ^Option^Value^Info^ | ||
+ | |AF_INET | ||
+ | |SOCK_STREAM|0x1|TCP Protocol | ||
+ | |||
^ | ^ | ||
^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| | ||
+ | |||
+ | '' | ||
+ | < | ||
+ | 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; | ||
+ | </ | ||
+ | < | ||
+ | socket_bind(sock, | ||
+ | socket_connect(sock, | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
digic/processors/lime.1615125491.txt.gz · Last modified: 2021/03/07 14:58 by jack001214