Ö§³ÖÖÐÐÄ
USR-G805p MQTTÁ¬½Ó°¢ÀïÔƸñʽ»¯Êä³öʾÀý
2024-07-12



USR-G805p MQTTÁ¬½Ó°¢ÀïÔƸñʽ»¯Êä³öʾÀý

Ò»¡¢×ÊÁÏÏÂÔØ

USR-G805p ˵Ã÷Êé/Download/1163.html

USR-G805p ¹æ¸ñÊé /Download/1164.html

¡¾PC¶Ëµ÷ÊÔ¹¤¾ß¡¿ÍøÂçµ÷ÊÔÖúÊÖ ´®¿Úµ÷ÊÔÖúÊÖ¶þºÏÒ»/Download/27.html

MQTTfxÈí¼þ¿ÉÒÔ°Ù¶È×ÔÐÐÏÂÔØ¡£

±¸×¢£ºMQTT¹¦ÄÜ¿ÉÒԲο¼USR-DR504/514 ±ßÔµ¼ÆËã+MQTTʹÓÃ×ÊÁÏ°ü£º/Download/990.html

°¢ÀïÔƵØÖ·https://www.aliyun.com/daily-act/ecs/activity_selection?utm_content=se_1015274566&accounttraceid=3286d10b24cb457ab8ef09a789aeff03mqxd

¶þ¡¢Ó²¼þÁ¬½Ó

1¡¢ËùÐèÎïÆ·

USR-G805p ²úÆ· 1̨

12VµçÔ´ÊÊÅäÆ÷ 1Ìõ

USB-RS485´®¿ÚÏß 1Ìõ

±Ê¼Ç±¾µçÄÔ 1̨

2¡¢Ó²¼þÁ¬½Ó

USR-G805pµÄ485´®¿Ú½ÓUSB-RS485´®¿ÚÏßµ½µçÄÔUSB¿Ú£¬½ÓºÃ4GÌìÏߣ¬²åºÃÍâÖÃSIM¿¨£¬È»ºó²úÆ·½Ó12VµçÔ´ÊÊÅäÆ÷£¬Éϵç¡£USR-G805pµÄLAN1Íø¿ÚÓÃÍøÏߺ͵çÄÔÖ±Á¬£¬µçÄÔ»ñȡͬÍø¶ÎIP¡£

3¡¢²é¿´¶Ë¿ÚºÅ

µçÄÔÊó±êµã»÷¼ÆËã»ú¾­Óª£¬ÓÒ»÷£¬µã¿ªÉ豸¾­ÓªÆ÷£¬µã»÷¶Ë¿Ú£¬²é¿´½ÓUSR-G805pµÄUSB-RS485´®¿ÚÏßCOM¿ÚºÅ£¬COM10¡£

Èý¡¢°¢ÀïÔÆÉèÖÃ

1¡¢µÇ½°¢ÀïÔÆƽ̨£¬ÕÒµ½ÒøºÓGALAXY¹Ù·½ÍøÕ¾Íøƽ̨£¬ÕâÀïÓõÄÁ¬½Ó¹«¹²ÊµÀý

£¨1£©µÇ½°¢ÀïÔÆƽ̨

£¨2£©ÕÒµ½ÒøºÓGALAXY¹Ù·½ÍøÕ¾Íøƽ̨

£¨3£©¿ªÍ¨Á¬½Ó¹«¹²ÊµÀý

2¡¢´´½¨²úÆ·

£¨1£©µã»÷²úÆ·£¬µã»÷´´½¨²úÆ·

£¨2£©Ð½¨²úÆ·ÐÅÏ¢£¬ÒÀ´ÎÌîд£º

²úÆ·Ãû³Æ¾ÙÀýtest¡ª¡ªËùÊôÆ·ÀàÑ¡Ôñ×Ô¶¨ÒåÆ·Àࡪ¡ª½ÚµãÀàÐÍÑ¡ÔñÖ±Á¬É豸¡ª¡ªÁªÍøÓëÊý¾ÝÁªÍø·½Ê½Ñ¡Ôñ·äÎÑ£¨2G/3G/4G/5G£©¡ª¡ªÊý¾Ý¸ñʽѡÔñ͸´«/×Ô¶¨Ò塪¡ªÈÏÖ¤·½Ê½Ñ¡ÔñÉ豸ÃØÔ¿¡ª¡ªµã»÷È·¶¨£¬Íê³É´´½¨²úÆ·¡£

