follower
|
aac1dc7f2a
|
Change PIN_RESET to match pin on Netduino sheild prototype. NOTE: This is an INCOMPATIBLE change with existing connections. Add SPI_EN pin usage to allow future use of other items on the SPI bus. NOTE: This is *also* INCOMPATIBLE with existing connections. Add sketch upload functionality comment.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@133 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
7e1137fa16
|
Quick commit of code to program sketch onto another ATMega chip.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@132 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
bedd180b0f
|
Bah, that previous commit was the *current* uncommited code, which I hadn't intended to commit... Ummm. Yeah. So let's through this stupid thing in.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@131 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
6dccead96d
|
Fix the file name.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@130 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
a7b171f433
|
Copy current (old) version of demo to serve as base for serial/net proxy demo.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@129 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
411a834cd5
|
Switch our test code back to the non-class style for temporary development purposes.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@128 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
f803ac7c6b
|
Now do the annoying rename...
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@127 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
4813578111
|
Copy current echo server demo to serve as base for client demo.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@126 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
2b9fcedc53
|
Exclude currently unused code so we get a more accurate idea of demo code size (<8.9K).
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@125 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
c63aa9aca5
|
Change demo to enable *four* simultaneous echo server connections at once\!
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@124 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
f9153bf652
|
Update head comments and revision information.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@123 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
9a9ff8ed2a
|
Use new 'EchoServer' classes for demo instead of old non-class demo. Run two echo servers simultaneously on ports 7 & 8 for one connection each. Note: When I first did this I didn't realise that the driver/chip seems to function quite happily when two servers listen on the same port--it seems to queue them.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@122 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
43c20bf422
|
Add guts of 'EchoServer' state machine. (Currently unused.)
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@121 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
11551d3b61
|
Add defines for echo server state machine states. Add place to store current state. Initialise first state and listen. (Currently unused.)
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@120 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
b2ed21239a
|
Add rough hacky method to allow multiple sockets to be created. This needs to be fixed to (a) not create more than MAX sockets and (b) reuse sockets that have been closed. TODO: DO THIS PROPERLY\!
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@119 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
a1e0e9864b
|
Add comment about the need to investigate if we need to use 'disconnect' or not.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@118 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
e9e5b4dd44
|
Remove redundant 'NetworkConnection::' namespace reference.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@117 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
677877160c
|
Add initial skeleton for EchoServer class. (Not yet used.)
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@116 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
4f372c3010
|
Add single byte 'print' function to send data. The name is to match the 'Serial.print' function. TODO: Print strings etc? Change demo to echo data received to sender.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@115 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
7d38f68179
|
Add 'available()' method to connection to match 'Serial.available()'. Change 'read()' method to match behaviour of 'Serial.read()'. Document some of this. Print bytes received from the demo to the console.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@114 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
e76648310b
|
Change 'read' declaration to return an int to match the 'Serial.read' functionality--I don't overly like the approach but that's what I'm wanting to be compatible with. Note: We haven't actually matched the behaviour yet.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@113 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
695136deb2
|
Correct comment about 'read' blocking for data--it seems that 'recv' actually doesn't block after all.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@112 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
89bb89f05a
|
Close connection when demo is finished.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@111 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
265a634089
|
If the connection 'listen' method fails we bail into an infinite loop. TODO: Provide a way for the caller to detect and handle this kind of error?
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@110 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
2fc2cf46a8
|
Change connection listen method to return a boolean indicating whether the socket began to listen successfully. TODO: Use this value usefully.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@109 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
b0cfc84abe
|
Add a comment about default socket possibility.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@108 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
4979f30019
|
Add connection byte read method--not yet used.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@107 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
c89615a4a3
|
Store maximum number of sockets available to us. Note: We don't use this currently as we hardcode to always use socket number 0--which means things will break if someone tries to create more than one socket. TODO: Fix this, obviously... :-)
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@106 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
5e153c539e
|
A quick fix to enable things to work again. The bug occurred because the socket number supplied to the socket creation/activation routine was never correctly initialised. I had thought a call to 'socket' routine returned the socket number in the first parameter, but it turns out I was supposed to _supply_ the socket number. (I had misunderstood what was hidden behind the 'SOCKET' type definition.) Oddly enough it took nearly two months before this mistake caused something to stop working (seemingly)--it seems nonsensical values didn't always cause failure. TODO: Investigate this further? TODO: FIx properly to allow multiple sockets and tracking thereof.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@105 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
8247d829a2
|
Add method to close socket. NOTE: This change BREAKS THINGS and the demo NO LONGER FUNCTIONS. The problem is however unrelated to the commit--this code simply reveals an already existing bug due to the socket number being uninitialised. Now I've found out why the problem occurs I can fix it in the next commit.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@104 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
e4dfd94a4c
|
Change 'listen' methods to take a 'uint16_t'. Temporarily include a test socket creation--THIS BREAKS the webserver demo. NOTE/TODO: Supplying port numbers greater than 255 IS BROKEN--I don't know why--see comments for more details.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@103 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
6e0f16aec1
|
Add 'isConnected' method to 'NetworkConnection' in prepartion for use.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@102 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
45481088d4
|
Add initial skeleton of the plain socket wrapping 'NetworkConnection' class--it is not yet used though.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@101 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
228508d0a9
|
Move and reword configuration debug messages.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@100 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
06f8f9a220
|
Remove test code. TODO: Add check/diagnostic ability to determine if the module and driver are functioning correctly?
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@99 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
4aaf08a396
|
Move default configuration into NetworkInterface constructor. Change default values.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@98 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
3e04fbc259
|
(*Much* later...) Include skeleton of 'NetworkInterface' class and enable it to be initialised with a pre-configured 'Wiz810MjDevice' instance. (This required the use of 'References' and an 'initialization list' which was all news to me...)
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@97 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
0252654324
|
Remove old configuration data.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@96 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
d8f3eb266e
|
Convert MAC address configuration to class method.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@95 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
b7867b8f80
|
Add six-byte buffer packing method to allow for MAC address configuration.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@94 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
0abd75b40c
|
Fix variable name in 'setIp' declaration. Add and convert to methods for configuring net mask and gateway.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@93 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
0cc5fc9107
|
Move scratch buffer manipulation into helper method. Convert IP address configuration to use new method.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@92 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
395266e282
|
Begin moving network configuration into Wiz class and convert IP address configuration to the new method.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@91 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
c61d2ef510
|
Move network module initialisation into class.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@90 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
732e4ac846
|
Add skeleton of Wiz810MJ class.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@89 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
5f2b65048d
|
Change SPI configuration to use an object so we can match the 'Foo.begin()' convention of the standard Arduino Serial configuration people are used to seeing.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@88 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
11ab05e210
|
Move SPI configuration function into a static class method of the SPI class.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@87 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
89111a4e8c
|
Add skeleton of SPI class.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@86 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
4377145f3e
|
Fix the filename.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@85 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |
follower
|
2f5c9a5c42
|
Now that we've slightly tidied up WizDemo3 we'll leave it in peace.
git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@84 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
|
17 years ago |