{"id":28282317,"url":"https://github.com/bondrogeen/hilinkhuawei","last_synced_at":"2025-06-17T04:31:20.175Z","repository":{"id":47096121,"uuid":"82468996","full_name":"bondrogeen/hilinkhuawei","owner":"bondrogeen","description":"Client for modems with firmware HiLink","archived":false,"fork":false,"pushed_at":"2023-05-10T06:35:08.000Z","size":46,"stargazers_count":15,"open_issues_count":1,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-02T09:25:22.104Z","etag":null,"topics":["hilink","sms","usbmodem","ussd"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bondrogeen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-19T15:32:00.000Z","updated_at":"2023-01-11T18:56:18.000Z","dependencies_parsed_at":"2022-09-16T23:51:26.276Z","dependency_job_id":null,"html_url":"https://github.com/bondrogeen/hilinkhuawei","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bondrogeen/hilinkhuawei","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bondrogeen%2Fhilinkhuawei","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bondrogeen%2Fhilinkhuawei/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bondrogeen%2Fhilinkhuawei/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bondrogeen%2Fhilinkhuawei/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bondrogeen","download_url":"https://codeload.github.com/bondrogeen/hilinkhuawei/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bondrogeen%2Fhilinkhuawei/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260293269,"owners_count":22987589,"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":["hilink","sms","usbmodem","ussd"],"created_at":"2025-05-21T14:22:01.302Z","updated_at":"2025-06-17T04:31:20.162Z","avatar_url":"https://github.com/bondrogeen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Logo](api/hilink.png)\n\nКлиент для Huawei модемов с прошивками HiLink  \n\nПроверенно на модемах:         \nE3372h-153_Update_22.323.01.00.143_M_AT_05.10      \nE3372s Update_22.286.53.01.161_S_ADB_TLN_03    \n   \nПрошивки и другую информацию можно найти тут - http://4pda.ru/forum/index.php?showtopic=582284\u0026    \n   \n\n* Установка   \n   \n$ npm install hilinkhuawei   \n   \n[![NPM version](http://img.shields.io/npm/v/hilinkhuawei.svg)](https://www.npmjs.com/package/hilinkhuawei)    \n[![Downloads](https://img.shields.io/npm/dm/hilinkhuawei.svg)](https://www.npmjs.com/package/hilinkhuawei)    \n    \nGithub: https://github.com/bondrogeen/hilinkhuawei    \n\n* Совместимость\nE3372 (МТС 827F/829F, МегаФон M150-2, Билайн E3372/E3370, TELE2 E3372р-153   \n\n\n\t  \n* Include  \n\n\tvar hilink = require('hilinkhuawei');   \n\t\n* Изменить IP адрес (default 192.168.8.1)   \n\n\thilink.setIp('192.168.8.x')   \n\t\n* Изменить отображение статистики трафика  (default - 'auto')   \n    \n    'auto' - автоматическое отображение в B, KB, MB, GB, TB и времени в 00:00:10    \n    'def'  - по умолчанию трафик в битах, время в сек.   \n      \n    hilink.setTrafficInfo('def')   \n    \n* Изменить версии модема   (default - '3372s')     \n\n    Прошивки hilink разной версии имеют разную аутентификацию:  \n    '3372s' - по token  \n    '3372h' - по token и cookie  \n    \n    hilink.setModel('3372s')   \n\n* Отправка ussd ( *100#, callback )   \n   \n    hilink.ussd( '*100#', function( response ){  \n        console.log(JSON.stringify(response) );  \n    });   \n\n* Ответ: *   \n\n\t{\"response\":{   \n\t\"content\":[\"Баланс:88,19р,Лимит:0,01р \"],   \n\t\"response\":\"OK\"\t}   \n\t}   \n\n \n* Отправка SMS ( number, text, callback )   \n  \n\thilink.send( '12345678', 'Hello world', function( response ){   \n\t\tconsole.log( JSON.stringify( response, null, 2 ) );  \n\t});   \n\t\n* Ответ: *  \n  \n\t{ response: 'OK' }  \n\t\n* Отправка без сохранения  SMS ( number, text, callback )  \n\n\thilink.sendAndDelete( '12345678', 'Hello world', function( sendResponse, deleteResponse ){  \n\t\tconsole.log( JSON.stringify(sendResponse) );  \n\t\tconsole.log( JSON.stringify(deleteResponse) );  \n\t});\n\t\n* Ответ: *    \n\n\t{ response: 'OK' }  \n\t{ response: 'OK' }  \n\n* Подключиться к сети ('connect',callback)   \n* Отключиться от сети ('disconnect',callback)   \n* Перезагрузка модема ('reboot',callback)   \n\nhilink.control('conect',function(response ){   \n    console.log( JSON.stringify( response, null, 2 ) );   \n});\n\n* Ответ: *  \n\n{  response: 'OK'  }  \n\n\n* Список исходящих сообщений (callback)   \n\n\thilink.listOutbox(function( response ){   \n \t\tconsole.log( JSON.stringify( response, null, 2 ) );  \n\t});  \n\t\n* Ответ: *   \n\n   {  \n     \"response\": [   \n       {  \n         \"Smstat\": \"3\",   \n         \"Index\": \"40007\",   \n         \"Phone\": \"123456789\",  \n         \"Content\": \"4454545454\",  \n         \"Date\": \"2017-02-25 20:36:30\",  \n         \"Sca\": \"\",   \n         \"SaveType\": \"3\",  \n         \"Priority\": \"4\",  \n         \"SmsType\": \"1\"  \n       },  \n       {  \n         \"Smstat\": \"3\",   \n         \"Index\": \"40003\",  \n         \"Phone\": \"123456789\",   \n         \"Content\": \"121213\",  \n         \"Date\": \"2017-02-23 14:21:29\",   \n         \"Sca\": \"\",  \n         \"SaveType\": \"3\",  \n         \"Priority\": \"4\",  \n         \"SmsType\": \"1\"  \n       }   \n     ],  \n     \"Count\": \"2\"   \n   }\n\n    \n* Список входящих сообщений (callback)   \n  \n\thilink.listInbox(function( response ){   \n \t\tconsole.log( JSON.stringify( response, null, 2 ) );   \n\t});   \n\t \n* Ответ: *   \n\n{  \n  \"response\": [  \n    {  \n      \"Smstat\": \"0\",   \n      \"Index\": \"40012\",  \n      \"Phone\": \"+123456789\",  \n      \"Content\": \"test\",   \n      \"Date\": \"2017-02-25 21:04:45\",  \n      \"Sca\": \"\",  \n      \"SaveType\": \"4\",  \n      \"Priority\": \"0\",  \n      \"SmsType\": \"1\"   \n    },  \n    {   \n      \"Smstat\": \"1\",  \n      \"Index\": \"40001\",   \n      \"Phone\": \"Balance\",   \n      \"Content\": \"Баланс:62,39р,Лимит:0,01р\",  \n      \"Date\": \"2017-02-23 14:20:52\",   \n      \"Sca\": \"\",  \n      \"SaveType\": \"4\",   \n      \"Priority\": \"0\",   \n      \"SmsType\": \"2\" \n    }  \n  ],  \n  \"Count\": \"2\"  \n}  \n    \n \n    \nСписок только новых входящих сообщений (callback)      \n    \n    hilink.listNew(function(response ){   \n        console.log( JSON.stringify( response, null, 2 ) );  \n    });   \n\n\n* Ответ: *      \n    \n{  \n  \"response\": [  \n    {  \n      \"Smstat\": \"0\",   \n      \"Index\": \"40010\",   \n      \"Phone\": \"+123456789\",   \n      \"Content\": \"test text\",    \n      \"Date\": \"2017-02-25 20:37:53\",  \n      \"Sca\": \"\",    \n      \"SaveType\": \"4\",  \n      \"Priority\": \"0\",  \n      \"SmsType\": \"1\"  \n    },  \n    {  \n      \"Smstat\": \"0\",   \n      \"Index\": \"40009\",   \n      \"Phone\": \"+123456789\",   \n      \"Content\": \"test text\",  \n      \"Date\": \"2017-02-25 20:37:50\",  \n      \"Sca\": \"\",  \n      \"SaveType\": \"4\",  \n      \"Priority\": \"0\",  \n      \"SmsType\": \"1\"  \n    },  \n    {  \n      \"Smstat\": \"0\",  \n      \"Index\": \"40008\",  \n      \"Phone\": \"+123456789\",  \n      \"Content\": \"test new sms\",  \n      \"Date\": \"2017-02-25 20:37:47\",   \n      \"Sca\": \"\",   \n      \"SaveType\": \"4\",   \n      \"Priority\": \"0\", \n      \"SmsType\": \"1\"   \n    }\n  ],\n  \"Count\": 3\n}\n    \n* Пометить как прочитаное сообщение   (index,callback)  \n    \n    hilink.setRead('40001',function(response ){  \n        console.log( JSON.stringify( response, null, 2 ) );  \n    });  \n    \n* Ответ: *  \n \n {  response: 'OK'  }  \n \n* Пометить все сообщения как прочитаные  \n\n    hilink.readAll(function(response ){  \n        console.log( JSON.stringify( response, null, 2 ) );  \n    });\n \n* Ответ: *   \n  \n{  \n  \"response\": [  \n    \"40022\",   \n    \"40006\",  \n    \"40004\"   \n  ], \n  \"Count\": 3   \n}   \n   \n    \n* Очистка входящих сообщений  \n\n\thilink.clearInbox();  \n\t  \n* Очистка исходящих сообщений    \n\n\thilink.clearOutbox();    \n  \n* Удаление сообщения по индексу    \n\n    hilink.delete( '40007', function( response ){    \n        console.log(JSON.stringify(response) );    \n    });   \n\n* Ответ: *  \n\n{  response: 'OK'  }   \n  \n\n* Статус (callback)   \n  \n\thilink.status(function( response ){   \n        console.log( JSON.stringify( response, null, 2 ) );   \n    });       \n   \n* Ответ: *    \n     \n\t{   \n      \"response\": {   \n        \"ConnectionStatus\": \"CONNECTED\",   \n        \"SignalIcon\": \"3\",   \n        \"CurrentNetworkType\": \"LTE\",    \n        \"CurrentServiceDomain\": \"3\",   \n        \"RoamingStatus\": \"0\",    \n        \"simlockStatus\": \"0\",    \n        \"WanIPAddress\": \"123.123.123.123\",   \n        \"PrimaryDns\": \"11.11.24.4\",   \n        \"SecondaryDns\": \"11.11.114.15\",      \n        \"currenttotalwifiuser\": \"0\",  \n        \"ServiceStatus\": \"2\",   \n        \"SimStatus\": \"1\",   \n        \"CurrentNetworkTypeEx\": \"101\",   \n        \"maxsignal\": \"5\",    \n        \"wifiindooronly\": \"-1\",  \n        \"wififrequence\": \"0\",    \n        \"classify\": \"hilink\",    \n        \"flymode\": \"0\"    \n      }    \n    }     \n\n\n\n* Уведомление (callback)    \n    \n    \thilink.notifications(function( response ){   \n            console.log( JSON.stringify( response, null, 2 ) );    \n        });      \n    \n* Ответ: *    \n   \n{     \n  \"response\": {     \n    \"UnreadMessage\": \"0\",    \n    \"SmsStorageFull\": \"0\",   \n    \"OnlineUpdateStatus\": \"10\"    \n  }     \n}    \n\n* Статус оператора сети (callback)    \n\n    \thilink.statusNet(function( response ){    \n            console.log( JSON.stringify( response, null, 2 ) );   \n        });   \n\n* Ответ: *    \n\n{   \n  \"response\": {   \n    \"State\": \"0\",    \n    \"FullName\": \"MTS-RUS\",   \n    \"ShortName\": \"MTS\",    \n    \"Numeric\": \"25001\",   \n    \"Rat\": \"7\"   \n  }   \n}   \n\n* Состояние о кол. смс (callback)   \n\n    \thilink.smsCount(function( response ){   \n            console.log( JSON.stringify( response, null, 2 ) );   \n        });   \n\n* Ответ: *   \n   \n{   \n  \"response\": {    \n    \"LocalUnread\": \"0\",   \n    \"LocalInbox\": \"3\",    \n    \"LocalOutbox\": \"1\",   \n    \"LocalDraft\": \"2\",   \n    \"LocalDeleted\": \"0\",   \n    \"SimUnread\": \"0\",      \n    \"SimInbox\": \"1\",   \n    \"SimOutbox\": \"0\",   \n    \"SimDraft\": \"0\",   \n    \"LocalMax\": \"500\",   \n    \"SimMax\": \"5\",   \n    \"SimUsed\": \"1\",    \n    \"NewMsg\": \"0\"   \n  }   \n}   \n   \n* Уровень сигнала (callback)   \n  \n    \thilink.signal(function( response ){   \n            console.log( JSON.stringify( response, null, 2 ) );   \n        });   \n\n* Ответ: *   \n\n{   \n  \"response\": {    \n    \"pci\": \"123\",   \n    \"cell_id\": \"123456789\",   \n    \"rsrq\": \"-7dB\",    \n    \"rsrp\": \"-97dBm\",   \n    \"rssi\": \"-81dBm\",   \n    \"sinr\": \"8dB\",   \n    \"mode\": \"7\"   \n  }   \n}   \n   \n* Адреса  (callback)   \n\n    \thilink.settingsNet(function( response ){    \n            console.log( JSON.stringify( response, null, 2 ) );    \n        });   \n\n* Ответ: *   \n\n{  \n  \"response\": {   \n    \"DhcpIPAddress\": \"192.168.8.1\",   \n    \"DhcpLanNetmask\": \"255.255.255.0\",   \n    \"DhcpStatus\": \"1\",    \n    \"DhcpStartIPAddress\": \"192.168.8.100\",   \n    \"DhcpEndIPAddress\": \"192.168.8.200\",   \n    \"DhcpLeaseTime\": \"86400\",   \n    \"DnsStatus\": \"1\",   \n    \"PrimaryDns\": \"192.168.8.1\",   \n    \"SecondaryDns\": \"192.168.8.1\"    \n  }   \n}   \n\n* Информация о модеме (callback)   \n\n    \thilink.basicInfo(function( response ){\n            console.log( JSON.stringify( response, null, 2 ) );\n        });\n\n* Ответ: *    \n\n{   \n  \"response\": {    \n    \"productfamily\": \"LTE\",    \n    \"classify\": \"hilink\",   \n    \"multimode\": \"0\"   \n  }   \n}   \n\n* Статистика трафика (callback)\n\n    \thilink.traffic(function( response ){\n            console.log( JSON.stringify( response, null, 2 ) );\n        });\n\n* Ответ: *\n\n{\n  \"response\": {\n    \"CurrentConnectTime\": \"00:25:46\",   \n    \"CurrentUpload\": \"1.41 MB\",   \n    \"CurrentDownload\": \"75.87 MB\",   \n    \"CurrentDownloadRate\": \"5.35 KB\",   \n    \"CurrentUploadRate\": \"717 B\",   \n    \"TotalUpload\": \"455.63 MB\",   \n    \"TotalDownload\": \"14.66 GB\",   \n    \"TotalConnectTime\": \"94:34:16\",   \n    \"showtraffic\": \"1\"   \n  }\n}\n\n* Статистика трафика за месяц (callback)   \n\n\n    \thilink.trafficMonth (function( response ) {\n            console.log( JSON.stringify( response) );\n        });\n\n\n* Ответ: *\n\n{\n  \"response\": {\n    \"CurrentMonthDownload\": \"14.67 GB\",   \n    \"CurrentMonthUpload\": \"455.74 MB\",   \n    \"MonthDuration\": \"94:35:40\",   \n    \"MonthLastClearTime\": \"2017-2-21\"   \n  }\n}\n\n\n   Changelog \n      \n   2.1.3   \n   \nfix ussd  \n     \n   2.1.1   \n   \nДобавил 3372H   \n   \n   2.0.0    \n   \nИзменил ответ    \n   \n   1.1.1    \n   \nДобавил новые функции    \n   \n   1.0.0    \n   \nИзменения запросов пакету     \n   \n   0.2.1    \n   \nДобавил  статистику трафика за месяц, изменил отображение статистики трафика, статус подключения и отображения типа сети. \nДобавил ответ от оператора от USSD запроса. \nУдаление по индексу сообщения.\n\t\t\t\n\t\t\t\n   0.1.2 \n   \n   Добавил ussd команды\n   \n   0.1.1 \n\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbondrogeen%2Fhilinkhuawei","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbondrogeen%2Fhilinkhuawei","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbondrogeen%2Fhilinkhuawei/lists"}