Ö§³ÖÖÐÐÄ
USR-G780s£¨Çá±ßÔµ£©Á¬½ÓMQTT·þÎñÆ÷͸´«Ä£Ê½Ê¾Àý
2024-07-05



USR-G780s£¨Çá±ßÔµ£©Á¬½ÓMQTT·þÎñÆ÷͸´«Ä£Ê½Ê¾Àý


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

USR-G771&G780sʹÓÃ˵Ã÷Ê飨Çá±ßÔµ£©Á´½Ó£º/Download/1435.html

USR-G771&G780s±ê×¼ATÖ¸Á£¨Çá±ßÔµ£©Á´½Ó£º/Download/1437.html

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

ÍøÂçµ÷ÊÔÖúÊÖ ´®¿Úµ÷ÊÔÖúÊÖ¶þºÏÒ»/Download/27.html

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

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

1¡¢ËùÐèÎïÆ·

USR-G780s ²úÆ· 1̨

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

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

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

2¡¢Ó²¼þÁ¬½Ó

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

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

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

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

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

1¡¢´ò¿ªUSR-G780sµÄÉèÖÃÈí¼þ

2¡¢µã»÷½øÈëÅäÖÃ״̬

3¡¢µã»÷»ñÈ¡µ±Ç°²ÎÊý£¬²éѯ¹Ì¼þ°æ±¾ºÅ

4¡¢ÅäÖÃͨµÀÒ»²ÎÊý

ͨµÀÒ»£º

¹¤×÷ģʽ£ºMQTTģʽ

MQTTClientÁ¬½Ó£º¹´Ñ¡Í¨ÓÃMQTT

·þÎñÆ÷µØÖ·ºÍ¶Ë¿Ú£ºÌîдҪÁ¬½ÓµÄMQTT·þÎñÆ÷µØÖ·ºÍ¶Ë¿Ú

Óû§ÃûºÍÃÜÂ룺ÌîдҪÁ¬½ÓµÄMQTT·þÎñÆ÷µÄÓû§ÃûºÍÃÜÂë

¿Í»§¶ËID£ºÉèÖò»ÒªºÍMQTTfx¼°ÆäËûMQTT¿Í»§¶ËÒ»Ñù¡£ÕâÀï×Ô¶¨ÒåдÁË1234567890¡£

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

¶©ÔÄÖ÷Ì⣺

¹´Ñ¡Ö÷Ìâ1£¬ÉèÖÃ/USR-G780s/get

ÍÆËÍÖ÷Ì⣺

¹´Ñ¡Ö÷Ìâ1£¬ÉèÖÃ/USR-G780s/update

µã»÷ÉèÖò¢±£´æËùÓвÎÊý

ËÄ¡¢MQTTfx²ÎÊýÉèÖÃ

1¡¢´ò¿ªMQTTfxÈí¼þ

2¡¢½¨Ò»¸öеÄÅäÖÃÎļþ×öÁíÒ»¸öMQTT¿Í»§¶Ë

£¨1£©ÅäÖÃÎļþÃû×Ô¶¨ÒåÓÃMQTT

£¨2£©·þÎñÆ÷µØÖ·ÌîºÍUSR-G780sÁ¬½ÓµÄͬһ¸öMQTT·þÎñÆ÷µØÖ·

£¨3£©¶Ë¿ÚÌîMQTT·þÎñÆ÷¶Ë¿Ú1883

£¨4£©Client ID£¨¿Í»§¶ËID£©¿ÉÒÔµã»÷ºóÃæµÄGenerate×Ô¶¯´´½¨£¬×¢ÒâºÍUSR-G780sµÄ¿Í»§¶ËID²»ÒªÒ»Ñù£¬Èç¹ûÏàͬ»á³åÍ»¡£

£¨5£©µã»÷User Credentials£¬User NAMEÊäÈëMQTT·þÎñÆ÷µÄÓû§Ãû£¬PasswordÊäÈëMQTT·þÎñÆ÷µÄÃÜÂë¡£

£¨6£©ËùÓвÎÊýÉèÖÃÍê³ÉÖ®ºó£¬µã»÷ApplyÓ¦Óá£

3¡¢MQTT.fxÈí¼þÑ¡Ôñн¨µÄ¿Í»§¶ËMQTT£¬µã»÷ConnectÁ¬½Ó

Îå¡¢·Ö·¢Ä£Ê½²âÊÔ

µçÄÔÏÂÔز¢´ò¿ªUSR-TCP232-TEST´®¿ÚÖúÊÖ£¬´ò¿ªUSR-G780s½ÓµÄUSB´®¿ÚÏßCOM¿Ú£¬COM3¡£

1¡¢USR-G780sÖ÷Ìâ1¶©ÔÄ

MQTT.fxÈí¼þµã»÷Publish£¬ÊäÈë/USR-G780s/get£¬ÔÚÏÂÃæµÄ·¢ËÍ¿òÊäÈëÊý¾Ýwww.usr.cn£¬µã»÷Publish·¢Ë͸øUSR-G780s´®¿Ú£¬´®¿ÚÖúÊÖ½ÓÊÕÊý¾Ýwww.usr.cn¡£

2¡¢USR-G780sÖ÷Ìâ1ÍÆËÍ

MQTT.fxÈí¼þµã»÷Subscribe£¬ÊäÈë/USR-G780s/update£¬µã»÷ºóÃæµÄSubscribe¡£

´®¿ÚÖúÊÖ·¢ËÍ¿òÊäÈëÊý¾Ý1234567890£¬·¢Ë͸øMQTT.fxÈí¼þ£¬µã»÷MQTT.fxÈí¼þµÄÿһÌõ/USR-G780s/update£¬¿ÉÒÔ¿´µ½½ÓÊÕµÄÊý¾Ý1234567890¡£




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

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

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



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

sitemap¡¢µØͼ