This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:software:deviceserver [2016/08/11 11:43] – [HTTP interface (using a web browser)] 84.181.55.58 | en:software:deviceserver [2017/03/22 21:12] (current) – [HTTP interface (using a web browser)] stefan | ||
---|---|---|---|
Line 156: | Line 156: | ||
Endpoint: 2 read | Endpoint: 2 read | ||
Endpoint: 4 write | Endpoint: 4 write | ||
- | </ | ||
- | |||
- | **Step 5:** Write some data to EP4. Due to a limitation of the example the data must not be larger then 1024 bytes. | ||
- | < | ||
- | $ (echo write 7 18 4; cat Readme) | nc localhost 9081 | ||
- | </ | ||
- | |||
- | **Step 6:** Read uppercase converted data back from EP2. | ||
- | < | ||
- | $ echo read 7 18 2| nc localhost 9081 | ||
- | UCECHO | ||
- | ------ | ||
- | |||
- | THIS EXAMPLE IS INTENDED FOR ZTEX USB-FPGA-MODULES. | ||
- | |||
- | THE FIRMWARE (DEFINED IN UCECHO.C) DECLARES ENDPOINT 2 AND ENDPOINT 4 | ||
- | (BOTH 512 BYTES, DOUBLE BUFFERED, BULK TRANSFER, BELONG TO INTERFACE 0). | ||
- | ALL DATA THAT IS WRITTEN TO ENDPOINT 4 IS CONVERTED TO UPPERCASE BY | ||
- | THE FPGA AND CAN BE READ BACK FROM ENDPOINT 2. | ||
- | |||
- | THIS EXAMPLE DOES THE SAME AS THE EXAMPLE IN DIRECTORY ../ | ||
- | EXCEPT THAT THE UPPERCASE - LOWERCASE CONVERSION IS MADE BY THE FPGA. | ||
- | |||
- | THE DRIVER (DEFINED IN UCECHO.JAVA) UPLOADS THE THE FIRMWARE (UCECHO.IHX) | ||
- | TO THE EZ-USB MICROCONTROLLER AND THE BITSTREAM (FPGA/ | ||
- | FPGA IF NECESSARY, SENDS USER STRING TO THE DEVICE AND READS THEM BACK. | ||
- | |||
- | UPLOADING THE FIRMWARE TO EEPROM IS ALSO SUPPORTED BY THE FIRMWARE (E.G. | ||
- | USING THE FWLOADER UTILITY). | ||
- | |||
- | THIS EXAMPLE MAY SERVE A GOOD STARTING POINT FOR OWN PROJECTS. | ||
</ | </ | ||
Line 193: | Line 162: | ||
The HTTP interface is even easier to use then the socket interface. This shall be demeonstrated with the same example as above. | The HTTP interface is even easier to use then the socket interface. This shall be demeonstrated with the same example as above. | ||
+ | |||
+ | Note that at least some Windows versions does not know their name: the numeric address ' | ||
**Step 1:** Point you internet browser to localhost: | **Step 1:** Point you internet browser to localhost: | ||
Line 204: | Line 175: | ||
{{indexmenu_n> | {{indexmenu_n> | ||
+ |