Jump to content

CD108

Members
  • Gesamte Inhalte

    23
  • Benutzer seit

  • Letzter Besuch

CD108's Achievements

Newbie

Newbie (1/14)

0

Reputation in der Community

  1. Callbacks are set to between 10 and 60 second intervals over 8 bricklets so less than 1/sec. High speed measurement isn't required for the application. I call all 3 connections on a single thread with each different type of bricklet directed to common callbacks, however it doesn't appear to be the problem - sometimes 1 of the bricks freezes and the others continue to operate. I'll try separating them out to see if i still get the problem
  2. One application which connects to all 3 using different ipconnection objects (all running at the same time). Access point shows the devices as not connected when they freeze. Devices are no longer pingable. Devices are not near any other electronics. I have not tried connecting via usb as they are powered through the usb ports. Disconnecting would result in a power cycle. It looks like either the brick or wifi are hanging and never recovering
  3. I have 3 master bricks with wifi extensions measuring temperatures etc around my house. Lately I've noticed that the bricks are freezing and becoming unreachable. The only thing I can do to connect is reset the master bricks. The bricks are connected to dedicated wifi and are set to use static ips. Everything is using the latest firmware. I am using c# and connecting using the 'rugged' approach i.e. using enumerate callbacks. Failures are not all 3 at once - one brick freezes then the others at random times. Sometimes they run for days, but lately they have only been working for hours. Any ideas?
  4. As i mentioned before, this is an inductive load problem. The brick has crashed and can't be reset remotely.
  5. @Rafael Here is a link to the basic theory http://www.kpsec.freeuk.com/vdivider.htm You are correct - it is a voltage divider that will move the voltage between the high & low voltages of the digital pin to create a pulse. I have also used this to detect the on/off status of various appliances using their power on LED.
  6. Sure. I did this with a LDR and a few resistors on an arduino. With the TF hardware you could set a threshold value on the analogue bricklet and get the callback to increment a counter in your software. Should work the same way. Google the theory for setting up the resistors. You are essentially creating a light dependant potentiometer and then measuring the voltage changes. It is of course better to use some electronics to create a voltage pulse that the digital i/o can process as this will be considerably cheaper
  7. It lives on a small mini itx atom based server with a cheap laptop HD. Over a year now reading/writing approx 50 times/sec to the SQL database with no problems. It also hosts a website where I can display the data however i choose - i have a full data historian which took me about a day to write in asp.net (c#). A small program handles all the incoming data and processes it based on a customisable rule set - Also administered by the website. The program can send/receive http commands so anything connected via LAN(or WAN) can be added to the sensor network
  8. Log to a SQL Server. I write all the sensors as the values come in to a table for viewing live values, then log each sensor value to a log table every minute. My sensors have been logging for months
  9. I've done something similar with a grey water supply to my house. Works very well! Just one tip - when using the dual relay, put a varistor (or resistor/capacitor pair) in parallel with the pump to stop voltage spikes. These can interfere with the tf hardware and cause the master brick to stop responding. Not a problem with the hardware, just an inductance problem when using motors. Googling will advise you on the varistor you need. I also advise using the monoflop time setting incase you lose comms. In your case it might be better to use the normally closed contact to connect the pump so that if the hardware/comms fail it will call the pump to run. Just update your code to call the relay on (ie stop pump) when the level is low. This will hopefully keep you dry!
  10. Ok, In about 2 simple changes to my code i now have this working perfectly! Thanks again for the quick reply!
  11. OK, i have got this to work using static void Temp1CB(BrickletTemperature sender, short temperature) { string uid; string connecteduid; char position; byte[] hardwareversion; byte[] firmwareversion; int deviceidentifier; sender.GetIdentity(out uid,out connecteduid,out position,out hardwareversion,out firmwareversion,out deviceidentifier); //code to update database with uid and temperature } Is there simpler way to get the uid without all the other information? As you pointed out there doesn't seem to be a sender.uid Thanks for the quick help!
  12. Guys, I'm looking for a way to be able to add bricklets without coding for each one individually. For example i want to add a database row in a table that allows me to put in the bricklet info and have the value updated in that row. Currently i have to add a callback in the code for each sensor which is a pain when i want to add more sensors. Is there an easy way to do this so that the sensor network can be expanded without changing the code in the application?
  13. Guys, when can we expect the Arduino like API for modifying brick firmware? Can you give us some details of what is possible, such as communication between bricks/bricklets/computer. For example will it be possible for a sensor to trigger a relay across wifi extensions without the need for a computer to control it? This would be really useful in my home automation project
  14. Great idea guys, something with function blocks would be good for quickly creating projects. Unfortunately I'm not able to write java, but would love to see a development platform like this. I think it would open the Tinkerforge products to more people who aren't comfortable with coding. As with most products, the more people who own them, the better the development
  15. CD108

    Software Reset

    Hey guys, Is it possible to do a software reset on the master bricks? This would be useful for a chibi master to search for new slaves. Maybe there is a way to do this already? Thanks
×
×
  • Neu erstellen...