using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Net.Sockets; using System.IO; using System.Threading; using System.Runtime.Serialization.Formatters.Binary; using System.Runtime.InteropServices; using System.Reflection; namespace FPER { public enum default_value_define : byte { prt_header_id = 0x02, size_PRTReceiver_Type1 = 0x07, size_PRTReceiver_Type2 = 0x08, size_PRTReceiver_Type3 = 0x09, size_PRTReceiver_Type4 = 0x0A, size_PRTReceiver_Type5 = 0x0B, size_PRTReceiver_Type6 = 0x0C, size_PRTIO_Type1 = 0x07, size_PRTIO_Type2 = 0x08, size_PRTIO_Type3 = 0x09, size_PRTIO_Type4 = 0x0A, size_PRTDemon_Type1 = 0x07, size_PRTReceiver_Type7 = 0x88, size_PRTWrite_AnalogDetecter_Level = 0x0C, // cyim 2015.6.29 ¾Æ³¯·Î±×°¨Áö±â ·¹º§°ª ¾²±â ¸í·É ÇÁ·ÎÅäÄÝ Ãß°¡ size_PRTReceiver_Type_AnalogDetecterTrend = 0x08 // cyim 2016.10.27 : ´ë¿ë·® ¼ö½Å±â ¾Æ³¯·Î±× °¨Áö±â Æ®·£µå Àбâ } public enum prt_cmd_define : byte { say_hello = 0x01, //¸í·É-sayhollo resd_tbd_state = 0x05, //ÀÀ´ä-Àü¾ÐÀбâ write_tbd_state = 0x06, //¸í·É-Åë½Åº¸µå »óž²±â search_repeater_unit = 0x11, //¸í·É-Áß°è±â °Ë»ö search_repeater_all = 0x12, //¸í·É-Áß°è±â °Ë»ö Àüü read_repeater_all = 0x14,//¸í·É-Áß°è±â Àüü Àбâ write_repeater_output_unit = 0x15,//¸í·É-Áß°è±â Ãâ·Â ¾²±â read_repeater_info_all = 0x18,//¸í·É-Áß°è±â Á¤º¸Àüü Àбâ write_repeater_info_unit = 0x19,//¸í·É-Áß°è±â Á¤º¸ ¾²±â write_repeater_info_all = 0x1A,//¸í·É-Áß°è±â Á¤º¸Àüü ¾²±â reset_repeater_unit = 0x1B,//¸í·É-Áß°è±âȸ·Î reset reset_repeater_all = 0x1C,//¸í·É-Áß°è±âreset write_repeater_input_unit = 0x1D, //¸í·É-Áß°è±âÀԷ¾²±â sayhello_to_ioboard = 0x61,//¸í·É-sayhello ioº¸µå read_ioboard_status = 0x62,//¸í·É-ioº¸µå»óÅÂÀбâ write_ioboard_status = 0x03,//¸í·É-ioº¸µå »óž²±â read_ioboard_data = 0x64,//¸í·É-ioº¸µåµ¥ÀÌÅÍÀбâ write_ioboard_data = 0x65,//¸í·É-ioº¸µåµ¥ÀÌÅ;²±â read_ioboard_point_data = 0x66,//¸í·É-ioº¸µåµ¥ÀÌÅÍÀбâ write_ioboard_point_data = 0x67,//¸í·É-ioº¸µåµ¥ÀÌÅ;²±â sayhello_to_demon = 0x71,//¸í·É-sayhelloµ¥¸ó start_polling = 0x72,//¸í·É-Æú¸µ½ÃÀÛ stop_polling = 0x73,//¸í·É-Æú¸µÁ¾·á read_demon_status = 0x74,//¸í·É-µ¥¸ó»óÅ notify_db_update = 0x75, //¸í·É-¼³Á¤Á¤º¸º¯°æ read_command_status = 0x76, //¸í·É-´©ÀûÄ«¿îÆ®Àбâ write_analogdetecter_level = 0x78, // cyim 2015.6.29 ¾Æ³¯·Î±×°¨Áö±â ·¹º§°ª ¾²±â ¸í·É ÇÁ·ÎÅäÄÝ Ãß°¡ read_analogdetecter_trend = 0x24, // cyim 2016.10.27 : ´ë¿ë·® ¼ö½Å±â ¾Æ³¯·Î±× °¨Áö±â Æ®·£µå Àбâ write_analogdetecter_level_all = 0x22 // cyim 2016.10.28 : ´ë¿ë·® ¼ö½Å±â ¾Æ³¯·Î±× °¨Áö±â ·¹º§ Block ¾²±â } public enum prt_res_define : byte { general_ack = 0x81, //ÀÀ´ä-Á¤»ó general_nack = 0x80, //ÀÀ´ä-½ÇÆÐ say_hello = 0x81, //ÀÀ´ä-sayhollo resd_tbd_state = 0x85, //ÀÀ´ä-Àü¾ÐÀбâ write_tbd_state = 0x86, //ÀÀ´ä-Åë½Åº¸µå »óž²±â search_repeater_unit = 0x91, //ÀÀ´ä-Áß°è±â °Ë»ö search_repeater_all = general_ack, //ÀÀ´ä-Áß°è±â °Ë»ö Àüü read_repeater_all = 0x94, //ÀÀ´ä-Áß°è±â Àüü Àбâ write_repeater_output_unit = 0x95, //ÀÀ´ä-Áß°è±â Ãâ·Â ¾²±â read_repeater_info_all = 0x98, //ÀÀ´ä-Áß°è±â Á¤º¸Àüü Àбâ write_repeater_info_unit = 0x99, //ÀÀ´ä-Áß°è±â Á¤º¸ ¾²±â reset_repeater_unit = general_ack, //ÀÀ´ä-Áß°è±âȸ·Î reset reset_repeater_all = general_ack, //ÀÀ´ä-Áß°è±âreset write_repeater_input_unit = 0x9D, //ÀÀ´ä-Áß°è±âÀԷ¾²±â sayhello_to_ioboard = general_ack, //ÀÀ´ä-sayhello ioº¸µå read_ioboard_status = 0xE2, //ÀÀ´ä-ioº¸µå»óÅÂÀбâ write_ioboard_status = 0xE3, //ÀÀ´ä-ioº¸µå »óž²±â read_ioboard_data = 0xE4, //ÀÀ´ä-ioº¸µåµ¥ÀÌÅÍÀбâ write_ioboard_data = 0xE5, //ÀÀ´ä-ioº¸µåµ¥ÀÌÅ;²±â sayhello_to_demon = general_ack, //ÀÀ´ä-sayhelloµ¥¸ó start_polling = general_ack, //ÀÀ´ä-Æú¸µ½ÃÀÛ stop_polling = general_ack, //ÀÀ´ä-Æú¸µÁ¾·á read_demon_status = 0xF4, //ÀÀ´ä-µ¥¸ó»óÅ read_notify_staus = 0x77, //ÀÀ´ä-»óž˸² notify_db_update = general_ack, //ÀÀ´ä-¼³Á¤Á¤º¸º¯°æ read_command_status = 0xF6, //ÀÀ´ä-´©ÀûÄ«¿îÆ®Àбâ read_repeater_all_E1 = 0xD4, //ÀÀ´ä-Áß°è±â Àüü Àбâ read_repeater_all_E2 = 0xB4, //ÀÀ´ä-Áß°è±â Àüü Àбâ write_analogdetecter_level = 0xF8, // cyim 2015.6.29 ¾Æ³¯·Î±×°¨Áö±â ·¹º§°ª ¾²±â ¸í·É ÇÁ·ÎÅäÄÝ Ãß°¡ : ÀÀ´ä-¾Æ³¯·Î±×°¨Áö±â ·¹º§ ¾²±â read_analogdetecter_trend = 0xA4, // cyim 2016.10.27 : ´ë¿ë·® ¼ö½Å±â ¾Æ³¯·Î±× °¨Áö±â Æ®·£µå Àбâ write_analogdetecter_level_all = 0xA2 // cyim 2016.10.28 : ´ë¿ë·® ¼ö½Å±â ¾Æ³¯·Î±× °¨Áö±â ·¹º§ Block ¾²±â } }