{"id":18565601,"url":"https://github.com/leech001/hcs301","last_synced_at":"2025-04-10T04:33:03.607Z","repository":{"id":44758997,"uuid":"222520690","full_name":"leech001/HCS301","owner":"leech001","description":"STM32 HAL library for reading code from HCS301 433Mhz Keeloq","archived":false,"fork":false,"pushed_at":"2020-06-02T14:06:37.000Z","size":422,"stargazers_count":19,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T16:27:29.128Z","etag":null,"topics":["433mhz","barrier-gate","hal","hcs301","keeloq","radio-control","radio-frequency","stm32"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leech001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-18T18:51:40.000Z","updated_at":"2024-11-26T18:47:29.000Z","dependencies_parsed_at":"2022-09-13T15:23:52.386Z","dependency_job_id":null,"html_url":"https://github.com/leech001/HCS301","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leech001%2FHCS301","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leech001%2FHCS301/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leech001%2FHCS301/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leech001%2FHCS301/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leech001","download_url":"https://codeload.github.com/leech001/HCS301/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248157705,"owners_count":21057057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["433mhz","barrier-gate","hal","hcs301","keeloq","radio-control","radio-frequency","stm32"],"created_at":"2024-11-06T22:19:30.058Z","updated_at":"2025-04-10T04:33:03.357Z","avatar_url":"https://github.com/leech001.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## A simple C library (STM32 HAL) for reading and sending code for HCS301 433Mhz Keeloq 66 bit.\n\n### This library use for control automation garage door and road barriers.\n\n### Receive code\n\n#### Config you RX433 PIN with \"GPIO_EXTI\":\n - External Interrupt Mode with Rising/Falling edge trigger detection;\n - No pull up no pull down.\n\nand add NVIC global interrupt for you RXPIN.\n\nCopy the library header and source file to the appropriate project directories (Inc, Src).\n\nConfig you RX433 and TX433 PORT and PIN on hcs301.h file\n```\n#define RX_PORT         You_RX_GPIO_Port\n#define RX_PIN          You_Rx_Pin\n```\nIn the main file of your project (main.c), include the header files.\n\nMicros library download from https://github.com/leech001/micros\n```\n/ * USER CODE BEGIN Includes * /\n#include \"micros.h\"\t\t      \n#include \"hcs301.h\"\n/ * USER CODE END Includes * /\n```\n\nadd HCS301 structure to the section\n```\n/ * USER CODE BEGIN PV * /\nHCS301_t hcs301;\n/ * USER CODE END PV * /\n```\nadd RX433 receive interrupt\n```\n/* USER CODE BEGIN 0 */\nvoid HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) {\n\tif (GPIO_Pin == You_Rx_Pin){\n\t    HCS301_Int()\n\t}\n}\n/* USER CODE END 0 */\n```\nadd in main function section for initial initialization of the DWT (Data Watchpoint and Trace unit) (https://github.com/leech001/micros) \n```\n/ * USER CODE BEGIN 2 * /\n  DWT_Init();\n/ * USER CODE END 2 * /\n```\nOn this project setup is ready.\nAfter starting the program, information from RX433(HCS301) will be available through the hcs301 structure\n```\n...\nhcs301.SerialNum\n...\n```\n\n## Send code\n#### Config you TX433 PIN with \"Output Push Pull\":\n - Speed Very High;\n - No pull up no pull down.\n \nCopy the library header and source file to the appropriate project directories (Inc, Src).\n\nConfig you RX433 and TX433 PORT and PIN on hcs301.h file\n```\n#define TX_PORT         You_TX_GPIO_Port\n#define TX_PIN          You_TX_Pin\n```\nIn the main file of your project (main.c), include the header files.\n\nMicros library download from https://github.com/leech001/micros\n```\n/ * USER CODE BEGIN Includes * /\n#include \"micros.h\"\t\t      \n#include \"hcs301.h\"\n/ * USER CODE END Includes * /\n```\n#### For send code HCS301 use function\n```\nHCS301_Send(you_code);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleech001%2Fhcs301","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleech001%2Fhcs301","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleech001%2Fhcs301/lists"}