Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Interfacing your web browser with a 47j53A board + enc28j60 module
18-09-2014, 03:38 PM,
#1
Interfacing your web browser with a 47j53A board + enc28j60 module
Hello everybody,
I created a new library, named ethernet, to use an enc28j60 module and communicate between your PC web browser and a 47j53-A board.
The lib is located in p8/include/pinguino/libraries/ethernet, only IDE V11.
A first example is found in 09.Interfacing/ethernet/ethernet_web_temp.pde
and the second one in the wiki> category examples> 09. Interfacing> Ethernet IO-web server.
Four functions are documented in category librairies> Ethernet Library.
You need an enc28j60 module easy to find on ebay, a DS18B20 + another analog sensor (for me it is a pressure sensor MPX4115AP powered by 5V) + 1 to 4 led(s) + 1 to 2 button(s).
Tell me in case of troubles or need of more information.
André
Reply
19-09-2015, 06:43 PM, (This post was last modified: 19-09-2015, 06:57 PM by B4lfiz4r.)
#2
RE: Interfacing your web browser with a 47j53A board + enc28j60 module
It does not compile for 26J50.
Take a look:
Code:
[OUT] Compiling: C:\pinguino-11\user\examples.Communication\Ethernet\ethernet_web_temp.pde
[OUT] Board: Pinguino 26J50
[OUT] Proc: 18f26j50
[OUT] Arch: 8
[OUT] Bootloader: v4
[DEBUG] Starting 'verify' from 'qtgui.pinguino_api.pinguino_tools'
[DEBUG] Starting 'preprocess' from 'qtgui.pinguino_api.pinguino_tools'
[DEBUG] Starting 'remove_comments' from 'qtgui.pinguino_api.pinguino_tools'
[DEBUG] Time spent for 'remove_comments': 0.00 s
[DEBUG] Ending 'remove_comments'
[DEBUG] Starting 'remove_comments' from 'qtgui.pinguino_api.pinguino_tools'
[DEBUG] Time spent for 'remove_comments': 0.00 s
[DEBUG] Ending 'remove_comments'
[DEBUG] Starting 'get_regobject_libinstructions' from 'qtgui.pinguino_api.pinguino_tools'
[DEBUG] Time spent for 'get_regobject_libinstructions': 0.00 s
[DEBUG] Ending 'get_regobject_libinstructions'
[DEBUG] Starting 'replace_word' from 'qtgui.pinguino_api.pinguino_tools'
[DEBUG] Time spent for 'replace_word': 0.17 s
[DEBUG] Ending 'replace_word'
[DEBUG] Time spent for 'preprocess': 0.21 s
[DEBUG] Ending 'preprocess'
[DEBUG] Starting 'compile' from 'qtgui.pinguino_api.pinguino_tools'
[DEBUG] Time spent for 'compile': 0.32 s
[DEBUG] Ending 'compile'
[DEBUG] Time spent for 'verify': 0.55 s
[DEBUG] Ending 'verify'
[OUT] ERROR: 58:  conflict with previous definition of 'SPI_init' for attribute 'type'
[OUT] 41:  token -> ',' ; column 33
[OUT] 45:  token -> ',' ; column 37
[OUT] 39:  too few parameters
[OUT] 56:  too few parameters
[OUT] 58:  too few parameters
[OUT] 72:  token -> ',' ; column 41
[OUT] 67:  too few parameters
[OUT] 84:  too few parameters
[OUT] 89:  too few parameters
[OUT] 167:  too few parameters
[OUT] 20:  Duplicate symbol 'wwwport', symbol IGNORED
[OUT] 20:  previously defined here
[OUT] 23:  Duplicate symbol 'info_hdr_len', symbol IGNORED
[OUT] 23:  previously defined here
[OUT] 24:  Duplicate symbol 'info_data_len', symbol IGNORED
[OUT] 24:  previously defined here
[OUT] 25:  Duplicate symbol 'seqnum', symbol IGNORED
[OUT] 25:  previously defined here
[OUT] 9:  missing terminating > character
[OUT] 91:  function 'init_ip_arp_udp_tcp' already has body
[OUT] 105:  function 'eth_type_is_arp_and_my_ip' already has body
[OUT] 124:  function 'eth_type_is_ip_and_my_ip' already has body
[OUT] 148:  function 'make_eth' already has body
[OUT] 161:  function 'make_eth_ip_new' already has body
[OUT] 177:  function 'fill_ip_hdr_checksum' already has body
[OUT] 191:  Duplicate symbol 'ip_identifier', symbol IGNORED
[OUT] 191:  previously defined here
[OUT] 197:  function 'make_ip_tcp_new' already has body
[OUT] 237:  function 'make_ip' already has body
[OUT] 248:  function 'step_seq' already has body
[OUT] 340:  function 'make_tcphead' already has body
[OUT] 366:  function 'make_arp_answer_from_request' already has body
[OUT] 389:  function 'make_echo_reply_from_request' already has body
[OUT] 405:  function 'make_udp_reply_from_request' already has body
[OUT] 437:  function 'make_tcp_synack_from_syn' already has body
[OUT] 459:  function 'get_tcp_data_pointer' already has body
[OUT] 469:  function 'init_len_info' already has body
[OUT] 500:  function 'fill_tcp_data' already has body
[OUT] 548:  function 'make_tcp_ack_with_data_noflags' already has body
[OUT] 601:  function 'make_tcp_ack_from_any' already has body
[OUT] 645:  function 'www_server_reply' already has body
[OUT] 659:  function 'make_arp_request' already has body
[OUT] 714:  function 'arp_packet_is_myreply_arp' already has body
[OUT] 735:  function 'tcp_client_send_packet' already has body
[OUT] 829:  function 'tcp_get_dlength' already has body
[OUT] 846:  function 'packetloop_icmp_tcp' already has body
[OUT] 10:  function 'eth_init' already has body
[OUT]
>>>