3¡¢Ìí¼ÓÉ豸

£¨1£©²úÆ·´´½¨³É¹¦ºó£¬Ìí¼ÓÉ豸¡£µã»÷É豸£¬µã»÷Ìí¼ÓÉ豸£¬²úÆ·Ãû¾ÙÀýÌîtest,DeviceNameÌîUSR-G805p£¬±¸×¢Ãû³ÆÌîMQTT£¬µã»÷È·ÈÏ¡£

£¨2£©Ìí¼ÓÍêÉ豸£¬ÈçÏÂͼչʾ£¬É豸״̬ÊÇδ¼¤»î£¬µÈÉèÖÃÍêUSR-G805pµÄMQTTÁ¬½Ó°¢ÀïÔƲÎÊýÖ®ºó£¬É豸״̬²ÅÏÔʾÔÚÏß¡£

4¡¢²é¿´²úÆ·Topic

£¨1£©µã»÷²úÆ·£¬µã»÷²é¿´

£¨2£©µã»÷TopicÀàÁбí£¬µã»÷×Ô¶¨ÒåTopic,ÕÒµ½¶©Ôĺͷ¢²¼

ÉèÖÃUSR-G805pµÄMQTT²ÎÊý£¬ÐèÒª°´ÕÕÒÔÏ·½·¨ÉèÖö©ÔĺÍA ·¢²¼Ö÷Ìâ¡£

Êý¾Ý¶©ÔIJâÊÔ£º½«¶©ÔĵÄÖ÷Ìâ/i4u4VIKvRXf/USR-G805p/user/getÌîдµ½USR-G805p¶©ÔĵÄÖ÷ÌâÅäÖÃÖÐÈ¥£¨×¢Ò⽫ԭÖ÷ÌâÖеÄ${deviceName}Ì滻ΪUSR-G805p(±¾²úÆ·µÄDeviceName)£©£»

Êý¾Ý·¢²¼²âÊÔ£º½«·¢²¼µÄÖ÷Ìâ/i4u4VIKvRXf/USR-G805p/user/updateÌîдµ½USR-G805pµÄAÖ÷Ìâ·¢²¼Ö÷ÌâµÄÅäÖÃÖÐÈ¥£¨×¢Ò⽫ԭÖ÷ÌâÖеÄ${deviceName}Ì滻ΪUSR-G805p(±¾²úÆ·µÄDeviceName)£©£»

5¡¢²é¿´É豸֤ÊéÄÚÈÝ£¬Éú³ÉUSR-G805pÁ¬½Ó°¢ÀïÔƵĿ͑ôÃû

£¨1£©µã»÷É豸£¬µã»÷²é¿´£¬ÔÙµã»÷DeviceSecretºóÃæµÄ²é¿´¡£

չʾÉ豸֤Ê飺

ProductKey: i4u4VIKvRXf

DeviceName: USR-G805p

DeviceSecret: c0121c506936fd0399a598dd056fd2e5

£¨2£©×ª»»USR-G805pÁ¬½Ó°¢ÀïÔƵĿ͑ôÃû£º

¿Í‘ôÃû£º ÓÉÉ豸Ãû DeviceName¡¢·ûºÅ£¨&£©ºÍ²úÆ· ProductKey ×é³É¡£

¹Ì¶¨¸ñʽ£º${YourDeviceName}&${YourPrductKey}¡£

ÍêÕûʾÀýÈ磺device&alxxxxxxxxxx¡£

USR-G805pÁ¬½Ó°¢ÀïÔƵĿ͑ôÃû£ºUSR-G805p&i4u4VIKvRXf

6¡¢²é¿´Õ˺ź͵ØÓò£¬Éú³ÉUSR-G805pÁ¬½Ó°¢ÀïÔƵķþÎñÆ÷µØÖ·

£¨1£©²é¿´Ê¹Óõİ¢ÀïÔÆÕ˺Åaliyun9810869345

£¨2£©¸ù¾ÝµØÓòÃû³Æ»ª¶«2£¨ÉϺ££©²éѯµØÓòID£ºcn-shanghai

