Home
SANDMAN Power Management User Manual
Contents
1. 25 Appendix Deere 26 SANDMAN User Manual Rev Release Notes Te o Subile Sandman UserManual o o o Type mama 1 1 Document number UM300 1 Revision Index Date Name Status Comments SANDMAN User Manual Rev IMPORTANT DISCLAIMERS This document and the use of any information contained therein is subject to the acceptance of the Ryan Mechatronics terms and conditions They can be downloaded from www ryanmechatronics com Ryan Mechatronics LLC makes no warranties based on the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice Ryan Mechatronics LLC assumes no liability for damages or otherwise due to use of the information in this document or application of any device described in this document Ryan Mechatronics LLC stresses end user compliance with all applicable laws and regulations when using devices of this nature Use by an end user in violation of any applicable laws is automatic basis for termination of warranty technical support and future sales Ryan Mechatronics LLC reserves all rights to this document and the information contained herein Reproduction use or disclosure to third parties without express permission is strictly prohibited Copyright 2009 2013 Ryan Mec
2. 17 514 SET ALARM ID Ea NS 18 515 PETN ID OXO fee 18 5 1 6 STORE DATA ID 0x05 kanin 19 5 1 7 GET DATA ID 006 mI 19 5 1 8 GOTOSLEEP ID 0x07 kk den 20 5 1 EASY SLEEP ID 003 20 6 Output Message Details RNC 21 6 1 Output Messages crien n aAa 21 6 1 1 PING ID 0x00 T 22 SANDMAN User Manual Rev ON 6 1 2 RESERVED ID 22 6 1 3 UNIT TME ID vr 22 p 14 RESERVED ID 003 bb EE 22 6 1 5 UNIT ALARM ID 0x04 23 6 1 6 RESERVED ID 005 das CE 23 0 1 7 GET DATA BIO dy cen 23 ole RESERVED ID 24 D L9 RESERVED ID 0X08 Larssen E Er E S E EEG NENS 24 Software 25 Software Release
3. CONAITOMES SANDMAN Power Management User Manual SANDMAN User Manual Rev Table of Contents Contents NEED 5 1 1 ee HR 5 111 User 5 1 2 Theory of Operation e M M 5 2 Specifications and eee 6 2 1 Performance Specifications TETTE OO mmm 6 2 2 Electrical Characteristies EXER Eni A Ra A AEs 6 2 3 SONE se 00 SX 6 24 Mechanical and Pin 7 2 4 4 EL nnns nnn nenne 7 242 Recommended Connectors 7 E EMEN ok ae 8 3 Hardware MEAN 10 3 1 ao He E E EEEN mastret 10 3 1 1 Input Power sinere a a di Kee a E n pea Kn Ra Rn RR E Kx E a e E RR E i 10 3 1 2 Output P sas EE EN 10 3 2 Communication 1 10 32 EE uto Pre 10 322 T m ur umo Rer UTD ROO NIIT 10 323 Pin 3 and Pin 9 Ground
4. Assignments y o Pin Description Connection Required for Typical Operation 3 3V level LIN 3 3V level 3 mo ma ISP Hold low upon power for reprogramming of unit not standard 5001 ey 002 rpm 5 5 SDADIOS m 8 sous 1 mm 9 GND NA Ground redundant to pin 3 SANDMAN User Manual Rev 3 Hardware Integration Presented in this section are selected hardware interface comments to help ease integration of the unit in the end user system 3 1 Power 3 1 1 Input Power The module operates off the input power voltage On board circuitry operates at 3 3V levels However up to 20V may be applied at this connector The system draws very little power typically it will require less than 5 mA of supply for operation when not in sleep mode 3 1 2 Output Power The module outputs the input power voltage when the unit is programmed to allow this output When the unit goes to sleep this output power is turned off 3 2 Communication Interface The module utilizes the X1 pins to command the unit and receive status These pins are described here 3 2 1 Pin 1 TX Output data from the module 3 2 2 Pin 2 RX Commands to the module 3 2 3 Pin 3 and Pin 9 Ground Ground pins for signal use 3 2 4 Pin 4 ISP In system programming pin Pull low upon boot to load new code via UART 3 2 5 Pin 5 DIO1 TBD 3 2 6 Pin 6 DIO2 TBD 3 2 7
5. allow easier decoding by the end user 4 1 1 Message format Both input and output messages have a defined structure that consists of the following 2 header bytes 0xAE 1 Message ID byte xxx Payload bytes varies with message 1 Checksum byte The checksum byte is LRC checksum calculated for the entire message including header bytes length id and data bytes Details and code for calculating this checksum are provided later in this section 4 1 2 Number Formats Much of the data messages use single bytes and unsigned integers which are typically easy to understand A number format list is presented here for clarity on number formats however All floating point values are transmitted in IEEE754 single precision Table 3 Number Formats Abbreviation Type Size Comment Min Max bytes Uf QUnsgnedchar 14 TE Lagen mar e complement Bed 14 Im gt 0 0 10 65538 000 a Bitfield n a wa S 4 0 0 4 294 907 295 1 Signed long 2 s complement 2 147 483 648 2 147 483 647 4 IEEE 754 Single Precision ASCII encoded TET L E Son U2 FRE ER gt U4 Unsigned long FE GH gt 4 1 3 LRC Checksum Code The checksum calculated for outgoing messages is an 8 bit Longitudinal Redundancy Check LRC code C code to compute the entire checksum is shown below SANDMAN User Manual Rev 12 unsigned char calculateLR
6. deep power down modes in a single package that allows users to e Control the voltage supply to a separate system e Store data to nonvolatile flash e Turn off power to another system or the host system with automatic wake up SANDMAN User Manual Rev 2 Specifications and Characteristics Presented in this section are the sensor and system specifications for the Sandman All parameters specified are VDD 5 0 V and Ta 25 unless otherwise noted 2 1 Performance Specifications Characteristics Conditions Min Typical Units Memory NVM storage available for user 1024 1024 4096 Communication UART 115 200 baud 8 N 1 characteristics Specifications are subject to change at any time without notice 2 2 Electrical Characteristics Characteristics Conditions Min Typical Max Units Range Referenced to GND Ponte ee EE pass thru to load Prone normal operation deep sleep turned off Specifications subject to change at time without notice 2 3 Absolute Maximum Ratings Parameter Rating Operating Temperature Range 40 C to 85 C Storage Temperature Range 55 C to 125 C Specifications are subject to change at any time without notice Stresses above those listed under the Absolute Maximum Ratings may cause permanent damage to the device This is a stress rating only functional operation of the device at or near these or any other conditions above those
7. 0 Time Structure Current Time Current time from the unit This message sets the time on the unit This is NOT held in memory if main power is removed to the module no battery backup Itis maintained and incremented in deep sleep however 5 1 3 GET TIME ID 0x02 Message Name 0x02 Input Message TE Getstheunittime Message ID Payload Checksum Structure OxAE 0 02 Below XSUM Byte offset Number format Scaling Name Units Description 0 U1 N A Requests output message 0x02 from module This message requests time from the unit via message 0x02 SANDMAN User Manual Rev 17 5 1 4 SET ALARM ID 0x03 Message Name 0x03 Input Message Message Header Message ID Payload Checksum Structure OxAE 0x03 See Below XSUM Byte offset Number format Scaling Name Units Description 0 Alarm Structure Alarm Desired alarm time for wakeup 16 U1 Alarm Type Alarm type to wake up on e Seconds match e Minutes match Hours match Full date match This message sets the alarm on the unit This is NOT held in memory if main power is removed to the module no battery backup It is maintained and incremented in deep sleep however The alarm type sets what aspect of the alarm triggers a wake up Follow this up with the GoToSleep message to power down 5 1 5 GET ALARM ID 0x04 Message Name 0x04 Input Message Message Header Message ID Payloa
8. 10 A ISP E E 10 32 50 E 10 3 2 0 T DIO2 sraa a OE a E OE EE 10 327 Pin Rr dT RN UR 10 FR 10 3 3 COMMUN CAT ON eR 11 SX BEES vr 11 332 OT QE CHE THU EDEN DN 11 3 4 Power Status LED slet 11 B Software Interface 12 4 1 Basic Message 12 4 1 1 Message form l 2 o ENS 12 4 1 2 Number 12 4 1 3 ERE Checksum Code Fd asa gana daa na ad aa 12 4 1 4 NACK 13 5 Message DER ee 15 5 1 Input Message Summary seeren reen nr 15 GE 500 HE 16 5 1 2 SET TIME ID 0301 ii tiss sch sdsiscadesaiaaadedaiaiadeastanSetssiadeasssieleecceedeastouelecstocedsassotesecssctedeas 17 51 3 GET TIME
9. C const unsigned char unsigned int n I unsigned char checksum 05 while n gt O checksum xbuf 5 n 5 gt return char checksum 5 4 1 4 NACK Response A properly formatted message that is accepted by the module will be responded to with the following ACK or NACK 4 1 4 1 ACK Response The acknowledge response will have the form 0x21 This is the hex code for an ASCII character 4 1 4 2 NACK Response The non acknowledge response will have the form 0x63 This is the hex code for an ASCII character 4 1 4 3 Useful Code Structures The following structures are useful for the setting and reading of data from the module 4 1 4 4 TIME Structure The following C structure is used for both setting and reading time from the unit This is 27 bytes typedef struct unsigned char hun sec Hundreds of seconds unsigned char tenth sec Tenths of seconds unsigned char sec Seconds unsigned char ten sec Tens of seconds unsigned char min Minutes unsigned char ten min Tens of minutes unsigned char st Oscillator start bit unsigned char hour Hours unsigned char ten hr Tens of hours use with 24 hr time unsigned char AMPM 10 hour AM PM unsigned char TIMEFORMAT If set 24 hr time If cleared 12 hour time unsigned char CALSGN Calibration sign unsigned char day Day SANDMAN User Manual Rev 13 unsigned char VBATEN Vbat enable unsigned char
10. E 0x07 See Below XSUM Byte offset Number format Scaling Name Units Description 0 U2 Sleep pause Milliseconds to delay before going to sleep This message puts the unit to sleep after the number of milliseconds in the payload 5 1 9 EASY SLEEP ID 0x08 Message Name 0x08 Input Message Message Header Message ID Payload Checksum Structure OxAE OxAE 0x08 See Below XSUM Byte offset Number format Scaling Name Units Description 0 U1 Type of Easy Easy sleep Sleep This message puts the unit to sleep immediately for the specified amount of time Type of Easy Sleep 0 10 seconds 1 1 minute 2 1 hour 3 3 hour 4 12 hour 5 24 hour SANDMAN User Manual Rev 20 6 Output Message Details Shown in this section are the specific message descriptions for output messages from the unit 6 1 Output Messages The output messages from the unit are shown in this summary table Table 5 Sandman Message Output Name ID jLength Description _ Ping 10 X 7 malve message J Reserved J1 fr fr Reserved 3 1 fr Reserved 5 j fr 00 O 6 Varies Retrievesstored data from modue Reserved 7 fr fr Reserved 1 rn 0 0 E a 021 7 OB Note The length shown this section is the package payload length for that message It does not include the header characters OxAEAE lengt
11. M Byte offset Number format U2 ame being Number of bytes recovered to recover maximum 4096 2 3 4 4097 U1 Data to store Data bytes are stored up to length sent This message is a response to request for stored data from the unit via message 0x06 SANDMAN User Manual Rev 23 6 1 8 RESERVED ID 0x07 Unused 6 1 9 RESERVED ID 0x08 Unused SANDMAN User Manual Rev 24 7 Software Reprogramming The Sandman board can be reprogrammed in the field if necessary In order to accomplish this the user will have to pull down the ISP pin upon powering up This puts the processor into boot loader mode and new firmware can be uploaded via the serial port Please contact us for more details 8 Software Release Notes Software version descriptions can be found here Table 6 Software Revision Major Mino Build Description 101 1 1h Qlnitalrelease pO SANDMAN User Manual Rev 25 9 Appendix A TBD Placeholder SANDMAN User Manual Rev 26
12. Pin 7 DIO3 TBD 3 2 8 Pin 8 DIO4 TBD SANDMAN User Manual Rev 10 3 3 Communication Sandman has two means of communication a standard UART and 12 port Currently the 12C port is inactive but may be active as a slave device in future software releases 3 3 1 UART The UART is a 3 3V level interface The unit does not use hardware handshaking It is always 8 bits no parity and one stop bit 8 N 1 Do NOT interface with a standard RS 232 port as the voltages on that port will damage the unit An external adapter that uses 3 3V to convert to RS 232 levels can be powered from the onboard 3 3V regulator Standard operation is at 115k baud 3 3 2 12C Port The I2C bus will be configured as a master device Currently it is not implemented but future software revisions may include this 3 4 Power Status LED There is one 1 informational LED on the unit This LED is for test only and can be disconnected by cutting the LED trace solder jumper The LED pulls an extra 0 5 mA at 5V during normal operation so cutting this trace is good practice for energy saving purposes SANDMAN User Manual Rev 11 4 Software Interface The hardware com interfaces have been described already Details on software setup and communication are presented here 4 1 Basic Message Structure Input and Output messages from the unit are identical Both include header and checksum and other information to protect data integrity and
13. VBAT Vbat switched unsigned char OSCON Oscillator on flag unsigned char date date unsigned char ten_date Tens of date unsigned char month Month unsigned char ten_month Tens of month unsigned char Ip leap year unsigned char year year unsigned char ten year Tens of year unsigned char CTRL REG control register unsigned char CALIBRATION Should be zero if you ever set this unsigned char WATCHDOG Watchdog register unsigned char EVENT Event detect unused TimeKeeper RTC TypeDef 4 1 4 5 ALARM Structure The following C structure is used for both setting and reading alarms on the unit It is 16 bytes long typedef struct unsigned char sec Seconds unsigned char ten sec Tens of seconds unsigned char min Minutes unsigned char ten min Tens of minutes unsigned char hour Hours unsigned char ten hr Tens of hours use with 24 hr time unsigned char AMPM 10 hour AM PM unsigned char TIMEFORMAT If set 24 hr time If cleared 12 hour time unsigned char day Day unsigned char ALMxIF Alarm Interrupt flag bit must be cleared by software unsigned char ALMxCx Alarm match conditions 000 seconds 001 min 010 hrs 111 sec min hr day date and month unsigned char ALMxPIN Alarm Output Pin config bit 0 pin 1 WDO pin unsigned char date date unsigned char ten date Tens of date unsigned char month Month unsigned char ten month Tens of mo
14. d Checksum Structure OxAE OxAE 0 02 Below XSUM Byte offset Number format Scaling Name Units Description 0 U1 N A Requests output message 0x04 from module This message requests alarm from the unit via message 0x04 SANDMAN User Manual Rev 18 5 1 6 STORE DATA ID 0x05 Message Name 0x05 Input Message DO Stores the data for retention during power down Message Header Message ID Payload Structure OxAE 0x05 See Below Byte offset Number format Scaling Name Units 0 U2 Bytes to write 2 3 4 4097 U1 Data to store Checksum XSUM Description Number of bytes to write maximum 4096 Data bytes are stored up to length sent This message stores a stream of data to the unit to be saved during power down All other data on the unit is erased overwritten by this message 5 1 7 GET DATA ID 0x06 Message Name 0x06 Input Message Requests data retrieval Message Header Message ID Payload Structure OxAE OxAE 0x06 See Below Byte offset Number format Scaling Name Units 0 U2 Bytes to read This message requests stored data from the unit via message 0x06 Checksum XSUM Description Number of bytes to read via output message 0x06 SANDMAN User Manual Rev 19 5 1 8 GOTOSLEEP ID 0x07 Message Name 0x07 Input Message se Goes to sleep wakes on alarm Message Header Message ID Payload Checksum Structure OxA
15. h byte device ID byte message ID byte or checksum byte The messages available with content are follow the same format as the input messages with respect to header id payload and checksum The only messages that do not abide by this are the ACK and NACK responses SANDMAN User Manual Rev 21 6 1 1 PING ID 0x00 Message Structure OxAE OxAE OxMM OxNN XSUM This message is in response to the 0x00 ping request The three bytes sent down OxMM OxNN and OxPP represent the software version on board Major Minor Revision MM NN PP 6 1 2 RESERVED ID 0x01 Unused 6 1 3 UNIT TIME ID 0x02 Message Structure XSUM FESTE EEG EEG l Byte offset Number format Scaling Name Units Description Time Structure Current Time Current time from the unit This message is a response to the request time message 6 1 4 RESERVED ID 0x03 Unused SANDMAN User Manual Rev 22 6 1 5 UNIT ALARM ID 0x04 Message Structure XSUM B Byte offset Number format Scaling Name Units Description mH Structure pe 1 Desired alarm time for wakeup _ Alarm type to wake Seconds match Minutes match Hours match Full date match This message is a response to the request alarm message 6 1 6 RESERVED ID 0x05 Unused 6 1 7 GET DATA ID 0x06 Message Structure XSU
16. hatronics LLC SANDMAN User Manual Rev 1 Introduction The Sandman is a power management and data storage electronic board that allows you to effectively turn electronic hardware off for a specified amount of time then have it turn back on During the power down phase current draw to the Sandman board is approximately 100 micro amps Sandman can control power to systems from 3 3V up to 20V while allowing up to 1 8 amps of current Up to 1k of data be stored in nonvolatile memory on Sandman before turning power off allowing your system to save system status and other information for use after power has returned The communication interface is via a 3 3V level UART with simple command structure The Sandman is intended for use in remote sensing applications that require strict power management to operate effectively 1 1 Limitations The unit like any IMU AHRS can be pushed beyond the limits of its ability to sense any of the measurements it needs to operate correctly The following list includes results that are known to occur if operation exceeds the limits listed later in this document 1 1 1 User Responsibility Accidental programming of an incorrect wake up can result in a system that goes to sleep and stays asleep Please be careful and test your system thoroughly before deployment 1 2 Theory of Operation The Sandman integrates low resistance power circuitry a low power real time clock unit and a CPU capable of
17. indicated in the operational section of this specification is not implied Exposure to absolute maximum rating conditions for extended periods of time may affect device reliability SANDMAN User Manual Rev 2 4 Mechanical and Pin Assignments 2 4 1 Dimensions All units shown in inches 2 4 2 Recommended Connectors 2 4 2 1 Power In Out The Input and Output power connectors are identical They are JST connector part S2B PH SM4 TB LF SN Digikey P N 455 1749 1 ND There are many mating options for this connector but an easy method is to purchase pre crimped built mating cables An example of this is Pololu item 1116 http www pololu com catalog product 1116 which is a connector and 14cm wire length For reference a picture of this connector is shown here SANDMAN User Manual Rev 2 4 2 2 Communications Connector X1 The communications connector has a set of connections for discrete I O and communication This connector is a 9 pin Molex socket The mating connector for this is Digi Key part number WM1727 ND but this is just the connector housing Pre crimped wires can be found at Newark part number 06 66 0013 For reference a picture of this connector is shown here 2 4 3 Pin Assignments Table 1 Power In Out Connector Pin Assignments Pin Description Connection Required for Typical Operation S JE SANDMAN User Manual Rev Table 2 Communication X1 Pin
18. nth TimeKeeper ALARM TypeDef SANDMAN User Manual Rev 14 5 Input Message Details Shown in this section are specific input message requirements and details 5 1 Input Message Summary The output messages from the unit are shown in this summary table Table 4 Sandman Message Input mo module i is removed i e no battery backup Set Alarm 0x03 Sets alarm on unit Retrieves the alarm currently set on the unit Get Alarm gt Store Data 0x05 Stores data to NVM on the module in preparation of power down sleep Get Data Retrieves data from NVM GoToSleep 0x07 Goes to sleep powers down Will not engage if alarm time is prior to current time EasySleep_10min 0x08 Go to sleep for 10 minutes from current time aee SANDMAN User Manual Rev 15 5 1 1 PING ID 0x00 PING 7 0x00 Input Message Message Header Message ID Payload Checksum Structure OxAE OxAE 0x00 See Below XSUM Byte offset Number format Scaling Name Units Description 0 U1 N A Value not used but required for valid message This message forces a ping output message 0x00 as a response regardless of the package data SANDMAN User Manual Rev 16 5 1 2 SET TIME ID 0x01 Message 0 01 Input Message aoo Sets the unit time Message Header Message ID Payload Checksum Structure OxAE OxAE 0x01 See Below XSUM Byte offset Number format Scaling Name Units Description
Download Pdf Manuals
Related Search
Related Contents
FDAG-2000 Franke 8585563 sink Baumatic P619BS Technical Drawing PUMP SYSTEM SYSTEME DE POMPAGE ACUIX Rugged Dome Install Guide Produits & Nouveautés 2006 - Parc des Expositions de Toulouse Manual Lock/Single Firearm Concentrado Emulsionable Fungicida Registro MAG: 067 Copyright © All rights reserved.
Failed to retrieve file