Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Shane

Pages: [1]
Hello Everyone,

I'm building a network of controllers for big building and I want to use 4 SBC66EC boards to exchange information over Ethernet. I'm doing this because there are already Ethernet cables running all across the building back to a router.

I have each board reading a cluster of sensors and controlling a cluster of actuators. This is quite straight forward.

Now I want to control all 4 boards through 1 board. The master board will send my inputs and a few sensor data to the other 3 boards and they will send the sensor readings and status of the actuators back to the master to display on a webpage.

I tried to implement this by getting the boards to send webserver HTTP commands with Java script then I realised they will not communicate if the webpages are not open.  :oops:

Can someone please guide me in the right direction to set up the communication using Ethernet? What protocol shall I use and how do I get started?

Thanks!  :mrgreen:

SBC66EC & SBC66ECL / Download Flash Data via Webpage
« on: August 24, 2015, 05:54:15 PM »

I have reserved a few blocks of the SPI Flash for data logging and I am wondering if I can download the data as a .txt file through the webpages. Any suggestions on where to start?


SBC66EC & SBC66ECL / Data logging SPI Flash
« on: February 23, 2014, 04:39:47 PM »
I want to log some sensor data on the PIC and I am thinking of using the SPI flash because the library is already there (nz_xFlash.h, spiFlashWinBound.c).
I am aware that the webserve is hosted on the SPI flash and I don't want to accidentally corrupt it and other programs, is it possible to reserve a 20 KB block of memory maybe at the end of the memory address, and what would you recommend for the address range of that block?

General Questions / Re: Netcruzer USB Terminal for Android
« on: February 18, 2014, 02:39:06 PM »
Pretty much everything the windows version does; read debug data and send commands.

SBC66EC & SBC66ECL / Re: DHT22 and DHT11 Sensor Library
« on: February 18, 2014, 02:37:24 PM »
hey, the PIC can read 2 sensors now but there are a few problems. When the board is reset it sometimes won't start reading data until a sensor was disconnected and reconnected, I think this might have something to do with the pin's threshold for interrupt, maybe having more sensors = less power to share around?

And when I moved on to using 4 sensors I have to disconnect and reconnect a sensor, sometimes more than 1 to get the data to start flowing in. And the number of times each sensor reads over time is different and irregular, e.g. pin Y7 will read around once every 2 seconds and pin Y2 might take a minute to read once. I think this might have something to do with how long it takes to read and output data, and power shortage should not be a problem because I'm using an external source.

SBC66EC & SBC66ECL / Re: DHT22 and DHT11 Sensor Library
« on: February 16, 2014, 11:40:42 AM »
Hi, I want to read up to 4 sensors simultaneously. Alternatively, I'm going to try to read them one at a time within a 10 second window. Attached is my modified main.c file in the "netcruzer_v203\src\projects\webserver\demos\Sens_DHT22_Demo" directory and modified dhtSens_task() function in nz_dhtsensor.c

General Questions / Netcruzer USB Terminal for Android
« on: February 16, 2014, 11:34:32 AM »
Hi, has anyone made or is working on a USB terminal for an Android device?

SBC66EC & SBC66ECL / Re: DHT22 and DHT11 Sensor Library
« on: February 13, 2014, 11:55:21 AM »
Hi, I'm new to this and I want to add another sensor, RHT02, works the same as the DHT22 to the board. What is the best way to do this? I have created another variable "objRht02" of type DHT_SENSOR_INFO, and fbrTcbRHT02;I created the fiber, initialized the sensor using pin Y7, passed it into dhtSens_task(), and tried to store it in nzGlobals.userRam[4-7]. But all I'm getting is rubbish information for output.

Pages: [1]