Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Gliffy
imageAttachmentIdatt111460377
baseUrlhttps://dustcloud.atlassian.net/wiki
migration1
namejsonserver_node-red_setup
diagramAttachmentIdatt111460381
containerId40468536

Tip
titleCrash Course (given by your instructor)

Why two programs? What does each do?

JsonServer

  • Double-click on C:\Users\twatteyne\Desktop\smartmeshsdk-develop\smartmeshsdk-develop\app\JsonServer\JsonServer.py. The application starts
  • The h command allows you to get a list of available commands

    Code Block
    > h
    Available commands:
     - help (h): print this menu
     - info (i): information about this application
     - quit (q): quit this application
     - uptime (ut): how long this application has been running
     - status (s): get the current status of the application
     - seriaports (sp): list the available serialports
     - connectmanager (cm): connect to a manager's API serial port
     - disconnectmanager (dm): disconnect from a manager's API serial port
    >


  • type "sp". What are the available serial ports on your computer?

    Info
    iconfalse
    titleAnswer 1:



  • using the "cm" command, connect the JsonServer to your manager's API port

    Info

    The API serial port is the 4th one. So if the "sm" command returns

    Code Block
    COM3, COM4, COM5, COM6

    The API port is COM6


  • type "s". Verify the manager appears as "connected".

...