PIC18F4510|ENC28J60 send data to mysql-server

General discussion on mikroC.
Post Reply
Author
Message
egoveedee
Posts: 9
Joined: 01 Sep 2008 16:54

PIC18F4510|ENC28J60 send data to mysql-server

#1 Post by egoveedee » 26 Jan 2009 15:41

I want to make a temperaturesensor connected to a mysql database with ethernetcable.

So, I choose a temperature-sensor(DS1820) connected to a PIC18F4510 and the pic is connected with the ENC28J60 with a SPI connection.

Is it possible to send periodicly(ex each second) a message to the databaseserver like this=> "192.168.1.30/index.php?dev_id=xxxxxxx&temp=xxxxxxxx"

There is running a phpscript to put the value's in the database.

?????????????????????????????????????????????????????????????????

Right now, I can see the temperature on a lcd and on the pic-webserver. So I only need to send the data to the database-server.

Thanks,
Thomas

codesmith
Posts: 26
Joined: 28 Jul 2008 19:49

#2 Post by codesmith » 28 Jan 2009 18:57

Hi,

If you are seeing it on your server, the only thing you need to do is write the PHP code to save it to the database...you already have the other communication going.

egoveedee
Posts: 9
Joined: 01 Sep 2008 16:54

#3 Post by egoveedee » 29 Jan 2009 00:03

hey,

I already have a php script on my database server(Intel core T2250), but the PIC(with enc28j60) must connect periodicly to this server and send the data(device_id and temperature).

I only need the code so my pic can send 2 GET-vars to my database server.
In a normal browser you can simple add value to put this "http://192.168.1.130/insert.php?dev_id=xxx&temp=xxx" in the browseradres. I want to know how can I fix this with a pic.

Thanks,
Thomas

ps: I've read that there is a small bug in the libary in v8.1.0. Can somebody post the exact link to the topic? Because I have v8.1.0... ANd how I can fix it.
Thanks for all!

deploser
Posts: 11
Joined: 24 Dec 2009 08:27

#4 Post by deploser » 26 Dec 2009 14:03

Hi, I want to send data from PIC to PHP script file over ethernet. I have investigated MikroC's ethernet library but I can't find anything about my problem. Thanks for your help.

Best regards
deploser

User avatar
anikolic
mikroElektronika team
Posts: 1775
Joined: 17 Aug 2009 16:51
Location: Belgrade
Contact:

#5 Post by anikolic » 28 Dec 2009 13:49

Hi,
Our current Ethernet library currently doesn't support TCP client implementation. I have answered to your similar question here: http://www.mikroe.com/forum/viewtopic.p ... 030#116030

Best regards,
Aleksandar
Web Department Manager

User avatar
srdjan
mikroElektronika team
Posts: 1552
Joined: 28 Dec 2005 12:47
Location: Serbia

Re:

#6 Post by srdjan » 21 Dec 2011 13:55

Hi,
anikolic wrote:Hi,
Our current Ethernet library currently doesn't support TCP client implementation. I have answered to your similar question here: http://www.mikroe.com/forum/viewtopic.p ... 030#116030

Best regards,
Aleksandar
It's here.
http://www.libstock.com/projects/view/1 ... et-library

Post Reply

Return to “mikroC General”