It also can't compile for 47j53 (but I don't have this board, so it doesnt matter)
Code:
[OUT] Compiling: C:\pinguino-11\user\examples.Communication\Ethernet\ethernet_web_temp.pde

[OUT] Board: Pinguino 47J53
[OUT] Proc: 18f47j53
[OUT] Arch: 8
[OUT] Bootloader: v4
[DEBUG] Starting 'verify' from 'qtgui.pinguino_api.pinguino_tools'
[DEBUG] Starting 'preprocess' from 'qtgui.pinguino_api.pinguino_tools'
[DEBUG] Starting 'remove_comments' from 'qtgui.pinguino_api.pinguino_tools'
[DEBUG] Time spent for 'remove_comments': 0.00 s
[DEBUG] Ending 'remove_comments'
[DEBUG] Starting 'remove_comments' from 'qtgui.pinguino_api.pinguino_tools'
[DEBUG] Time spent for 'remove_comments': 0.00 s
[DEBUG] Ending 'remove_comments'
[DEBUG] Starting 'get_regobject_libinstructions' from 'qtgui.pinguino_api.pinguino_tools'
[DEBUG] Time spent for 'get_regobject_libinstructions': 0.00 s
[DEBUG] Ending 'get_regobject_libinstructions'
[DEBUG] Starting 'replace_word' from 'qtgui.pinguino_api.pinguino_tools'
[DEBUG] Time spent for 'replace_word': 0.16 s
[DEBUG] Ending 'replace_word'
[DEBUG] Time spent for 'preprocess': 0.21 s
[DEBUG] Ending 'preprocess'
[DEBUG] Starting 'compile' from 'qtgui.pinguino_api.pinguino_tools'
[DEBUG] Time spent for 'compile': 0.23 s
[DEBUG] Ending 'compile'
[DEBUG] Time spent for 'verify': 0.46 s
[DEBUG] Ending 'verify'
[OUT] ERROR: 58: conflict with previous definition of 'SPI_init' for attribute 'type'
[OUT] 41: token -> ',' ; column 33
[OUT] 45: token -> ',' ; column 37
[OUT] 39: too few parameters
[OUT] 56: too few parameters
[OUT] 58: too few parameters
[OUT] 72: token -> ',' ; column 41
[OUT] 67: too few parameters
[OUT] 84: too few parameters
[OUT] 89: too few parameters
[OUT] 167: too few parameters
[OUT] 20: Duplicate symbol 'wwwport', symbol IGNORED
[OUT] 20: previously defined here
[OUT] 23: Duplicate symbol 'info_hdr_len', symbol IGNORED
[OUT] 23: previously defined here
[OUT] 24: Duplicate symbol 'info_data_len', symbol IGNORED
[OUT] 24: previously defined here
[OUT] 25: Duplicate symbol 'seqnum', symbol IGNORED
[OUT] 25: previously defined here
[OUT] 9: missing terminating > character
[OUT] 91: function 'init_ip_arp_udp_tcp' already has body
[OUT] 105: function 'eth_type_is_arp_and_my_ip' already has body
[OUT] 124: function 'eth_type_is_ip_and_my_ip' already has body
[OUT] 148: function 'make_eth' already has body
[OUT] 161: function 'make_eth_ip_new' already has body
[OUT] 177: function 'fill_ip_hdr_checksum' already has body
[OUT] 191: Duplicate symbol 'ip_identifier', symbol IGNORED
[OUT] 191: previously defined here
[OUT] 197: function 'make_ip_tcp_new' already has body
[OUT] 237: function 'make_ip' already has body
[OUT] 248: function 'step_seq' already has body
[OUT] 340: function 'make_tcphead' already has body
[OUT] 366: function 'make_arp_answer_from_request' already has body
[OUT] 389: function 'make_echo_reply_from_request' already has body
[OUT] 405: function 'make_udp_reply_from_request' already has body
[OUT] 437: function 'make_tcp_synack_from_syn' already has body
[OUT] 459: function 'get_tcp_data_pointer' already has body
[OUT] 469: function 'init_len_info' already has body
[OUT] 500: function 'fill_tcp_data' already has body
[OUT] 548: function 'make_tcp_ack_with_data_noflags' already has body
[OUT] 601: function 'make_tcp_ack_from_any' already has body
[OUT] 645: function 'www_server_reply' already has body
[OUT] 659: function 'make_arp_request' already has body
[OUT] 714: function 'arp_packet_is_myreply_arp' already has body
[OUT] 735: function 'tcp_client_send_packet' already has body
[OUT] 829: function 'tcp_get_dlength' already has body
[OUT] 846: function 'packetloop_icmp_tcp' already has body
[OUT] 10: function 'eth_init' already has body
[OUT]
>>> 
How to fix the compile errors?
Will it compile for other boards?
Can I run it without the sensor?
Where is the documentation? I have found only the code so far.

PS: windows 7, PINGUINO IDE 11.0-beta.3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)