dpechman
Joined: 04 Dec 2007 Posts: 43
|
http callbacks - high or low level? |
Posted: Tue Feb 07, 2012 7:40 pm |
|
|
In the last 6 months I have tested the TCP/IP stack from ARP to TCP and have successful make lots of tests with each one and everything worked very well.
Now I have to choose a communication service between a 18F67J60 and a webserver php for a project that I am involved.
I am trying to communicate using HTTP passing to a webservice with a GET and some parameter parsed in JSON. Well, using this I need to parse this callbacks what consume a lot of processor but perfectly feasible.
Using JSON or JSON-RPC the device gain a high level protocol to exchange data to the world.
My second approach is change the JSON thing by RAW data that is much more light weight that any other process but my product loses all the "high level thing".
My board with 18f67J60 is now running ARP, ICMP, TCP, UDP, DNS Client and other services from my app like RTC, SD card, leds, display, Fram and RS485 port with my own protocol talking with other devices.
Still fast but process high level protocol in a pic micro seems madness sometimes, anyway the tests I have worked on show that its viable.
Any advice about wish approach do I have to try?
Last edited by dpechman on Tue Feb 07, 2012 8:00 pm; edited 2 times in total |
|