Let me see if I understand what you want to do. You want to have an Arduino control the HASB, perdiodically turning it on and getting a pressure reading from it to the Arduino. Then, depending on the pressure read, leave it on and have it send data to a logger (logomatic v2). I’ll assume you have some way to control power to the HASB and logger (relay, FET, ???) so 2 possibilities come to mind.
One way is to have the Arduino take all the data from the HASB and relay that via a seperate set of serial data lines (Tx, Rx) to the logger. That is, the connection from the HASB to the logger is via the Arduino and it’s software. That way the Arduino only sends the logger the data when the Arduino has decided it’s time to do so. The potential drawback is that the Arduino then needs 3 sets of serial lines; one set (already on the Arduino) to go to the USB (via external FTDI), one to go the the HASB and another to go to the logger. Since you need to have this latter set to setup and control the logger anyway, perhaps that’s not an extra issue, at least as far as connections and wiring go. There might be a resource issue though, as I don’t recall what the data rate for the HASB is and so I can’t say how well the Arduino will handle trying to buffer that data stream and then relay it to the logger.
The other way I see is to have the HASB connect directly to the logger and then have the Arduino tell the logger when to start logging data and tell the HASB when to send that data. There are 2 obstacles to overcome to do this.
First you need to change the HASB’s firmware. What I see on the HASB are other connectors that could have the data lines on them. In fact, if the schematic is correct, the same HASB serial data lines (Tx, Rx) that you use to have the Arduino communicate with the HASB are on 3 other connectors (in particular JP4 and J5, “Other Din/Dout”, pins 3/4). But there’s a MUX controlling which connector gets those data lines and only one connector can get them at any one time (ie - either the Arduino or the logger but not both). What you’d have to do is alter the HASB firmware to, upon a (?new?) command from the Arduino, have the MUX switch the data lines from the “Arduino connector” over to the connector that would be connected to the logger. At this point you’d lose Arduino control over the HASB (though I guess you could always shut it off and back on and regain control upon the reboot).
The second obstacle is that you’d have to modify the logger firmware to take the HASB data in from it’s other serial port. There are 2 serial ports, though one seems dedicated to reprogramming the logger. Now it may be there’s a slightly easier way (no reprogramming of the logger needed), but I’ve not thought it all the way through yet. You could have those “switched” data lines from the HASB connected to the same data lines/wires/connector used by the Arduino to communcate with the logger. Prior to commanding the MUX to switch, those lines to the HASB are just floating wires, no real connection to anything in the HASB. Thus the Arduino is free to use them to control the logger as you desire. Once you have the HASB MUX switch over to “logger output mode”, you’d have to have the Arduino cease all communication with the logger and tri-state it’s data lines to the logger. Now the HASB is free to use those data lines. Since I’ll opine you’d be using a software UART and GP I/O lines to communicate with the logger, this should be possible.
Since changing the HASB firmware would be a PITA, I’d really look into option 1. It may be that in flight, since you’re not using the hardware UART on the Arduino to communicate with the USB port, that it and it’s data lines might be shared with the logger or HASB and thus relieve the Arduino software of some of it’s burden when trying to buffer and relay the HASB data to the logger. Indeed IIRC the serial lines called out on the Arduino have buffering resistors in them for just this purpose. Which I think was your original problem, trying to use those lines and the hardware UART simultaneously for communication over the USB and to the logger. Did you ever resolve that ?
http://www.sparkfun.com/datasheets/Sensors/HAS-v13.pdf
http://www.sparkfun.com/datasheets/Widg … ic-v26.pdf