Ö§³ÖÖÐÐÄ
USR-G780s£¨Çá±ßÔµ£©Ê¹ÓÃMQTTÁ¬½Ó»ªÎªÔÆʾÀý
2024-07-19



USR-G780s£¨Çá±ßÔµ£©Ê¹ÓÃMQTTÁ¬½Ó»ªÎªÔÆʾÀý


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

USR-G780s(Çá±ßÔµ£©×ÊÁϹÙÍøÏÂÔØÁ´½Ó£º/Product/345.html

USR-G780s(Çá±ßÔµ£©ÉèÖÃÈí¼þÏÂÔØÁ´½Ó£º /Download/1438.html

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

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

1¡¢ËùÐèÎïÆ·

USR-G780s ²úÆ· 1̨

12VµçÔ´ÊÊÅäÆ÷ 1¸ö

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

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

2¡¢Ó²¼þÁ¬½Ó

USR-G780s µÄ232´®¿Ú½ÓUSB-RS232´®¿ÚÏßµ½µçÄÔUSB¿Ú£¬È»ºó²úÆ·½Ó12VµçÔ´ÊÊÅäÆ÷Éϵç¡£

µçÄÔÏÂÔز¢´ò¿ª USR-CAT1 ÉèÖÃÈí¼þ(Çá±ßÔµ£©£¬°²×°´®¿ÚÖúÊÖÈí¼þ¡£

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

µçÄÔÊó±êµã»÷¼ÆËã»ú¹ÜÀí£¬ÓÒ»÷£¬µã¿ªÉ豸¹ÜÀíÆ÷£¬µã»÷¶Ë¿Ú£¬²é¿´½ÓUSR-G780sµÄUSB-RS232´®¿ÚÏßCOM¿ÚºÅ£¬COM3¡£

Èý¡¢»ªÎªÔÆÉèÖÃ

1¡¢×¢²áµÇ¼»ªÎªÔÆ£¬Ð½¨ÊµÀý

£¨1£©×¢²áµÇ¼»ªÎªÔÆhttps://www.huaweicloud.com/

£¨2£©µã»÷¿ØÖÆ̨£¬µã»÷»ªÎªÔÆÍøÕ¾×óÉϽǵķþÎñÁбí£¬ËùÓзþÎñÏÂÃæÕÒµ½´ò¿ªIoT¿­·¢K8¹ú¼ÊÊ×Ò³Íø£¬ÕÒµ½µã»÷É豸½ÓÈëIoTDA

£¨3£©Ð½¨IoTDAʵÀý£¬°¸ÀýÓñê×¼°æ²âÊÔ£¬µã»÷н¨µÄʵÀýÃû³Æ²âÊÔ¡£

£¨4£©É豸½ÓÈ룬²é¿´MQTT¶Ë¿ÚºÅ£¨1883£©£¬µã»÷ÏêÇé²é¿´»ªÎªÔÆ·þÎñÆ÷µØÖ·£ºa5de3ee32a.st1.iotda-device.cn-east-3.myhuaweicloud.com

2¡¢´´½¨²úÆ·

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

£¨2£©´´½¨²úÆ·£¬²úÆ·ÃûTEST£¬Ð­ÒéÀàÐÍMQTT£¬Êý¾Ý¸ñʽJSON£¬É豸ÀàÐÍÑ¡Ôñ±ê×¼ÀàÐÍ¡£

µã»÷È·¶¨¡£

£¨3£©´´½¨²úÆ·³É¹¦

£¨3£©²é¿´Ö÷Ì⣬µã»÷²úÆ·£¬µã»÷Topic¹ÜÀí£¬µã»÷ϵͳԤÖÃTopic,É豸ÏûÏ¢Ïà¹ØTopic

Topic

·¢²¼Õß

¶©ÔÄÕß

ÓÃ;

$oc/devices/{device_id}/sys/messages/up

É豸

ƽ̨

É豸ÏûÏ¢Éϱ¨

$oc/devices/{device_id}/sys/messages/down

ƽ̨

É豸

ƽ̨Ï·¢ÃüÁî¸øÉ豸

±¸×¢£ºÉèÖõ½Êµ¼Ê²úÆ·£¬ÀïÃæµÄ{device_id}Ìæ»»Ìí¼Ó»ªÎªÔƵÄÉ豸ID¡£

±¾°¸ÀýÊÇÉ豸IDÊÇ6698b2c06c3ff74ec4662907_1234567890

2¸öÖ÷Ìâ¾ÍÊÇ£º

$oc/devices/6698b2c06c3ff74ec4662907_1234567890/sys/messages/up

$oc/devices/6698b2c06c3ff74ec4662907_1234567890/sys/messages/down

3¡¢×¢²áÉ豸

£¨1£©µã»÷É豸£¬ËùÓÐÉ豸£¬µã»÷×¢²áÉ豸¡£

£¨2£©µ¥É豸ע²á£¬Ñ¡ÔñËùÊô×ÊÔ´¿Õ¼ä£¬ËùÊô²úÆ·Ñ¡ÔñTEST£¬É豸±êʶÂë×Ô¶¨ÒåÁË1234567890£¬ÏÂÃæ¶ÔÓ¦Éú³ÉÉ豸ID£¬6698b2c06c3ff74ec4662907_1234567890£¬É豸Ãû³ÆUSR-TEST£¬É豸ÃèÊöMQTT£¬ÃÜÔ¿×Ô¶¨ÒåÁË12345678£¬µã»÷È·¶¨¡£

£¨3£©É豸´´½¨³É¹¦£¬×´Ì¬ÊÇδ¼¤»î£¬µÈ´ýUSR-G780sÉèÖÃMQTT²ÎÊýÁ¬½Ó»ªÎªÔÆÖ®ºó£¬ÔÚÏß¡£

4¡¢Éú³É¿Í»§¶ËID¡¢Óû§ÃûºÍÃÜÂë

£¨1£©ÕÒµ½»ªÎªÔÆÉ豸½ÓÈëMQTTClientIDÉú³É¹¤¾ß£¬Á´½Ó£ºhttps://iot-tool.obs-website.cn-north-4.myhuaweicloud.com/

£¨2£©½«É豸IDºÍ ÃÜÔ¿ ·Ö±ðÌîÈëDeviceIdºÍDeviceSecretÖУ¬È»ºóµã»÷Generate£¬Éú³ÉClientID£¬UsernameºÍPassword¡£

DeviceIdÉ豸ID£º6698b2c06c3ff74ec4662907_1234567890

DeviceSecretÃÜÔ¿£º12345678

Éú³ÉClientID£º6698b2c06c3ff74ec4662907_1234567890_0_1_2024071806

Éú³ÉUsername£º6698b2c06c3ff74ec4662907_1234567890

Éú³ÉPassword£ºbe467a743ba87b36fd9c47b06e0e6d1009f214ac7d033394d78d72c487699929

ËÄ¡¢USR-G780s²ÎÊýÉèÖÃ

1¡¢´ò¿ªÉèÖÃÈí¼þ

2¡¢½øÈëÅäÖÃ״̬

ÉèÖÃÈí¼þÑ¡ÔñUSB-RS232´®¿ÚÏßµÄCOM¿Ú£¬´®¿Ú²ÎÊýÉèÖúÍUSR-G780s´®¿Ú²ÎÊýÒ»Ö£¬´ò¿ª´®¿Ú£¬µã»÷½øÈëÅäÖÃ״̬£¬·µ»Øa+ok¡£

3¡¢»ñÈ¡µ±Ç°²ÎÊý

µã»÷»ñÈ¡µ±Ç°²ÎÊý£¬ÔÙ¶Ô²ÎÊý½øÐÐÐ޸ġ£

4¡¢ÉèÖÃÁ¬½Ó»ªÎªÔƵÄMQTT²ÎÊý

£¨1£©Ñ¡ÔñͨµÀÒ»£¬µã»÷ÆôÓ㬹¤×÷ģʽѡÔñMQTTģʽ

£¨2£©MQTTClientÁ¬½ÓÑ¡ÔñͨÓÃMQTT

·þÎñÆ÷µØÖ·Ìa5de3ee32a.st1.iotda-device.cn-east-3.myhuaweicloud.com

¶Ë¿ÚÌ1883

Óû§Ãû£º6698b2c06c3ff74ec4662907_1234567890

ÃÜÂ룺be467a743ba87b36fd9c47b06e0e6d1009f214ac7d033394d78d72c487699929

¿Í»§¶ËID£º6698b2c06c3ff74ec4662907_1234567890_0_1_2024071806

MQTT´®¿Ú´«ÊäģʽÉèÖãºÍ¸´«Ä£Ê½

£¨3£©Ö÷ÌâÉèÖÃ

¶©ÔÄÖ÷Ì⣺¹´Ñ¡Ö÷Ìâ1£¬Ìî$oc/devices/6698b2c06c3ff74ec4662907_1234567890/sys/messages/up

ÍÆËÍÖ÷Ì⣺¹´Ñ¡Ö÷Ìâ1£¬Ìî$oc/devices/6698b2c06c3ff74ec4662907_1234567890/sys/messages/down

5¡¢µã»÷ÉèÖò¢±£´æËùÓвÎÊý£¬²ÎÊýÉèÖòÅÉúЧ¡£

Î塢ͨѶ²âÊÔ

1¡¢»ªÎªÔÆÉ豸ÔÚÏß

USR-G780sÉèÖÃÍêMQTTÁ¬½Ó»ªÎªÔƲÎÊý£¬»ªÎªÔÆÉ豸ÔÚÏß¡£

2¡¢»ªÎªÔÆÏ·¢Êý¾Ý

£¨1£©USR-G780sµÄ232´®¿Ú½ÓUSB-RS232´®¿ÚÏߣ¬µçÄÔ´ò¿ªÒ»¸ö´®¿ÚÖúÊÖ£¬COM3£¬´®¿Ú²ÎÊýºÍUSR-G780sÒ»Ö£¬×¼±¸½ÓÊÕ»ªÎªÔÆÏ·¢µÄÊý¾Ý¡£

£¨2£©»ªÎªÔÆÒ³Ã棬µã»÷ËùÓÐÉ豸£¬ÕÒµ½Ìí¼ÓµÄÉ豸£¬µã»÷ºóÃæ²Ù×÷ÏÂÃæµÄÏêÇ飬µã»÷ÔƶËÏ·¢£¬µã»÷Ï·¢ÏûÏ¢¡£

£¨3£©Ï·¢ÏûÏ¢£ºTopicÀàÐÍѡϵͳTopic£¬ÏûÏ¢¸ñʽѡ½öÏûÏ¢ÄÚÈÝ£¬base64±àÂë¸ÄΪ·ñ£¬ÏûÏ¢ÄÚÈÝÑ¡Ôñ×Ö·û´®£¬ÊäÈëÊý¾Ý1234567890£¬µã»÷È·¶¨¡£

£¨4£©´®¿ÚÖúÊÖ½ÓÊÕµ½Êý¾Ý1234567890¡£

£¨5£©Ï·¢ÏûÏ¢Ö®ºó£¬ÒÑ·¢Ë͵ÄÏûÏ¢×îºóµã»÷ÏêÇ飬¿ÉÒԲ鿴Ï·¢ÏûÏ¢µÄÐÅÏ¢¡£

2¡¢USR-G780s´®¿ÚÉϱ¨Êý¾Ýµ½»ªÎªÔÆ

£¨1£©µçÄÔ´ò¿ª´®¿ÚÖúÊÖCOM3£¬´®¿Ú²ÎÊýºÍUSR-G780sÒ»Ö£¬Ïò»ªÎªÔÆ·¢ËÍÊý¾Ý1234567890¡£

£¨2£©»ªÎªÔÆÒ³Ã棬µã»÷ÔËÐÐÈÕÖ¾£¬Ñ¡ÖÐÐèÒª²éѯµÄÉ豸ÐÅÏ¢ºÍÈÕÆÚ£¬µã»÷ºóÃæµÄˢзûºÅ£¬¿ÉÒÔ¿´µ½»ªÎªÔÆÇëÇóÄÚÈÝ1234567890¡£µã»÷ÏêÇ飬¿ÉÒԲ鿴¾ßÌåÐÅÏ¢¡£




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

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

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



¹Ø×¢¿­·¢¡¤k8¹ú¼Ê΢ÐŹ«ÖÚºÅ
Á˽â¸ü¶àÐÅÏ¢

sitemap¡¢µØͼ