CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

http callbacks - high or low level?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
dpechman



Joined: 04 Dec 2007
Posts: 43

View user's profile Send private message Visit poster's website

http callbacks - high or low level?
PostPosted: Tue Feb 07, 2012 7:40 pm     Reply with quote

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
dpechman



Joined: 04 Dec 2007
Posts: 43

View user's profile Send private message Visit poster's website

PostPosted: Tue Feb 07, 2012 7:51 pm     Reply with quote

by RAW data I mean serialize the binary memory map I want to sincronize between pic and webservice and encode using something like bin2hex to send with httpclient.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group