background image

TREK-120 User Manual 

 

Copyright

 

 

The documentation and the software included with this product are copyrighted 2019 
by Advantech Co., Ltd. All rights are reserved. Advantech Co., Ltd. reserves the right 
to make improvements in the products described in this manual at any time without 
notice. No part of this manual may be reproduced, copied, translated or transmitted 
in any form or by any means without the prior written permission of Advantech Co., 
Ltd. Information provided in this manual is intended to be accurate and reliable. How- 
ever, Advantech Co., Ltd. assumes no responsibility for its use, nor for any infringe- 
ments of the rights of third parties, which may result from its use. 

 

 

Acknowledgements

 

 

Windows is registered trademarks of Microsoft. 

All other product names or trademarks are properties of their respective owners. 

 

Product Warranty (2 years)

 

 

Advantech warrants  to  you,  the  original  purchaser,  that  each  of  its  products  will  be 
free from defects  in  materials and  workmanship for  two  years from the  date  of  pur- 
chase. 

This warranty does not apply to any products which have been repaired or altered by 
persons  other  than  repair  personnel  authorized  by  Advantech, or  which  have  been 
subject  to  misuse,  abuse,  accident  or  improper  installation. Advantech  assumes  no 
liability under the terms of this warranty as a consequence of such events. 

Because of Advantech’s high quality-control standards and rigorous testing, most of 
our customers never need to use our repair service. If an Advantech product is defec- 
tive, it will be repaired or replaced at no charge during the warranty period. For out- 
of-warranty repairs, you will be billed according to the cost of replacement materials, 
service time and freight. Please consult your dealer for more details. 

If you think you have a defective product, follow these steps: 

1. 

Collect all the information about the problem encountered. (For example, CPU 
speed, Advantech products used, other hardware and software used, etc.) Note 
anything abnormal and list any onscreen messages you get when the problem 
occurs. 

2. 

Call your dealer and describe the problem. Please have your manual, product, 
and any helpful information readily available. 

3. 

If your product is diagnosed as defective, obtain an RMA (return merchandize 
authorization) number from your dealer. This allows us to process your return 
more quickly. 

4. 

Carefully pack the defective product, a fully-completed Repair and Replacement 
Order Card and a photocopy proof of purchase date (such as your sales receipt) 
in a shippable container. A product returned without proof of the purchase date 
is not eligible for warranty service. 

5. 

Write the RMA number visibly on the outside of the package and ship it prepaid 
to your dealer. 

 

 

 

 

 

Part No.  

Edition 1 

 

Jan  2019 

Summary of Contents for TREK-120ANR

Page 1: ...User Manual TREK 120ANR NFC reader...

Page 2: ...ability under the terms of this warranty as a consequence of such events Because of Advantech s high quality control standards and rigorous testing most of our customers never need to use our repair s...

Page 3: ...urning the equip ment off and on the user is encouraged to try to correct the interference by one or more of the following measures Reorient or relocate the receiving antenna Increase the separation b...

Page 4: ...d the latest information about the product 2 Contact your distributor sales representative or Advantech s customer service center for technical support if you need additional assistance Please have th...

Page 5: ...me or equivalent type recommended by the man ufacturer Discard used batteries according to the manufacturer s instructions Note Notes provide optional additional information Document Feedback To assis...

Page 6: ...ipment has obvious signs of breakage 16 CAUTION The computer is provided with a battery powered real time clock cir cuit There is a danger of explosion if battery is incorrectly replaced Replace only...

Page 7: ...on t touch any components on the mainboard or other cards while the system is on Disconnect power before making any configuration changes The sudden rush of power as you connect a jumper or install a...

Page 8: ...Chapter 1 1 General Information This chapter gives background information on the TREK 120 Cold chain Sensor Sections include Introduction General Specifications Dimensions...

Page 9: ...ress and support a wide operating temperature range 20 65 C 4 149 F Moreover the sensor design is compact lightweight 108 g and cableless and can be easily installed using magnets or an adhesive backi...

Page 10: ...Chapter 1 General Information 1 3 Dimensions NFC reader Figure 1 1 TREK 120 dimensions...

Page 11: ...Chapter 2 2 System Setup This chapter details system setup on TREK 120 Sections include A Quick Tour of TREK 120 Installation Procedures...

Page 12: ...SDK from the website c Unzip SDK file Password is the same as the file name and Launch coldchain_demo exe d Go to Setting and then select COM port which NFC reader connected then press Open 2 2 2 Setu...

