sir,
my project is to do a webserver using lm3s9b92. here i wanna connect a wifi module via uart. so i want some sampel program based on uart and lwip, such that i can i understand beter. plz suggest and give some idea
Gopi,
The enet_lwip example in StellarisWare is an example of a webserver with lwip and ethernet. You would have to make significant changes to the code to get it to work with a UART Wi-Fi. The uart_echo example will help you to understand how to configure a simple UART connection.
I have gone through the program. I would like to know how to dump the low wieght webpage onto the kit.
Secondly, i cannot evaluate the code i write for UART1(i cannot see the rsult in HYPERTERMINAL) since the debugger is connected to UART0. Is there anyway around this?
If you want to replace the default enet_lwip example webpage with your own custom webpage, you will need to generate a new lmi-fsdata.h. In the StellarisWare\tools\bin directory there is a makefsfile.exe. Run makefsfile in a command prompt with no arguments to see how to use the options and arguments. Then generate a new lmi-fsdata.h from you webpage directory and replace the default one used by the example. Then rebuild the project, and reload the program onto the part.
If you change the UART1 code to use UART0, you should be able to see the output on hyperterminal. You can do this at the same time as debugging, because the debugger uses separate JTAG pins to do the debugging.
gopi krishnasi wanna connect a wifi module via uart. so i want some sampel program
You haven't said what WiFi module! It is impossible to give example code without knowing what module you are using!
Besides, doesn't the module manufacturer provide support...?
http://www.8052.com/forum/read/160143
i am using "WI2610wi"-wireless lan(UART to WiFi)..this module is provided by my institution and i am not aware of any support provided by the manufacturer...
So you have no datasheets or user manuals? I looked up the part number on Google, and this thread is the only relevant result. If you can't contact the manufacturer and get some more information, you will need to use a different Wi-Fi module.
I was looking for alternate Wi-Fi modules that had been used for Stellaris parts before and I think I found your module. It looks like somewhere a 'z' got recorded as a '2' when you looked at the part number. The WIZ610wi is the correct part number. You can find the documentation for it here.
i did as you said. but it giving an error "lmi_fs.c(95): error: #20: identifier "FS_ROOT" is undefined"
and when i am trying to execute the sampel program its saying
"linking....\rvmdk\enet_lwip.axf: error: L6047U: The size of this image (34668 bytes) exceeds the maximum allowed for this version of the linkerTarget not created"
iam using keil uVision, as i am not familiar "IAR Embedded Workbench"
gopi krishnaserror "lmi_fs.c(95): error: #20: identifier "FS_ROOT" is undefined"
So define it!
gopi krishnasThe size of this image (34668 bytes) exceeds the maximum allowed for this version of the linkerTarget not created"
You are using the free Evaluation (or "lite") version of Keil, aren't you?
The free version is "code-size limited"; that means that there is a limit on the maximum size of the code that it will generate - you have exceeded that limit!
You need to either re-think your project to work within the limits of the available tools, or re-think your tool choice according to your project requirements...
http://www.keil.com/demo/limits.asp
gopi krishnasiam using keil uVision, as i am not familiar "IAR Embedded Workbench"
IAR has a similar code-size limit.
I think IAR also do a time-limited free version - as the name suggests, this has no code-size limit, but expires after a certain time (30 days, I think).
Have you actually studied the documentation for the WIZ610wi module?
- Stand-alone typed 802.11b/g wireless LAN module- Ethernet to Wireless Bridging Enable wired network device to have wireless communication interface - Supports Serial Interface for "Serial to Wireless" application- Supports AP/Station/Gateway mode- 54Mbps data rate and Max.20Mbps Effective Data Transmission- Full-Featured Network Protocol Stack- Built-in Web server for configuration via standard web browser- Wireless antenna is not included / needs to be purchased separately if needed
The module includes the protocol stack! Therefore, you do not need to implement that on the microcontoller!!
sorry for the late replay. i have gone throught the document, but my department asked me to interface this wifi module to lm3s9b92 & they said it is a serial to wireless. i want to interface it with uart 1. i have gone through the sampel program (enet_lwip). there they enable the ethernet controller and port f.
so, similarly if i enable uart 1 using the uart interrupt handler and interface the sin & sout pins of wifi to the microcontroller u1tx, u1rx then is there any chance to communicate.
or what changes i should make to the sampel program . i should complete my project within 75 days, is that possible.
gopi krishnasmy department asked me to...
So your department must be under the impression that you should be capable of doing this. If you feel that it's beyond you, and you need further support, you should be discussing that with your department...
gopi krishnas i have gone through the sampel program (enet_lwip).
The clue is in the name: "enet" is short for "ethernet" - you are not doing an ethernet project, so much (most?) of that project is not going to be directly applicable.
If you want to use the UART, then you need to be looking at the UART documentation & examples, to gain an understanding of how the UART works, and how to use it.
But also, as previously mentioned, this module has the TCP/IP built-in in hardware - doesn't it?
Andy Neilas previously mentioned, this module has the TCP/IP built-in
Perchance you could "better" emphasize such - use of bold and TI Red. Oh - wait - you did just that! (your patience on high display)
The Wi-Fi module does have integrated TCP/IP. This means that much of the enet_lwip project is no longer relevant.
75 days should be more than enough time to complete this project. The difficulty of completion depends significantly on the complexity of the webserver application. If all you need is a terminal connection over Wi-Fi, you could be done much more quickly than if you needed a multipage website with images.
http://members.home.nl/bzijlstra/software/examples/wiz610wi.htm (particularly sections 4,6, and 9) has an example of using the WIZ610wi with an Arduino board in the BASIC language. It looks like the WIZ610wi just outputs the straight ASCII of the HTTP requests and responses. This example differs significantly from the enet_lwip example in that in addition to not using Ethernet and TCP/IP, it embeds the HTML directly in the file, instead of having in in part of a file system. Also, the Arduino example kind of cheats when displaying the webpage image, since the image is just a link to an externally hosted file.
You will need an external power supply for the WIZ610wi. The on board voltage regulator of the EK-LM3s9b92 is limited to 400 mA, and the Wi-Fi module can draw up to 479 mA.
Once you have your power supply, you should be able to modify uart_echo to bridge the connection between your PC terminal program and the WIZ610wi. Then you can start configuring the module. After you can connect it to your wireless network, either write your own HTTP server or you may be able to find one online.
Stellaris John75 days should be more than enough time to complete this project
It's not clear whether the 75 days were to be devoted entirely & exclusively to this project, or if the OP also has other tasks/studies/etc in this time?
Stellaris JohnThe difficulty of completion depends significantly on the complexity of the webserver
and, of course, on the competence & determination of the worker.
The OP needs to study, "research", and, thus, understand:
Which is just a restatement of: http://www.8052.com/forum/read/160143
Here's a tutorial on HTTP: http://www.jmarshall.com/easy/http/ - with links to other "Web Technology" tutorials...