DA16200MOD MQTT JSON Formate AT Command communication.

Hello Team,

                  I am going to use the MQTT Protocol, and i want to send data on JSON format is this possible. Because this i read your documents in that JSON formate AT command is only for HTTP and HTTPS protocol. if i want to use MQTT protocol then which language should we use to design the IOT page.

              and another information required i am not using RTC then RTC sensor should give ground or VDD.

because my SDK is not load in module they stuck in middle i think this is because of RTC is goes in SLEEP mode so what should we do to WAKE UP this RTC.

Best Regard's

AK.  

Parents
  • Hello,

    Using MQTT with JSON

    Yes, you can definitely send data in JSON format over MQTT. While you mentioned that the AT commands you read only reference JSON for HTTP and HTTPS, MQTT can also handle JSON payloads. You just need to format your data as a JSON string before publishing it to the MQTT broker. Here's a basic example in Python:

    import paho.mqtt.client as mqtt
    import json

    # Define the MQTT settings
    broker_address = "your_broker_address"
    client = mqtt.Client("ClientID")

    # Connect to the broker
    client.connect(broker_address)

    # Prepare your data in JSON format
    data = {
    "temperature": 22.5,
    "humidity": 60
    }
    json_data = json.dumps(data)

    # Publish the JSON data
    client.publish("your/topic", json_data)

    # Disconnect
    client.disconnect()

    You can use any programming language that supports MQTT libraries (like Python, Java, C/C++, JavaScript, etc.) to design your IoT application.

    RTC Connection

    Regarding the RTC (Real-Time Clock) connection:

    • If you're not using an RTC, typically, the RTC sensor should be connected to either GND (ground) or VDD (power), depending on how the sensor is designed.
    • If your RTC is in sleep mode and preventing your SDK from loading, you may need to wake it up. Here are some general approaches:
      • Check Datasheet: Review the RTC's datasheet to understand how to wake it up. Some RTCs have a specific pin or command for waking.
      • Interrupt Pin: If the RTC has an interrupt pin, you may be able to use a microcontroller GPIO to wake it.
      • Power Cycle: Sometimes, simply cycling the power to the RTC can wake it up.

    Next Steps

    • Ensure that your code correctly handles the initialization of the RTC.
    • Double-check the wiring and power supply to the RTC module to ensure it's functioning correctly.
    • If you continue to experience issues, consider reaching out to the manufacturer or looking into their forums for troubleshooting specific to your RTC model.

    Feel free to ask if you have any more questions or need further assistance!

    Best regards,

  • Hello,

              i want make connection of two LED to this DA16200MOD for when transmission will happen that red will glow and receive time blue will glow so tell what to do in SDK file to this operation.

    thanks and regard's

    AK.

  • Hi Ak,

    Thank you for the reply.

      i want make connection of two LED to this DA16200MOD for when transmission will happen that red will glow and receive time blue will glow so tell what to do in SDK file to this operation.

    Are you talking about Wi-Fi transmission or AT cmd transmissions?
    Generally for controlling LED, please refer on UM-WI-046 DA16200 DA16600 FreeRTOS SDK Programmer Guide (renesas.com) , on section 17.2 GPIO page:263


    Best Regards,
    OV_Renesas

  • hello,

         Tell me for both wifi transmission and AT command transmission what to do in SDK.i read for GPIO just tell me for wifi transmission and AT command transmission.

           i want to say when AT Command is send that time led glow same for receive side also. means we can get clarification of our data transmission not lost that the reason i am applying this. just like take example of HC05 Bluetooth LED function before connection state and after connection state and during transmission. 

    best regard's

    AK.

Reply
  • hello,

         Tell me for both wifi transmission and AT command transmission what to do in SDK.i read for GPIO just tell me for wifi transmission and AT command transmission.

           i want to say when AT Command is send that time led glow same for receive side also. means we can get clarification of our data transmission not lost that the reason i am applying this. just like take example of HC05 Bluetooth LED function before connection state and after connection state and during transmission. 

    best regard's

    AK.

Children
No Data