Page 13: ...ng will be written into TREK 120 Press Start logger then the TREK 120 will start record temperature humidity Press Stop logger then the TREK 120 will be stopped record c Go to Check to check the confi...

Page 14: ...data will be shown on the screen You also can export to CSV file to save in other disk...

Page 15: ...Chapter 3 6 Cold Chain API This chapter explains the software API for TREK 120...

Page 16: ...guage C only SDK Package Structure You can get the following contents by extracting the SDK package Directory Description bin DLL Demo Program doc Document and Release Note include RFID Driver sample...

Page 17: ...is on 3 2 Application Programming Interface API Enumeration AlarmMode Enum 0 CONTINUOUS Alarm trigger mode to continuous 1 CUMULATIVE Alarm trigger mode to cumulative ButtonActivate Enum 0 NOT_SUPPOR...

Page 18: ...ateway Version driver_api_version Point to Jogtek RFID DLL API Version Setting_Logger Structure Syntax Windows Description Configure logger sensor internal information Members record_interval_minutes...

Page 19: ...larm_frequency Set logger sensor humidity alarm frequency humidity_alarm_mode humidity according to alarm frequency select type Please refer to AlarmMode Enum falling_alarm_bound Logger sensor falling...

Page 20: ...or the first record time stamp record_index Logger sensor record count record_interval_minutes Logger sensor record interval minutes temperature_alarm_upper_bound Logger sensor temperature alarm upper...

Page 21: ...ing_record_index Logger sensor falling count falling_alarm_bound Logger sensor falling alarm bound over_alert The LoRA sensor overflow flag Please refer to Overflow_Flag Structure lora_channel Get LoR...

Page 22: ...alarm_upper_bound public int temperature_alarm_lower_bound public WarningType temperature_Warning public double humidity public int humidity_alarm_upper_bound public int humidity_alarm_lower_bound pub...

Page 23: ...ount record_datetime One array Record each data timestamp temperature One array Record each data temperature temperature_alarm_upper_bound logger sensor temperature alarm upper temperature_alarm_lower...

Page 24: ...umidity_Warning Judgment humidity alarm status Please refer to WarningType Enum internal_battery_voltage Internal battery voltage external_battery_voltage External battery voltage falling_record_index...

Page 25: ...public double humidity public double internal_battery_voltage public double external_battery_voltage public int falling_record_index public string falling_datetime public int rssi public int snr publi...

Page 26: ...p temperature Receive data temperature humidity Receive data humidity internal_battery_voltage Internal battery voltage external_battery_voltage External battery voltage falling_record_index LoRa sens...

Page 27: ...ratio crc The cyclic redundancy check external_battery_life Shows the percentage of external voltage firmware_version LoRa sensor version over_alert The LoRA sensor overflow flag Please refer to Over...

Page 28: ...ow public bool falling_record_index_overflow public bool lora_transmission_stop public bool internal_battery_low public bool external_battery_low Description Save the LoRA sensor overflow flag Members...

Page 29: ...pens has reached 30 lora_transmission_stop The external battery voltage is lower than the voltage configuration value before wireless transmission internal_battery_low The internal battery voltage has...

Page 30: ...auto_startup public int date public int hour public int minute public int second Description Save the LoRA sensor overflow flag Members auto_startup Enable Disable Appointment Time Function date Sett...

Page 31: ...second Setting Second time...

Page 32: ...nt coldchain_init string COM_Port Description Open the NFC Reader through the serial port Parameters COM_Port in Specifies which Serial Port Path to connect firmware For example COM1 Returns ADVCC_ERR...

Page 33: ...coldchain_deinit Syntax Windows public int coldchain_deinit Description Close NFC Reader the serial port Parameters None Returns ADVCC_ERR_SUCCESS On success Otherwise see the error code list...

Page 34: ...ublic int coldchain_get_version ref Version FirmwareVer Description Get the version of firmware Parameters FirmwareVer out Please refer to Version Structure Returns MRM_ERR_NO_ERROR On success Otherwi...

Page 35: ...ger Description Configure logger sensor internal information Parameters Logger in Please refer to Setting_Logger Structure Returns MRM_ERR_NO_ERROR On success Otherwise see the error code list Remark...

Page 36: ...n_start_logger Syntax Windows public int coldchain_start_logger Description Start logger sensor to record data Parameters None Returns MRM_ERR_NO_ERROR On success Otherwise see the error code list Rem...