£¨3£©×ª»»USR-G805pÁ¬½Ó°¢ÀïÔƵķþÎñÆ÷µØÖ·£º

¸ñʽ£º${YourProductKey}.iot-as-mqtt.${region}.aliyuncs.com¡£

ÆäÖУ¬${region}ÐèÌ滻ΪÄúÒøºÓGALAXY¹Ù·½ÍøÕ¾Íøƽ̨·þÎñËùÔÚµØÓòµÄ´úÂë¡£µØÓò´úÂ룬Çë²Î¼ûµØÓòºÍ¿ÉÓÃÇø¡£È磺

alxxxxxxxxxx.iot-as-mqtt.cn-shanghai.aliyuncs.com¡£

USR-G805pÁ¬½Ó°¢ÀïÔƵķþÎñÆ÷µØ£»aliyun9810869345.iot-as-mqtt.cn-shanghai.aliyuncs.com

USR-G805pÁ¬½Ó°¢ÀïÔƵĶ˿ÚÓÃ1883

7¡¢Ê¹ÓÃMQTTÇ©Ãû¹¤¾ß£¬Éú³ÉUSR-G805pÁ¬½Ó°¢ÀïÔƵÄÃÜÂë

£¨1£©´ò¿ªMQTTÇ©Ãû¹¤¾ß

ÏÂÔØUSR-DR504/514 ±ßÔµ¼ÆËã+MQTTʹÓÃ×ÊÁÏ°ü£¬½âѹËõ£¬ÕÒµ½MQTTÇ©Ãû¹¤¾ß

£¨2£©ÃÜÂëÓɲÎÊýֵƴ½Ó¼ÓÃܶø³É

¿ÉÒÔʹÓÃÒøºÓGALAXY¹Ù·½ÍøÕ¾Íøƽ̨ÌṩµÄÉú³É¹¤¾ß×Ô¶¯Éú³É Password£¬Ò²¿ÉÒÔÊÖ¶¯Éú³É Password¡£

µ¥»÷ÏÂÔØ Password Éú³ÉС¹¤¾ß¡£½âѹËõÏÂÔØ°üºó£¬Ë«»÷ sign Îļþ£¬¼´¿ÉʹÓá£

? ʹÓà Password Éú³ÉС¹¤¾ßµÄÊäÈë²ÎÊý£º

? productKey£ºÉ豸ËùÊô²úÆ· Key¡£¿ÉÔÚ¿ØÖÆ̨É豸ÏêÇéÒ³²é¿´¡£

? deviceName£ºÉ豸Ãû³Æ¡£¿ÉÔÚ¿ØÖÆ̨É豸ÏêÇéÒ³²é¿´¡£

? deviceSecret£ºÉ豸ÃÜÔ¿¡£¿ÉÔÚ¿ØÖÆ̨É豸ÏêÇéÒ³²é¿´¡£

? timestamp£º£¨¿ÉÑ¡£©Ê±¼ä´Á¡£

? clientId£ºÉ豸µÄ ID ÐÅÏ¢£¬Óë Client ID ÖÐ${clientId}Ò»Ö¡£

? method£ºÑ¡ÔñÇ©ÃûËã·¨ÀàÐÍ£¬Óë Client ID ÖÐ signmethod È·¶¨µÄ¼ÓÃÜ·½·¨Ò»Ö¡£

£¨3£©×ª»»USR-G805pÁ¬½Ó°¢ÀïÔƵÄÃÜÂë

ÌîÈëÉ豸ÐÅÏ¢£º

? productKeyÉ豸ËùÊô²úÆ· Key£ºi4u4VIKvRXf

? deviceNameÉ豸Ãû³Æ£ºUSR-G805p

? deviceSecretÉ豸ÃÜÔ¿£ºc0121c506936fd0399a598dd056fd2e5

? timestamp£¨¿ÉÑ¡£©Ê±¼ä´Á£º

? clientIdÉ豸µÄ ID ÐÅÏ¢£º1234567890

? methodÑ¡ÔñÇ©ÃûËã·¨ÀàÐÍ£ºhmacsha1

Ç©Ãû½á¹û£ºDED8DE3BC1CE8B7591F7648D27E9967395BB4BBD

