Choosing an IoT platform

nsaspook

Joined Aug 27, 2009
12,273
Switched the device to MQTT mode using the windows VIRCOM configuration tool and setup the menu for my local broker server configuration.
1700508048481.png

I get the BLUE connect led on the module so that seems to be working.

Next step is to send data. I used a RS-232 protocol converter board I built for another project to generate test data.
1700508264210.png

That plugs into the MQTT device RS-232 plug.
1700508388667.png

Fragment of the PIC18F14Q41 test program.
C:
void main(void)
{
    uint8_t count=0;
    // Initialize the device
    SYSTEM_Initialize();

    TMR0_SetInterruptHandler(tmr0isr);
    TMR1_SetInterruptHandler(delayisr);

    // Enable high priority global interrupts
    INTERRUPT_GlobalInterruptHighEnable();

    // Enable low priority global interrupts.
    INTERRUPT_GlobalInterruptLowEnable();

    TMR0_StartTimer();
    TMR1_StartTimer();

    while (1) {
        // Add your application code
        MLED_Toggle();
        wdtdelay(100000);
        if (UART1_is_tx_ready()) {
            /*
             * STDIO redirected to UART1
             */
            printf("MQTT POE Testing %d \r\n",count++);
        }
    }
}
1700508545655.png

1700508614257.png
Wonderful! I see the published data string from a remote subscriber also connected to the broker.
 

nsaspook

Joined Aug 27, 2009
12,273
The pure TTL to Ethernet module is faster than the serial MQTT gateway interface but requires local processing (2000 lines for this embedded version 3.1.1) to handle the MQTT protocol on a 32-bit controller. The POE MQTT gateway device seems to work as advertised and is easily driven by a 8-bit controller to publish data in simple JSON format.
1700539432259.png
1700539890612.png
Reading both controllers publishing streams on the remote subscriber computer.
 

Thread Starter

Ian0

Joined Aug 7, 2020
8,941
I bought a USR N510, and got it working on the Tago.io platform.
The N510 has a MQTT mode, which isn’t particularly difficult to get working, and only a little bit annoying.
I also bought the Waveshare module, and I’ll try that next,
By the way, is USR the same US Robotics that made dial up modems? (I still have one, and I’m sure it will do me a lot of good now that my telephones are VOIP!)
 

Ya’akov

Joined Jan 27, 2019
8,505
By the way, is USR the same US Robotics that made dial up modems? (I still have one, and I’m sure it will do me a lot of good now that my telephones are VOIP!)
The company is entirely unrelated to US Robotics being a newly founded Chinese company apparently actually called “PUSR”.

The also call themselves USRIoT in some cases.
 

Thread Starter

Ian0

Joined Aug 7, 2020
8,941
Where did you get VirCom? The only version I found downloads a .rar file, which I gave to my Linux machine to extract and it crashed
 

nsaspook

Joined Aug 27, 2009
12,273
Another MQTT demo project using WFI for 3-axis inclinometer and 3-axis acceleration: This module puts the S for security in IoT.
1701047021860.png
It's a heavy modified version of the original code example for reading (2MHz SPI) the IMU on a click board: https://github.com/nsaspook/iot_wfi32e_scl3300/tree/main/apps/paho_mqtt_client
No RTOS, bare-metal C code.

https://www.microchip.com/en-us/product/wfi32e01pc
SCL3300: https://www.murata.com/-/media/webr...datasheet/datasheet_scl3300-d01.ashx?la=en-sg

1701047356905.png
Displaying IMU data subscribed from the MQTT broker sent by the wireless board. Data packet update rate, 5Hz.
 
Last edited:
Top