Page 37: ...coldchain_stop_logger Syntax Windows public int coldchain_stop_logger Description Stop logger sensor Parameters None Returns MRM_ERR_NO_ERROR On success Otherwise see the error code list Remark None...

Page 38: ...n_get_sensor_info ref Sensor_Info information Description Get logger sensor internal information Parameters information out Please refer to Sensor_Internal_Information Structure Returns MRM_ERR_NO_ERR...

Page 39: ...t_sensor_data ref Sensor_data OD_data Description Get logger sensor record temperature and humidity information Parameters OD_data out Please refer to Sensor_Internal_data Structure Returns MRM_ERR_NO...

Page 40: ...ef double temperature_avg Description Get temperature average Parameters OD_data in Pointer to the node object handle that is the returned by coldchain_get_sensor_data temperature_avg out Calculation...

Page 41: ...a ref double humidity_avg Description Get humidity average Parameters OD_data in Pointer to the node object handle that is the returned by coldchain_get_sensor_data humidity_avg out Calculation total...

Page 42: ...tring FilePath Description Export temperature and humidity data to csv Parameters OD_data in Pointer to the node object handle that is the returned by coldchain_get_sensor_data FilePath in Save file l...

Page 43: ...D_data string FilePath Description Export falling data to csv Parameters OD_data in Pointer to the node object handle that is the returned by coldchain_get_sensor_data FilePath in Save file location R...

Page 44: ...FilePath Description Export temperature and humidity alarm data to csv Parameters OD_data in Pointer to the node object handle that is the returned by coldchain_get_sensor_data FilePath in Save file l...

Page 45: ...serial port Parameters COM_Port in Specifies which Serial Port Path to connect firmware For example COM1 lora_channel in Set LoRa frequency channel Value 1 to 5 lora_data_rate in Set Data Rate Value 0...

Page 46: ...hain_gateway_deinit Syntax Windows public int coldchain_gateway_deinit Description Close LoRa Gateway the serial port Parameters None Returns ADVCC_ERR_SUCCESS On success Otherwise see the error code...

Page 47: ...c int coldchain_gateway_get_version ref Version FirmwareVer Description Get the Gateway version of firmware Parameters FirmwareVer out Please refer to Version Structure Returns MRM_ERR_NO_ERROR On suc...

Page 48: ...y_start_receive_lora_data ReceiveLoRaCallBack cb Description When the event is triggered the ReceiveLoRaCallBack callback of registered handler instance will be triggered Parameters cb in Pointer to a...

Page 49: ...ta Syntax Windows public int coldchain_gateway_stop_receive_lora_data Description Clear the callback registration of the ReceiveLoRaCallBack Parameters None Returns MRM_ERR_NO_ERROR On success Otherwi...

Page 50: ...ic int coldchain_gateway_added_filter string uid Description Designate LoRa uid add whitelist for filter Only added uid will receive Parameters uid in Receive LoRa uid Returns MRM_ERR_NO_ERROR On succ...

Page 51: ...yntax Windows public int coldchain_gateway_remove_filter string uid Description Designate LoRa uid remove whitelist Parameters uid in Receive LoRa uid Returns MRM_ERR_NO_ERROR On success Otherwise see...

Page 52: ...in_gateway_reset_filter Syntax Windows public int coldchain_gateway_reset_filter Description Reset whitelist Parameters None Returns MRM_ERR_NO_ERROR On success Otherwise see the error code list Remar...

Page 53: ...Windows public int coldchain_gateway_get_filter ref string uid Description Get all the uid values in the whitelist Parameters uid out Get setting uid list Returns MRM_ERR_NO_ERROR On success Otherwise...

Page 54: ...CY_ERROR 20000005 ADVCC_ERR_SET_HUMIDITY_UPPER_ERROR 20000006 ADVCC_ERR_SET_HUMIDITY_LOWER_ERROR 20000007 ADVCC_ERR_SET_HUMIDITY_FREQUENCY_ERROR 20000008 ADVCC_ERR_SET_FALLING_BOUND_ERROR 20000009 ADV...

Page 55: ...40000003 ADVCC_ERR_GATEWAY_RECEIVE_NOT_ACTIVE 40000004 ADVCC_ERR_GATEWAY_FILTER_ALREADY_SETTING 40000005 ADVCC_ERR_GATEWAY_FILTER_NOT_SETTING...

Page 56: ...tions are subject to change without notice No part of this publication may be reproduced in any form or by any means electronic photocopying recording or otherwise without prior written permis sion of...

Reviews: