Hello,
I'm at a planning stage for a remote data logger and have a question. The project will be a Raspberry Pi attached to the programming inputs of a Picaxe, 20M2 or 20X2. I will be using Pi UART ttyS0 connected through an inverter to Picaxe programming pins. That's all tested and working. On the Picaxe side I plan on recreating the AXE 110 type logger. The AXE110 uses separate pins for programming and data retrieval, I would like to use the programming pins to retrieve data. Just use SERTXD from the Picaxe and capture the data on the PI side and maybe have a message to signal the end of data. My plan is to use the SERRXD command to tell the Picaxe when to send the data but I'm not sure if it's the best option, my concern is that I might lock up the Picaxe and not be able to program it. I'm thinking if I'm careful I can use the disconnect command and the SERRXD timeout and run a tight loop. The other option I'm considering is to use a PI GPIO pin to trigger data sending from the Pi, maybe even use an interrupt or just run a tight loop. Is the SERRXD only option reliable enough or should I go with the additional complexity of a GPIO pin?
None of this is terribly critical, the Picaxe/Pi combination will be in the garage, only a 15 meter walk...but I'm a very lazy man
Thanks in advance.
I'm at a planning stage for a remote data logger and have a question. The project will be a Raspberry Pi attached to the programming inputs of a Picaxe, 20M2 or 20X2. I will be using Pi UART ttyS0 connected through an inverter to Picaxe programming pins. That's all tested and working. On the Picaxe side I plan on recreating the AXE 110 type logger. The AXE110 uses separate pins for programming and data retrieval, I would like to use the programming pins to retrieve data. Just use SERTXD from the Picaxe and capture the data on the PI side and maybe have a message to signal the end of data. My plan is to use the SERRXD command to tell the Picaxe when to send the data but I'm not sure if it's the best option, my concern is that I might lock up the Picaxe and not be able to program it. I'm thinking if I'm careful I can use the disconnect command and the SERRXD timeout and run a tight loop. The other option I'm considering is to use a PI GPIO pin to trigger data sending from the Pi, maybe even use an interrupt or just run a tight loop. Is the SERRXD only option reliable enough or should I go with the additional complexity of a GPIO pin?
None of this is terribly critical, the Picaxe/Pi combination will be in the garage, only a 15 meter walk...but I'm a very lazy man
Thanks in advance.