grim_reaper
Senior Member
Good morning.
I'm looking for a bit of advice, or hopefully someone's experience, of using a PICAXE for nothing more than tying several serial data streams together. Background information; I have several small PICAXE systems, using various chips, which monitor temperatures, switches, etc. One, for instance, monitors my aquarium temperatures and displays locally to an OLED display, another is connected to 3 PIR's in my workshop and triggers a sounder when an intruder (unauthorised child!) enters.
My most recent project has been connecting the aquarium system to my ethernet network, which works fine; it simply streams out some bytes every 10 seconds using SEROUT at T19200_16 to a cheap Taiwanese RS232 to TCP converter [quite chuffed with it!].
What I want to do now is to start integrating all the other 'sub-systems' together. Taking the workshop as a prime example - there are 3 PICAXE's, all outputting serial data (into thin air ATM), which I want to combine. This is the idea;
Obviously I plan on using the HSERIN/OUT for the ethernet side, to take advantage of the speed. The other connections will be 'standard' SERIN/OUT. The 20X2 will basically wait for inputs from all the subsystems, maybe looping through each input in sequence(?) then store any received data somewhere in RAM. At the end of the loop, the data would then be passed out to the ethernet network. Commands from the network would then be fed back into the subsystems in reverse fashion. So, my questions are...
Is this feasible? Can the 20X2 cope with checking up to 10 legs for serial inputs without missing anything?
Is there a sensible way to achieve this with interrupts?
Would I be better off using the multi-drop serial methods as described in this thread? I.e. using a smaller chip (08M2) to join a serial bus to the ethernet adapter?
Sorry if all that sounds a bit garbled and not well-thought-through, but I want to get a handle on whether it's a good idea before I start spending precious time on re-networking everything!
Thanks.
I'm looking for a bit of advice, or hopefully someone's experience, of using a PICAXE for nothing more than tying several serial data streams together. Background information; I have several small PICAXE systems, using various chips, which monitor temperatures, switches, etc. One, for instance, monitors my aquarium temperatures and displays locally to an OLED display, another is connected to 3 PIR's in my workshop and triggers a sounder when an intruder (unauthorised child!) enters.
My most recent project has been connecting the aquarium system to my ethernet network, which works fine; it simply streams out some bytes every 10 seconds using SEROUT at T19200_16 to a cheap Taiwanese RS232 to TCP converter [quite chuffed with it!].
What I want to do now is to start integrating all the other 'sub-systems' together. Taking the workshop as a prime example - there are 3 PICAXE's, all outputting serial data (into thin air ATM), which I want to combine. This is the idea;
Obviously I plan on using the HSERIN/OUT for the ethernet side, to take advantage of the speed. The other connections will be 'standard' SERIN/OUT. The 20X2 will basically wait for inputs from all the subsystems, maybe looping through each input in sequence(?) then store any received data somewhere in RAM. At the end of the loop, the data would then be passed out to the ethernet network. Commands from the network would then be fed back into the subsystems in reverse fashion. So, my questions are...
Is this feasible? Can the 20X2 cope with checking up to 10 legs for serial inputs without missing anything?
Is there a sensible way to achieve this with interrupts?
Would I be better off using the multi-drop serial methods as described in this thread? I.e. using a smaller chip (08M2) to join a serial bus to the ethernet adapter?
Sorry if all that sounds a bit garbled and not well-thought-through, but I want to get a handle on whether it's a good idea before I start spending precious time on re-networking everything!
Thanks.