Home

Sky Quality Meter – Lens USB Datalogger SQMLUDL User manual

image

Contents

1. 11 3 Feature revision history 9 Initial SQM LE product release 10 Power up default reset for command busy SQM LE 11 Ability to manually sett calibration values SQM LE 12 Temperature averaging added SQM LE 13 Interval report feature added SQM LE 14 Interval report includes serial number 16 Rx report includes serial number 17 Provide no temperature reading until fully averaged after power up 18 Addition of averaging algorithm for period mode 19 Addition of simulation commands 20 DL model logging synchronized to RTC feature added Revision 1 9 Page 48 Last modified Feb 1 2012
2. Line feed 0x0a Table 8 Unit information request response An example is i 00000002 00000003 00000001 00000413 Revision 1 9 Page 19 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 2 7 Manually set light calibration offset Calibration is done at the factory however in the case where calibration values must be restored or set to something else this command allows a new calibration value to be placed into the SQM LU Executing the command zcal5S x manually sets the light calibration offset to the magnitudes arcsecond value specified in HH The units are The format of the response is 0 Z Calibration response is being returned 5 Manual Set Light Calibration Offset 4 15 00000017 60m Value that was set into EEPROM 16 17 Carriage return 0x0d Line feed 0x0a Table 9 Response for manual setting of light calibration offset An example is z 5 00000017 60m Revision 1 9 Page 20 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 2 8 Manually set light calibration temperature Calibration is done at the factory however in the case where calibration values must be restored or set to something else this command allows a new calibration value to be placed into the SQM LU Executing the command zcal6 x manually sets the light calibration temperature to the value specified
3. L4 11 01 06 5 11 51 00 10 44 023 80 234 EES Illustration 9 Datalogging GUI The estimated battery life calculation has not been finalized yet Revision 1 9 Page 30 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 2 1 1 2 Datalogger commands All datalogging commands begin with L 4 2 13 1 FLASH ID report To get a report on FLASH chip Manufacturer ID and Device ID use LOX The response is 0 2 LO Confirmation of command 3 5 000 Manufacturer ID 6 8 000 Device ID 9 10 Carriage return 0x0d Line feed 0x0a Table 18 Response of reguesting the FLASH chip ID An example response is LQ 000 000 4 2 13 2 Logging pointer report To get a report on current logging pointer position use L1x The response is 0 2 Li Confirmation of command 3 8 000000 Pointer position 9 10 Carriage return 0x0d Line feed 0x0a Table 19 Response of requesting the data logging pointer An example response is L1 000000 Revision 1 9 Page 31 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 2 13 3 Erase entire FLASH memory Erasing the entire FLASH memory takes about 1 1 seconds to complete and provide a send a response The user must come back and check for validation of erasure To erase the entire FLASH memory use L2X There is no response 4 2 13 4 Log one record To force the unit to record one
4. Revision 1 9 Page 7 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 1 2 Battery operation The SOM LU DL may be operated by an external batter using the supplied battery to USB adaptor The lifetime of the battery can be determined as follows toui e o Q Wak M I Quiescent 600nA urescent a ake easure I Wake 7 10mA twae 605 I Measure 55mA t Ml 5s Illustration 4 Current Measure HERDS consumption values n numberof minutes between samples Illustration 5 Current consumption timing avi test i I Quiescent T t Wake I wake l easire I Measure Illustration 6 Current consumption formula Tek AM O Scan MEASURE CH1 Mean Measure CH1 Pos Width gt CH1 Nea Width 2 Wake CHI Freq Quiescent CH1 None CH1 100mY M 10 05 CHI A 4 80mi 10 Jun 11 10 10 lt 10Hz Illustration 7 Current supply current profile using 100 current shunt 0 Revision 1 9 Page 8 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual As an example for determining battery life of a 3AH battery with sampling every 5 minutes T Batt AH Rating I Average AH Rating I Quiescent T t Wake I Wake ai i I Measure AH Rating 5S Toiseen T t Wake I Wake T n 60s j TTAN 3AH 500nA 5 10ma 5 55mA 60s 5 60s 2117 hours or 88 days or 2 8 months Illustration 8 Battery lifetime calculation
5. 1 LC Confirmation of command 2 21 11 01 06 5 11 51 00x Date Day of week 1 Sunday and time 22 23 Carriage return 0x0d Line feed 0x0a Table 27 Setting the RTC The RTC is read with the LCX command The response of both setting and getting the RTC value is 0 2 LC Confirmation of setting command 0 2 Lc Confirmation of getting command 3 21 11 01 06 5 11 51 00 Date Day of week 1 Sunday and time 22 23 Carriage return 0x0d Line feed 0x0a Table 28 Response of getting the RTC values An example response is Lc 11 01 06 5 11 51 00 Revision 1 9 Page 38 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 2 13 12 Put datalogging unit to sleep For tests purposes the SQM LU DL can be put to sleep with the Lsx command so that battery current can be measured The unit must be awakened by re applying power cold start 4 2 13 13 Gather alarm 0 data from RTC For tests purposes the SQM LU DL RTC Alarm 0 data can be retrieved with the Lax command The response is 0 1 La Confirmation of command 3 6 000 Address 07H Seconds See DS1305N RTC chip information for details 7 10 128 Address 08H minutes 11 14 128 Address 09H hours 15 18 128 Address OAH day 19 21 001 Address OFH Control register 22 23 Carriage return 0x0d Line feed 0x0a Table 29 Response of getting the RTC Alarm 0 value An example re
6. Reading in magnitudes per square arc second Leading space for positive value Leading negative sign for negative value A reading of 0 00m means that the light at the sensor has reached the upper brightness limit of the unit 10 21 0000022921Hz Frequency of sensor in Hz 23 33 Q000000020Cc Period of sensor in counts counts occur at a rate of 460 8 kHz 14 7456MH7 32 35 46 10000000 000s Period of sensor in seconds with millisecond resolution 48 54 039 4C Temperature measured at light sensor in degrees C Leading space for positive value Leading negative sign for negative value 55 63 00000413 Serial number 8 digits Each unit has its own unique serial number 64 65 Carriage return 0x0d Line feed 0x0a Table 13 Interval report An example is r 06 70m 0000022921Hz 0000000020c 0000000 000s 039 4C 00000413 0123456789 123456789 123456789 123456789 123456789 123456789 12345 Revision 1 9 Page 24 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual Interval reporting is available for sending timed reports to a listening program To prevent reports being sent during daylight when the meter is saturated with light a threshold value can be set Readings exceeding the threshold dark will be reported low readings too bright will be suppressed Due to the construction nature of EEPROM there is a limited number of times that this memory can be writte
7. Users manual 4 2 10 Manually set dark calibration temperature Calibration is done at the factory however in the case where calibration values must be restored or set to something else this command allows a new calibration value to be placed into the SQM LU Executing the command zcal8 H x manually sets the light calibration offset to the value specified in H H H The units are C Note The SQM LU DL records the temperature in a raw value with different resolution so the reply back may not be exactly the same as the value sent The format of the response is 0 Z Calibration response is being returned 8 Manual Set Light Calibration Offset 4 9 019 0C Value that was set into EEPROM 10 11 Carriage return 0x0d Line feed 0x0a Table 12 Response for manually setting of light calibration temperature An example is z 8 019 0C Revision 1 9 Page 23 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 2 11 Setting interval reporting parameters For firmware feature 13 and above the SQM LU DL is capable sending timed interval reports Each interval report is the same as the reading request report except that the serial number feature 14 and above is attached at the end so that numerous reporting SQM LUs can be distinguished from each other The format of the interval report is 0 r Indicates that a reading is being returned 2 8 06 70m
8. eteonteneenteneenneeeenneeeenneeeenneeeenneeeen 29 Table 18 Response of requesting the FLASH chip ID meieeeeeeonneneonneeeonneeeonneeeenneeeenneeeenneee 31 Table 19 Response of requesting the data logging pointer rrenrenrenrentenree 31 Table 20 Response of requesting to log one record wntonneeonneneenneeeenneeeenneeeenneeeenne 32 Table 21 Request to return one logged t organ iia 33 Table 22 Response of requesting the FLASH chip ID ssssesesessesssesssesessseessressessersseeesseeesseesseesseessees 33 Table 23 Response of requesting internal voltage etenretenteennenrenreeennee 34 Table 24 Request to set the logging trigger MOdE e 44445 thvs veini kuvatav aivatvavidad abu aklav jada vend sannscanadeoseasdiinndene 35 Table 25 Response of setting or getting the log trigger mode wenrenrennentenee 35 Table 26 Response of viewing or setting logging interval reporting parameters www 36 Table 2 Seine MR TE dai odo ke va saa pad aie 38 Table 28 Response of getting the RTC FAM sae ease eed ae 38 Table 29 Response of getting the RTC Alarm 0 value ceecccssccecssececesececssececsseceessccecssccesnsceeenees 39 Revision 1 9 Page 4 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 1 Theory of operation The SOM LU DL measures the darkness of the nigh
9. example Note that measuring is still performed for Threshold settings even when it is too light to record a reading Measuring is performed to determine this measure state and Imeaswre Still applies Revision 1 9 Page 9 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 2 Software development The SOM LU DL communtcates as a standard serial port device using the FTDI software drivers which are available for all major operating system platforms http ftdichip com The SOM LU DL uses the FTDI FT232R chip Once the driver is installed commands can be sent to the SOM LU DL using a serial terminal emulator to the serial communications port that the device routes to When connecting the SOM LU DL to a PC where the FTDI device driver is loaded the serial port label will be determined at connection time Each SQM LU DL has a unique serial number usually with a prefix of FT This serial number can be used to identify the exact SQM LU DL device from other USB devices Interface Program overview Data commands are sent to the SQM LU DL and it responds with a string of characters A connection must be made to the serial port assigned to the SQM LU DL Revision 1 9 Page 10 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 Commands and responses The SOM LU DL accepts a seguence of characters as a command then executes those commands and usually provides a resp
10. in The units are C Note The SQM LU DL records the temperature in a raw value with different resolution so the reply back may not be exactly the same as the value sent The format of the response is 0 Z Calibration response is being returned 6 Manual Set Light Calibration Offset 4 9 019 0C Value that was set into EEPROM 10 11 Carriage return 0x0d Line feed 0x0a Table 10 Response for manually setting of light calibration temperature An example is z 6 019 0C Revision 1 9 Page 21 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 2 9 Manually set dark calibration time period Calibration is done at the factory however in the case where calibration values must be restored or set to something else this command allows a new calibration value to be placed into the SOM LU Executing the command zcal7 x manually sets the light calibration offset to the value specified in The units are in seconds The format of the response is 0 Z Calibration response is being returned 7 Manual Set Light Calibration Offset 4 15 0000300 000s Value that was set into EEPROM 16 17 Carriage return 0x0d Line feed 0x0a Table 11 Response of manually setting dark calibration time period An example is Z 7 00000300 00s Revision 1 9 Page 22 Last modified Feb 1 2012 Unihedron SOM LU DL
11. reading of 0 00m means that the light at the sensor has reached the upper brightness limit of the unit 10 21 0000022921Hz Frequency of sensor in Hz 23 33 Q000000020Cc Period of sensor in counts counts occur at a rate of 460 8 kHz 14 7456MH7 32 35 46 10000000 0005 Period of sensor in seconds with millisecond resolution 48 54 039 4C Temperature measured at light sensor in degrees C Leading space for positive value Leading negative sign for negative value 55 56 Carriage return 0x0d Line feed 0x0a Table 3 Reading request response An example is r 06 70m 0000022921Hz 0000000020c 0000000 000s 039 4C 0123456789 123456789 123456789 123456789 123456789 123456 Future revisions of this reading string will only modify reported values beyond position 54 Characters 0 to 54 may be considered stable Revision 1 9 Page 14 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 2 2 Calibration information request The calibration information request cx returns all data about the specific light sensor in the unit required for to calculate a reading The format of the response is 0 C Indicates that the calibration information is being returned 2 13 00000017 60m Light calibration offset in magnitudes per square arc second 15 26 0000000 00Qs Dark calibration time period in seconds with millisecond resolution 28 34 039 4C Temperature in
12. record use L3X The record will not be logged if the threshold is set too high To ensure that a record will be logged set the threshold to 0 The response includes the logging pointer 0 2 L3 Confirmation of command 3 8 000000 Pointer position 9 10 Carriage return 0x0d Line feed 0x0a Table 20 Response of reguesting to log one record An example response is L3 000000 Revision 1 9 Page 32 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 2 13 5 Return one logged record To get one entire record use L4 X as request and response are as follows 0 2 L4 Command 2 11 0000000000 Pointer position of record to return 12 xX end of request 13 14 Carriage return 0x0d Line feed 0x0a Table 21 Request to return one logged record 0 2 L4 Confirmation of command 3 22 11 01 06 5 11 51 00 Date Day of week 1 Sunday and time of recording 23 28 10 44 Reading with sign 29 36 023 8C Temperature in degrees C 37 39 234 Battery voltage ADC value 40 41 Carriage return 0x0d Line feed 0x0a Table 22 Response of reguesting the FLASH chip ID An example response is L4 11 01 06 5 11 51 00 10 44 023 8C 234 Revision 1 9 Page 33 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 2 13 6 Get internal voltage When operating from the external battery to USB connector the u
13. 0000360Ff 0000000360t Revision 1 9 Page 27 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual To set the internal values and read the calculated response issue the Sx command with the following format the response will be 0 1 S Initiation of Sx command 2 12 0000000360 Simulated counts 12 i Separation character can be anything except x 13 22 0000000360 Simulated Frequency in Hz 23 j Separation character can be anything except x 24 33 00244 Simulated Temperature ADC value 34 X Terminating character Table 16 Response of sending for simulation values S x An example command is S 0000000360 0000000360 0000000360x Revision 1 9 Page 28 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual The result of the S x is 0 1 S Confirmation of S x command 2 13 0000094000c Simulated counts 14 25 Q000000000Ff Simulated frequency in Hz 26 37 0000000245t Simulated temperature ADC value 38 39 r Beginning of calculated readings 40 47 18 04m Calculated mpsas 48 60 0000000000HZ Frequency used for calculation 61 72 0000094000c Counts used for calculation 73 85 0000000 204s Calculated period from counts 86 92 029 0C Temperature used for calculation 93 94 Carriage return 0x0d Line feed 0x0a Table 17 Response of asking for internal
14. 2012 Unihedron SOM LU DL Users manual 4 2 11 3 Interval setting response Either making the request Ix note upper case I or any request to set the interval report setting produces the following response 0 I Interval settings from EEPROM and RAM are being returned 2 12 0000000360s Interval period that was set into EEPROM 14 24 00003003605 Interval period that was set into RAM 26 37 00000017 60m Threshold value that was set into EEPROM 39 50 00000017 60m Threshold value that was set into RAM 51 52 Carriage return 0x0d Line feed 0x0a Table 14 Response of viewing or setting interval reporting parameters An example response is 1 0000000360s 0000000360s 00000017 60m 00000017 60m Revision 1 9 Page 26 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 2 12 Simulation commands The following simulation commands will help to determine the results of mpsas readings derived from the light and temperature sensors To read the internal values issue the sx command the response will be 0 1 S Confirmation of sx command 2 12 0000000360c Number of counts 14 24 0000000360f Frequency in Hz 26 37 0000000244t Temperature ADC value as seen by the CPU 38 39 Carriage return 0x0d Line feed 0x0a Table 15 Response of asking for internal values sx An example response is s 0000000360c 000
15. E TAUL settings a a a aaa aaa amaan kanal 42 A ESA A i 43 9 Company contact MOP AU OM AA Ia E wees 45 A Sear alga mona e a ajatada j tavad takis alam tj teata aia 46 11 Appendix A revision MSN la 47 MEM revision AS OEY cach coh de ice ede buds Bela e cai asa did 47 M2 Protoeolerevisloi SiS 47 USAS vision MIS A O ila Mee hae 48 Revision 1 9 Page 2 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual Illustration Index Illustration 1 SQM LU DL block dai ER 5 TUS TAMIZ Front Or Umit i e e A A AE E AE aa RS 6 Mustration 3 Back of nitesini n ied tec ee ape mind aal te aS e ami 6 Illustration 4 Current consumption values weenreetneentnne enne enteeeennneeenneeeenneeeenneeeeni 8 Illustration 5 Current consumption timing wertenneeenneenenneeenneeennneeennneeonneneennneeenneeeennneeennee 8 Illustration 6 Current consumption formula wwwteneentenneenteentnneenteeeennneeenneeeenneeee 8 Illustration 7 Current supply current profile using 1092 current shunt mteeretene 8 Illustration 8 Battery lifetime calculation example emteenrerateaemeeras 9 Til stration Or Datos nr UE ua NN E 30 Hl stta n 10 A n a a Me OS 40 Illustration 11 Example cover calibration de keha J e daik Reto edema el oa ede 41 Revision 1 9 Page 3 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual Index of Tab
16. Sky Guality Meter Lens USB Datalogger SAM LU DL User manual Unihedron SOM LU DL Users manual Table of Contents LASOE Ol DP CLANTON O 5 EROT ETa EE ae REE A Re et REE idas RPP tr ales ada saand 5 DS peci cat ons aerie E md ul I al E 6 Hardware co necti nS erior daa kolama de esa dope tated a Sk 7 LZ Battery operation enste ense a e n a a e ESA E e EE SEEE 8 2SoftWware development iisi adi 10 4 Commands and TeSPONS EStdt ido 11 AL Command S 5 8 cat oes anta kalaha MES catatea gat dalla tada ala 12 AD RESPONSE AEGA sash co cles e bac fle SBS id A cane sg isa Ge E Da a 14 AD A REAGIIIE Teques 14 42 2 Calibraiomiimt rmaltonreguest ananass aa laata 15 4 2 Lieht calibration command O ia 16 424 Dark calibration command AA dee tea A Bae ee eae 17 4 2 5 Disarm Calibration command iii avadada deletion eee 18 426 Unitinformation ii A ta 19 4 2 7 Manually set light calibration Of SEf oooooonnnccninnccnnnicinoncccnnncccnnnnnononononnnonononononnnannnnnccnnnncnnns 20 4 2 8 Manually set light calibration teMperature oooonncccnnncccconcccnoncccnonnnonnncnonononcnnnoncnnnencnnncnnnnnnnos 21 4 2 9 Manually set dark calibration time period ewtonreeeenneeeenneeeenneeeenneeeenneeeenne 22 4 2 10 Manually set dark calibration temperature wronrennentententeree 23 4 2 11 Setting interval reporting parameters wtonretererenrenrenrenre 24 4 2 11 1 Inte
17. degrees C measured during light calibration Leading space for positive value Leading negative sign for negative value 36 47 00000008 71m Offset of light sensor based on manufacturing category 49 55 039 4C Temperature in degrees C measured during dark calibration Leading space for positive value Leading negative sign for negative value 56 57 Carriage return 0x0d Line feed 0x0a Table 4 Calibration information request response An example is c 00000017 60m 0000000 000s 039 4C 00000008 71m 039 4C 0123456789 123456789 123456789 123456789 123456789 1234567 Revision 1 9 Page 15 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 2 3 Light calibration command Calibration of the SQM LU DL is done at the factory in a controlled light and temperature environment Executing the Light calibration command zcalAx arms the light calibration mode Flipping the switch to unlock triggers the light calibration and modifies the calibration values in the unit A calibrated light source of approximately 13 5fc is supplied to the sensor The format of the response is 0 Z Indicates that a Calibration response is being returned 1 A Light Calibration 2 a armed 3 L L Locked Wait for unlock before calibrating after Arm command firmware upgrades are disabled U Unlocked Calibrate immediately after Arm command Enable firmware up
18. grade 4 5 Carriage return 0x0d Line feed 0x0a Table 5 Light calibration response An example is zAaL 012345 Revision 1 9 Page 16 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 2 4 Dark calibration command Dark Calibration is done at the factory along with Light calibration and calibration temperature recording Executing the dark calibration command zca1Bx arms the dark calibration mode Flipping the switch triggers the dark calibration and modifies the calibration values in the unit Dark calibration is performed in a completely dark environment Check a reading to ensure that the period is correct after entering the dark environment it could take a few minutes to collect an accurate dark period A dark period of only a few seconds is too small The format of the response is 0 FS Calibration response is being returned 1 B Dark Calibration 2 a Armed 3 L L Locked Wait for unlock before calibrating after Arm command firmware upgrades are disabled U Unlocked Calibrate immediately after Arm command Enable firmware upgrade 4 5 Carriage return 0x0d Line feed 0x0a Table 6 Dark calibration response An example is zBaL 012345 Revision 1 9 Page 17 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 2 5 Disarm calibration command The Disarm calibration command zca1Dx disarms calibration m
19. les Table 1 Standard Command S MM r ad OS 12 Table 2 Datalogger Command SUMMA O A sua peeeesaseosaneniees 13 Table 3 Reading request ESPA aled salatile age aaa 14 Table 4 Calibration information request response teneenneenrnneenteeeenreneenneeeenneeeennee 15 Fables Erg it calibration ESPOSA cid 16 Table 6 Dark Calibration TespOmse 10d vita ia a ds 17 Table 74 Disarm calibration TES PON iris tava takka tama kukke lakata tan datud ds 18 Table 8 Unit information TEGUSSETESPONSE RA AAN 19 Table 9 Response for manual setting of light calibration offset wrenrenrentenree 20 Table 10 Response for manually setting of light calibration temperature tnrense 21 Table 11 Response of manually setting dark calibration time perlOd ooconoccnnncnnocononcconononancnoncnonccnnncnnn cons 22 Table 12 Response for manually setting of light calibration temperature mieees 23 Table re rey cl Te POs ty dd A A ae ie Rh i Sata 24 Table 14 Response of viewing or setting interval reporting parameters wrrnron 26 Table 15 Response of asking for internal values SX oneeeonneneenteneonneeeenneneenneeeenneeeennee ee 27 Table 16 Response of sending for simulation values S X ccesscecesseeceseeeceseeecsseeeceeeeecseeeecseeeecseeeesaes 28 Table 17 Response of asking for internal values S X
20. lue The offset determined by a simple light experiment should be subtracted from the reading A pending firmware edition will allow for built in manual offset Apply this subtraction offset as a negative value i e if you measured 16 60 outside the covering then 16 75 under the dome then an Revision 1 9 Page 40 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual offset of 0 15 should be applied to all readings Uniform lighting condition Ce Weatherproof covering SQM LE Offset 16 75 16 60 0 15 Illustration 11 Example cover calibration 6 3 Cover maintenance Keep the covering clean of dust water ice and bird droppings Revision 1 9 Page 41 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 7 Default settings The FTDI interface has not been altered from its default There should be no reason to alter the FTDI chip settings The baud rate is defined by the VCP driver side when a terminal program connects to the SOM LU Revision 1 9 Page 42 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 8 Troubleshooting Reading too bright too hot inspect lens for IR filter Problem Cannot get a reading Cause Driver is not installed or the SQM LU DL is not connected Solution For Windows check that the unit is registered using the registry editor from the Start menu select Run then type in regedit and p
21. n to before it becomes unreliable In the case of the SQM LU the erase write cycle is 1 million times For this reason it is recommended that freguent parameter changes be done in RAM rather than in EPROM Only set the parameter to EEPROM when you want the unit to boot up with your setting See following sections for how to set EEPROM or RAM Loading firmware clears resets the micro controller effectively copying the EEPROM values into RAM 4 2 11 1 Interval reporting period setting Executing the command P x note upper case P sets the period of the timed interval reports to the EEPROM and RAM for booting and immediate use Executing the command p x note lower case p sets the period of the timed interval reports to RAM only for immediate use The units are seconds For example p0000000360x sets the reporting time to once every 360 seconds 4 2 11 2 Threshold setting for interval reporting Executing the command T x note upper case T sets the threshold of the timed interval reports to EEPROM and RAM for boot and immediate use Executing the command t X note lower case t sets the threshold of the timed interval reports to RAM for immediate use only magnitudes arcsecond magnitudes arcsecond The units are For example t00000016 00x limits reporting to values only over 16 00 Revision 1 9 Page 25 Last modified Feb 1
22. nihedron SOM LU DL Users manual 2 Specifications USB connection USB B connector 5m USB A to USB B cable supplied USB FTDI VCP driver serial port emulator at 115200baud Physical Size 5 5 x 2 6 x 1 1 Meter precision Each SQM LU DL is factory calibrated The absolute precision of each meter is believed to be 10 0 10 mag arcsec The difference in zero point between each calibrated SQM L is typically 10 0 10 mag sq arcsec Power requirement 18mA from the 5V USB connection Can be put to sleep and woken up for battery operated logging Operating temperature range 40 C to 85 C Temperature Accuracy 2 C maximum at 25 C Temperature update rate 4 3 seconds 256 samples taken at 60Hz then averaged Data logging capacity 1MB Flash chip 16 bytes per record 32768 records total Real Time Clock accuracy 1 73s day 25 C 2 27s day 50 C per Citizen crystal CFS206 32 768KDZB UB Unihedron Illustration 2 Front ofunit Illustration 3 Back of unit Revision 1 9 Page 6 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 3 Hardware connections The SOM LU DL reguires one connection to a USB hub ora PC or a battery connection with the supplied battery adaptor The maximum length cable per the USB specification is 15ft 3 meters USB extenders exist on the market some work up to 198ft 60m
23. nit is normally supplied 5V As the external battery voltage drops below 5V plus the voltage regulator overhead of about 0 1V the internally supplied unit voltage will drop below 5V The unit will continue to work while the internal voltage is above 3 3V This internal voltage can be reported To get the internal voltage value use L5X The response is 0 2 L5 Confirmation of command 3 5 238 Internal voltage ADC value Internal Voltage 2 048 3 3 ADCValue 256 0 6 7 Carriage return 0x0d Line feed 0x0a Table 23 Response of requesting internal voltage An example response is L5 238 Revision 1 9 Page 34 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 2 13 7 Setand read logging trigger mode The unit has three possible modes of logging data while the eternal battery is being used for power LMOx No automatic logging LM1x Logging granularity in seconds and not powering down LM2x Logging granularity in minutes and powering down between recordings LM3x Logging every 5 minutes on the 1 12th hour and powering down between recordings LM4x Logging every 10 minutes on the 1 6th hour and powering down between recordings LM5x Logging every 15 minutes on the 1 4 hour and powering down between recordings LM6x Logging every 30 minutes on the 1 2 hour and powering down between recordings LM7x Logging every hour on the hour and powering d
24. note upper case T Firmware feature 13 SX Request reading of internal variables a X Simulate internal calculation Table 1 Standard Command summary Revision 1 9 Page 12 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual The following is a list of the Data logger commands LO Report on FLASH chip Manufacturer ID and Device ID L1 Report on logging pointer L2 Erase entire FLASH chip contents L3 Log one record L4 Return one record L5 Get battery voltage LM Set Logging trigger mode next digit defines mode Lm Get Logging trigger mode LI Logging Interval settings requested LP Logging Interval period set next char defines unit LT Logging Threshold for interval reports set Lc Get real time clock data LC Set real time clock data Ls Put unit to sleep La Get alarm data Table 2 Datalogger Command summary Revision 1 9 Page 13 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 2 Response details 4 2 1 Reading reguest The Reading request rx commands the SQM LU DL to provide the current darkness value as well as all variables used to generate that result The format of the response is 0 r Indicates that a reading is being returned 2 8 06 70m Reading in magnitudes per square arc second Leading space for positive value Leading negative sign for negative value A
25. odes from being triggered by the unlock mode The format of the response is 0 Z Calibration response is being returned 1 x AII calibration modes 2 d Disarmed 3 L L Locked Wait for unlock before calibrating after Arm command firmware upgrades are disabled U Unlocked Calibrate immediately after Arm command Enable firmware upgrade 4 5 Carriage return 0x0d Line feed 0x0a Table 7 Disarm calibration response An example is zxdL 012345 Revision 1 9 Page 18 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 2 6 Unit information Unit information command 1x provides details about the software in the microcontroller The format of the response is 0 i Indicates that the unit information response is being returned 2 9 00000002 Protocol number 8 digits This will always be the first 8 characters after the i response This value indicates the revision number of the data protocol to from the SQM LU The protocol version is independent of the feature version 11 18 00000003 Model number 8 digits The model value identifies the specific hardware model that the firmware is tailored for 20 27 00000001 Feature number 8 digits The feature value identifies software features independent of the data protocol 29 36 00000413 Serial number 8 digits Each unit has its own unique serial number 37 38 Carriage return 0x0d
26. onse of a seguence of characters Revision 1 9 Page 11 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 1 Commands Commands consist of a string of characters The first character is the command type The following is a list of the Standard commands rx Reading request CX Calibration information reguest ix Unit information request note lower case 1 zcalAx Arm Light Calibration command zcalBx Arm Dark Calibration command zcalDx Disarm Calibration command zcal5 Manually Set Light Calibration Offset FX zcalo Manually Set Light Calibration Temperature FX zcal7 Manually Set Dark Calibration Time Period FX zcal8 Manually Set Dark Calibration Temperature FX 0x19 Reset microcontroller see bootloader Hexadecimal value 19 Intel Hex firmware upgrade initiation see bootloader P HA AHHAA X Set period in seconds for interval reporting to EEPROM and RAM for booting and immediate use Firmware feature 13 P HAHHHA AX Set period in seconds for interval reporting to RAM for immediate use Firmware feature 13 T H AX Set threshold in mag arcsec for interval reporting only to EEPROM and RAM for booting and immediate use Firmware feature 13 THHHAHAHHAX Set threshold in mag arcsec for interval reporting only to RAM for immediate use Firmware feature 13 Ix Request interval settings
27. oved This type of memory has a limited write erase cycle as well as a lifetime for data retention In the SOM LU the parameters in the micro controller can be written 1 million times and last for 100 years SOM LU DL Sky Ouality Meter with lens and USB connectivity and with datalogging capabilities RTC Real Time Clock A circuit that is used to keep real time data like date time Computations for leap year and weekday are performed in this circuit USB Universal Serial Bus Revision 1 9 Page 46 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 11 Appendix A revision history 11 1 Manual revision history 1 0 Initial product release 14 Add datalogging memory spec and GUI image 1 2 Battery lifetime current consumption calculation added 1 3 LIx command response details corrected 1 4 LMx command updated with synchronized RTC logging 15 Define current shunt for current supply testing 1 6 Day of week defined 1 7 Clarify internal voltage reading not battery voltage 1 8 Clarify that log one records will only work if threshold is set low enough 1 9 Add RTC clock drift specification 11 2 Protocol revision history 3 Initial SQM LE product release 4 Interval report reading includes serial number at end SQM LE Revision 1 9 Page 47 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual
28. own between recordings Table 24 Reguest to set the logging trigger mode The response of setting the mode is simply an acknowledgement of the trigger mode Also reading the mode can be done with Lmx both will produce the following response 0 2 LM Confirmation of command 3 0 0 Off 3 Every 5 minutes on the 1 12th hour 1 Seconds 4 Every 10 minutes on the 1 6th hour 2 Minutes 5 Every 15 minutes on the 1 4 hour 6 Every 30 minutes on the 1 2 hour 7 Every hour on the hour 4 5 Carriage return 0x0d Line feed 0x0a Table 25 Response of setting or getting the log trigger mode An example response is LM 0 Revision 1 9 Page 35 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 2 13 8 Logging Interval setting response Either making the request LIx or any request to set the logging interval report setting produces the following response 0 1 LI Logging interval settings from EEPROM and RAM are being returned 3 13 0000000360s Logging interval period in seconds that was set into EEPROM 15 25 0000000005m Logging interval period in minutes that was set into EEPROM 7 37 0000000121s Current interval period in seconds from RAM 39 49 Q000000004m Current interval period in minutes from RAM 51 62 00000017 60m Threshold value that was set into RAM 63 64 Carriage return 0x0d Line feed 0x0a Table 26 Response of vie
29. ress OK For Windows XP and Windows 2000 look here for your device HKEY LOCAL MACHINE SYSTEMI Enum FTDIBUS VID_0403 PID_6001 Serial_Number 00001 PortName For Windows 98 and Windows ME look here for your device HKEY LOCAL MACHINE SYSTEMI Enum FTDIBUS VID_0403 PID_6001 Serial_Number 0000 PortName The Serial Number is printed on the bottom of the unit The above will identify which COM port the SOM LU DL has been assigned If the SQM LU DL is plugged in the active COM port will show up in this list HK LOCAL MACHINE HARDWARE DEVICEMAP SERIALCOMM For Linux and Mac use 1shal to determine which device the FTDI driver has attached the SOM LU DL to The CD contains a Perl script findftdi pl to filter out the Ishal output Revision 1 9 Page 43 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual Revision 1 9 Page 44 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 9 Company contact information Mailing address Unihedron 4 Lawrence Avenue Grimsby Ontario L3M 2L9 Canada Telephone 905 945 1197 Fax 905 945 6770 Website unihedron com Email info Ounihedron com Revision 1 9 Page 45 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 10 Glossary EEPROM Electrically Erasable Programmable Read Only Memory is a type of memory that retains its contents after the power has been rem
30. rval reporting period SSUES ia 25 4 2 11 2 Threshold setting for interval reportimg s54 vint idiotas 25 ALAS Meal ETE OA aeda laata iii 26 4212 SAA abl ON COMO tii Shc ci 27 A SI A E kid M i 30 2111 Dataloeeime CU oi 30 A ilus o A O 31 A A A A ad ERER 31 42132 Lossing pointer Oia 31 4 2 13 3 Erase entre FEASH MEMOEK od ae 32 42154 1 58 A O ou 32 4 2 13 5 Return one logged record sasiecssassatiasarsaceesiaesasusiaaaveng odeta spades ai 33 4 2 13 6 Get internal voltages senienas Ena EEA EARE A a a ai 34 4 2 13 7 Set and read logging trigger mode wx0 s tvtetudvisuesvasavavsdat vvda tada koduta kosaaaev kude takes 35 4 2 13 8 Logging Interval setting response weteteteenterenrentee 36 4 2 13 9 Logging interval reporting period setting wwntenrententenren 37 4 2 13 10 Logging threshold setting for interval reporting wweneermas 37 4 2 13 11 Set and read logging Real Time CIOCk esmeeeeeneeeoneeeoneeeonneeeonneeeonneee ena 38 Revision 1 9 Page 1 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 42 13 12 Put datalogging Unit to SEP pGenteedvacaceennseeweanneeznedebene 39 42 13 13 Gather alarm O data from RU Cos i ssisisvesseaciunsccasasvgiadsscuaddecs seseadesas katta kula kuaekoja vakka 39 5 Blectrical CONNOR 40 6Mecha ical asta le ds 40 E t a 40 6 2 Cover calibra oMa ds ad ISS 40 AE A E E EEE 41 TAH
31. sponse is La 000 128 128 128 001 Revision 1 9 Page 39 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 5 Electrical connection The SQM LU DL uses a voltage regulator to bring the incoming USB 5VDC voltage down to 3 3VDC 6 Mechanical installation Unihedron sells an enclosure that is suitable for mounting either the SOM LE or SOM LU DL into You can read more about it including plans to build your own here http unihedron com projects sqmhousing Illustration 10 Housing 6 1 Cover selection If the unit is to be mounted in exposed location we recommend an acrylic dome Acrylic domes will last 2 3 years but eventually weather on the surface It is not clear that this will affect the reading much The best test would be to swap a weathered and new one back and forth when changing one out Presumably the main consideration would be to keep the domes clean every so often and to make sure that the mounting plane is painted black to that it doesn t reflect light back to the inside of the dome and then back into the meter Source of Acrylic domes http www globalplastics ca domes htm 6 2 Cover calibration Since the SOM LU DL is not weather proof it must be protected in some way from the elements A plastic dome is recommended This may reduce the incoming light by about 15 20 Because a covering will reduce the incoming light the resultant reading will be darker higher magnitudes per arcsecond va
32. t sky to provide readings of magnitudes per square arc second through a USB connection and is capable of internally recording readings A light sensor TSL237 provides the microcontroller with a light level and readings from the temperature sensor are used to compensate the light sensor readings for various operating temperatures Commands sent from a PC through the USB cable to the USB interface are relayed to the microcontroller The microcontroller responds to commands by sending data strings to the USB interface which are then relayed to the PC SQM LU DL FLASH Real Time memory clock Light sensor Microcontroller USB interface Data Power Temperature sensor Illustration 1 SOM LU DL block diagram 1 1 Quick start 1 Your computer must have the FTDI VCP driver installed You can get the most updated driver for your operating system from here http ftdichip com Drivers VCP htm 2 If you are using Windows then download and install the latest Knightware SQM Reader from www knightware biz sgm Follow the instructions for installing and using that software If you are using Windows Linux or Mac you can use the Perl scripts supplied on the CD Plug unit into USB port of computer Set the real time clock using the Perl script supplied sqmutil TEE S Allow the internal Super cap to charge up for at least a few hours it will last many days un powered Revision 1 9 Page 5 Last modified Feb 1 2012 U
33. values S x An example response is S 0000094000c 0000000000f 0000000245t r 18 04m 0000000000Hz 0000094000c 0000000 204s 029 0C 01234567891012345678920123456789301234567894012345678950123456789601234567897012345678980123456 Revision 1 9 Page 29 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 2 13 Datalogger 2 1 1 1 Datalogging GUI A Perl GUI exists for controlling the datalogger as part of the Perl SQM utility The software is shipped on the CD and has been tested under Windows and Linux C nihedron SOM Utility JE Device selection FTF4F008 dev ttyUSBO Find Devices USB Ethemet RS232 ETH O0204AAFAEA 192 168 1 147 il ETH 00204AAF20A2 192 168 1 125 Serial 4 FTF4FDOS Port dev ttgJSBO ETH O0204AAF20A7 192 168 1 129 7 Information Calibration Report interval Firmware Data Logging GPS Device Clock Storage Control set 11 02 11 6 09 39 00 Retrieve all Cancel Retrieve Logone Erase all Refresh 11 025311 5 09 41 35 Record 1 Apply Date 11 01 06 5 11 51 00 Trigger Reading 10 44mpsas Temperature 23 8C e ON Battery 5 06Y Every seconds always on countdown 0s Every 2 minutes power save mode countdown 1m IK lt gt 21 6 8517 Threshold Estimated battery life 10 00 mpsas Capacity mAH Duration time Until voltage 5 10 Y Sent L40000000000x To dev ttyUSBO Received
34. wing or setting logging interval reporting parameters An example response is LI 0000000360s 0000000005m 00000001215 0000000004m 00000017 60m Revision 1 9 Page 36 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 2 13 9 Logging interval reporting period setting Executing the command LPS Xx sets the seconds period of the timed interval reports to the EEPROM and RAM for booting and immediate use The units are seconds For example LPS0000000360x sets the reporting time to once every 360 seconds Executing the command LPM x sets the seconds period of the timed interval reports to the EEPROM and RAM for booting and immediate use The units are seconds For example LPS0000000005x sets the reporting time to once every 5 minutes 4 2 13 10 Logging threshold setting for interval reporting Executing the command LT X sets the threshold of the timed interval reports to EEPROM and RAM for boot and immediate use magnitudes arcsecond magnitudes arcsecond The units are For example LTOQ000016 00x limits reporting to values only over 16 00 Revision 1 9 Page 37 Last modified Feb 1 2012 Unihedron SOM LU DL Users manual 4 2 13 11 Set and read logging Real Time Clock The SQM LU DL model contains a Real Time Clock RTC powered by a large storage capacitor The RTC is set with the LCx command as follows 0

Download Pdf Manuals

image

Related Search

Related Contents

CORTINA DE AIRE    平膜テストユニット FTU-1 取扱説明書 メンブレン・ソルテック  Guide n°2 CADRE D`ANALYSE Etablissements  取扱説明書  Manual de montagem - Müller Elektronik GmbH & Co.  Sennheiser Freeport User's Manual    Operating Instructions  Assurance- vie : mode d`emploi  

Copyright © All rights reserved.
Failed to retrieve file