USR-G805pÁ¬½Ó°¢ÀïÔƵĵÄÃÜÂ룺DED8DE3BC1CE8B7591F7648D27E9967395BB4BBD

8¡¢Éú³ÉUSR-G805pÁ¬½Ó°¢ÀïÔƵĹ˿ͶËID

£¨1£©Client ID¸ñʽ£º

Éú³É mqttClientId£¬ÓÃÓÚ MQTT µÄµ×²ãЭÒ鱨ÎÄ¡£

¸ñʽ¹Ì¶¨£º${clientId}|securemode=3,signmethod=hmacsha1|¡£

ÍêÕûʾÀý£º12345|securemode=3,signmethod=hmacsha1|¡£

ÆäÖУ¬

${clientId}ΪÉ豸µÄ ID ÐÅÏ¢¡£¿ÉÈ¡ÈÎÒâÖµ£¬³¤¶ÈÔÚ 64 ×Ö·ûÒÔÄÚ¡£½¨ÒéʹÓÃÉ豸µÄ MAC µØÖ·»ò SN

Âë¡£

securemode Ϊ°²È«Ä£Ê½£¬TCP Ö±Á¬Ä£Ê½ÉèÖÃΪ securemode=3£¬TLS Ö±Á¬Îª securemode=2¡£

signmethod ΪËã·¨ÀàÐÍ£¬Ö§³Ö hmacmd5 ºÍ hmacsha1¡£

£¨2£©×ª»»USR-G805pÁ¬½Ó°¢ÀïÔƵÄClient ID

¹Ë¿Í¶ËID£º1234567890|securemode=3,signmethod=hmacsha1|

ËÄ¡¢USR-G805pÍøÒ³²ÎÊýÉèÖÃ

1¡¢ä¯ÀÀÆ÷ÊäÈë192.168.1.1µÇ½USR-G806pÍøÒ³£¬ÃÜÂëÊÇadmin¡£

2¡¢ÉèÖù¤×÷ģʽ

ÍøÒ³µã»÷DTU£¬µã»÷»ù±¾²ÎÊý£¬¹¤×÷ģʽѡÔñMQTTģʽ¡£µã»÷Ó¦Óá£

3¡¢´®¿Ú²ÎÊý

ÍøÒ³µã»÷DTU£¬µã»÷»ù±¾²ÎÊý£¬´®¿Ú²ÎÊý±£³ÖĬÈÏ£¬Êµ¼ÊÓ¦ÓýÓʵ¼Ê485´®¿ÚÉ豸µÄʱºò£¬ÐèÒªºÍËù½Ó485´®¿ÚÉ豸µÄ´®¿Ú²ÎÊýÒ»Ö¡£µã»÷Ó¦Óá£

4¡¢MQTTÅäÖÃ

£¨1£©ÍøÒ³µã»÷DTU£¬µã»÷MQTT£¬·þÎñÅäÖÃ

MQTTµØÖ·ºÍ¶Ë¿ÚÌîÒªÁ¬½ÓµÄMQTT·þÎñÆ÷µÄµØÖ·aliyun9810869345.iot-as-mqtt.cn-shanghai.aliyuncs.com£¬¶Ë¿Ú1883¡£

¿Í‘ôÃûºÍÃÜÂëÌîMQTT·þÎñÆ÷µÄ¿Í‘ôÃûUSR-G805p&i4u4VIKvRXf

ÃÜÂëDED8DE3BC1CE8B7591F7648D27E9967395BB4BBD

Êý¾Ý¸ñʽѡÔñ¸ñʽ»¯Êä³ö¡£

¹Ë¿Í¶ËIDΪ1234567890|securemode=3,signmethod=hmacsha1|£¬ÐÒÃâºÍÆäËûMQTT¹Ë¿Í¶ËIDÖظ´¡£

£¨2£©AÖ÷Ì⣬·¢²¼Ìîд/i4u4VIKvRXf/USR-G805p/user/update¡£

£¨3£©µã»÷Ó¦Óá£

5¡¢Ö÷ÌâÅäÖã¬Ìí¼ÓÆÕͨ¶©ÔÄÖ÷Ìâ

