This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I have baught tm4c129 board. I have programed enet_lwip (sample code) in it. I has port number 80.
From my web browser i tested this code is working fine.Then i tried to see respond on hyperterminal by selecting tcp/ip->portno(80)->ipaddr.
for first 8sec it shows status as connected then it disconnect automatically ,i dont know why. And it is not showing data passed from controller to PC via ethernet on hyperterminal.
Why it is not showing data on hyperterminal.
Dhanush,
I don't think you will be able to use Hyperterminal with the HTTP server in TivaWare. The server assumes that you will send it fill TCP packets containing complete HTTP requests and I don't think it's possible to send these using a terminal like Hyperterminal, Putty or TeraTerm. These are really intended for use with Telnet servers which use a different protocol and expect to receive data in small packets (like individual keystrokes, for example).
If you want to see the traffic sent between your PC and the HTTP server, I would recommend you download the free Wireshark tool which allows you to capture packets flowing across your Ethernet. I use it here very often and it's extremely useful.
Dave Wilson
I want to send simple TCP packet from TM4c129x controller on ehernet, how to send it.Which function should i use.
I want to mae serial to ehernet converter. Please help me.
Dave Wilson,
As i want to make serial to ethernet converter. I have 3 sample codes.
1.enet_io
2.enet_lwip
3.enet_uip
which code should i use. I want to use simple tcp/ip and want to see data on hyperterminal.
Please tell me.
None of these examples shows what you need. If you want to produce a Telnet client (which would allow you to use a serial terminal to connect to the board and type characters) the best place to look would be in the ser2enet example which is included as part of the rdk-s2e StellarisWare software release. This doesn't run on dk-tm4c129 without modifications but it does include a telnet client that you could port to the board without too much difficult. It's also a rather complex example so you will need to spend some time studying it (this will not be a quick job!). The following resources may also be helpful:
1. The lwIP TCP/IP stack - TCP function documentation.
2. The TCP Guide - a great introduction to TCP and some of its protocols.
3. The Telnet protocol specification.
Good luck!
Dave Wilson,
Thank you sir for your answer.I have study that part . Now i left that previous part and i am modifying enet_uip code , from uart interrupt i am taking data into buffer and i am putting that data into" httpd_appcal()" this function it is showing data correctly on browser but it require to refresh the page. To see data continuously on page without refreshing for that What should i do??
That's really a question for a web development expert rather than something specific to Tiva microcontrollers! To update data continuously, you need to do one of three things:
1. You could add a refresh tag in the header of your HTML page to cause the browser to automatically reload it every few seconds or,
2. You could add some JavaScript code to your HTML to request the data that updates frequently then rewrite the section of the page containing it each time you receive more data. Research "AJAX" and look at the site sent by the enet_io example for an indication of how to do this.
3. You could serve up a Java applet that creates a connection back to the board and use that to receive and display data in real time.
I'm no expert in any of these fields, though - sorry!
Daer sir,
i have successfully completed the serial to ehernet conversion, but i am stuck in eternet to serial conversion.
I am sending data via hjyperterminal(tcp/ip).The isssue i am facing is that, i am unable to find data in payload pointer.What contents it has in payload. I have tried to print payload on hyperterminal but it contains many things. how to find my data in payload.??
Also can you tell me where is the actual data stored??Am i correct about the payload pointer.
Thanks and regards
Dhanush
Dear sir,
I want to write my data in" user reg1 " ,but when i used function ROM_FlashUserSet(); it is not working . It is not showing data which i am writing in it. please tell me how to write data in user reg1. I have tm4c129x kit.
Consider my this and above question also.Waiting for your response.
Thanks and regards
Dhanush
I'm afraid I can't answer your first question about finding your payload until you tell me what you are trying to parse. In a network protocol, there are different layers within packets - are you looking at a raw Ethernet frame as written by the Ethernet MAC hardware into the buffer it is provided or are you looking at a packet pointer provided by your TCP/IP stack? Either way, you need to understand the protocol you are working with and parse the packet knowing what type of packet you are dealing with. The TCP/IP handbook link I provided earlier should provide the information you need to parse basic packets and the TELNET RFC will tell you how it's protocol packets are constructed.
As regards writing the flash user registers, please see the documentation for FlashUserSet() and FlashUserSave() in the Peripheral Driver Library. These functions write both user register 0 and user register 1 but you can use this as an example of how to write only user register 1. Note that you can only save the value in a flash user register once - it's write once, read many and once it's committed (saved) you can't write it again without erasing the whole device. You will also find more information on this in the "Flash Memory" section of the "Internal Memory" chapter of your device's datasheet.
Dear Dave,
I have been searching for this forum for long time. i am using lm 3s9b96 stellaris board ( as my last product was on cortex m3 i have to windup this task. so kindly answer me)
i am working on usb and ethernet bootloader in which i am trying to load boot_eth (made compatible to both usb and ethernet) at different location say 0x30000 and i am loading my application which supports both usb and ethernet updaters at 0x0000 location. problem is that stellaris board is unable to place the USB onto the bus. and not getting enumerated.
and also when i am loading boot_eth at 0x0000 location with boot_demo_eth at 0x1800 location ,my application is not running properly (which is linked at app_start_addressi.e 0x1800) after uploading through ethernet via lm flash programmer . and it is woking properly when application is linked to 0x0000. so i am trying to load bootlader at different location and my application is linked at 0x0000
can you clarify me why usb is not getting enumerated when i am loading boot_eth at 0x30000 and application start address at 0x00000.
why my appication linked at 0x1800 is not running properly (even after linking through script file) after programmed thru lmflah programmer (via ethernet)
kindly reply this i am breaking head since so many days...
thanks in advace kindly reply this
Poster you address was last seen/read here on or about, 14 Mar 2014 - thus his response (seems) unlikely. You can glean such, "poster specific" info by "mousing over" poster's name - and then choosing, "recent activity." (which - unfortunately in this case - reveals the 21 month silence...)