ÍøÒ³µã»÷MQTT£¬µã»÷Ö÷ÌâÅäÖã¬Ö÷ÌâIDÉèÖÃ1£¬Ö÷ÌâÃû³Æ/i4u4VIKvRXf/USR-G805p/user/get,Ö÷ÌâQosÌî0¡£µã»÷Ó¦Óá£

6¡¢ÍøÒ³ÖØÆô

ÍøÒ³µã»÷ϵͳ£¬µã»÷»ù´¡ÉèÖ㬵ã»÷ÖØÆôÉ豸¡£

Îå¡¢MQTTÁ¬½Ó°¢ÀïÔƹ¦Äܵ÷ÊÔ

1¡¢²é¿´°¢ÀïÔÆÉ豸״̬ÔÚÏß

USR-G805p ÉèÖÃÍêMQTTÁ¬½Ó°¢ÀïÔƲÎÊý£¬ÁªÍøÕý³££¬ÔÚ°¢ÀïÔÆƽ̨¿ÉÒÔ¿´µ½É豸״̬ÊÇÔÚÏß¡£

2¡¢Êý¾Ý¶©ÔIJâÊÔ(͸´«Êä³ö)

£¨1£©µã»÷É豸£¬µã»÷²é¿´

£¨2£©µã»÷TopicÁбí£¬µã»÷·¢²¼ÏûÏ¢

£¨3£©´ò¿ªÒ»¸ö´®¿ÚÖúÊÖ£¬´®¿Ú²ÎÊýÉèÖúÍUSR-G805p´®¿Ú²ÎÊýÒ»Ö£¬×ö´®¿ÚÊý¾Ý½ÓÊպͷ¢ËÍ¡£

£¨4£©Ê¹Óð¢ÀïÔÆƽ̨·¢²¼µÄÏûÏ¢1234567890£¬±»USR-G805p¶©Ôĵ½£¬²¢Í¨¹ýUSR-G805p´®¿Ú·¢¸ø´®¿Ú¶Ë£¬Êý¾Ý¸ñʽÊǸñʽ»¯Êä³ö£¬´®¿ÚÖúÊÖ½ÓÊÕ´ø¸ñʽµÄÊý¾Ý/i4u4VIKvRXf/USR-G805p/user/get,1234567890

3¡¢Êý¾Ý·¢²¼²âÊÔ

£¨1£©µã»÷É豸£¬µã»÷ÈÕÖ¾·þÎñ

£¨2£©·¢²¼ÏûÏ¢¸ñʽ

ͨ¹ý´®¿ÚÏò·¢·þÎñÆ÷¸üÐÂÉ豸״̬ʱ£¬Ðè×ñÑ­ÈçÏÂÊý¾Ý¸ñʽ£º

Ö÷ÌâÃû(×î¶à100×Ö½Ú)

,

·þÎñµÈ¼¶

,

Êý¾Ý

ʾÀý£º/i4u4VIKvRXf/USR-G805p/user/update,0,1234567890

£¨×¢£º¡°,¡±ÎªÓ¢ÎÄÊäÈ뷨ϵĸñʽ£©

£¨3£©USR-G805pʹÓô®¿ÚÖúÊÖ·¢ËÍÊý¾Ý/i4u4VIKvRXf/USR-G805p/user/update,0,1234567890£¬·¢ËÍÍê³ÉÖ®ºó£¬ÎÒÃÇÔÚ°¢ÀïÔÆƽ̨¿ÉÒÔͨ¹ýÈÕÖ¾·þÎñ£¬µã»÷²é¿´£¬¿´µ½USR-G805p´®¿Ú·¢µ½°¢ÀïÔƵÄÊý¾Ý1234567890¡£




±àдÈË£º½ðÖ¾·½ ±àдÈÕÆÚ£º2024-07-12

ÉóºËÈË£º½ðÖ¾·½ ÉóºËÈÕÆÚ£º2024-07-12

¶©Õý°æ±¾£ºV1.0 ¶©ÕýÄÚÈÝ£º³õ¸å                                                                        



¹Ø×¢galaxyÒøºÓ¹ú¼Ê΢ÐŹ«ÖÚºÅ
Á˽â¸ü¶àÐÅÏ¢

sitemap¡¢µØͼ