This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How send simple Hello message to server using nRF9160 and HTTP?

Hi,

I am using nRF9160 DK with Zephyr RTOS and able to successfully build asset_tracker in SES with the help of getting started tutorial. But I have getting problem to send data to our own server.

Ques:

  1. In asset_tracker example where should I need to configure our own HOST name, Port, URL?
  2. How I can sent simple hello message to configured server using HTTP?
  3. Where is available for explanation and Flow of asset_tracker example code to get understand for How exact work?

Thanks..!!!

Parents Reply Children
  • Thanks for reply,

    I have flash merge.hex file of http post example but this example not working. I want to see debug and see their LOGS. 

    How I can see LOG in printk(...); I have used LTE link monitor but unable to get single strength, here is below screen shot:

    How I can see debug log and  why not getting signal strength of Network?

    I have update modem with latest version using programmer.

    Thanks....

  • Hi.

    The http_application_update should work out of the box. Which tag are you running?

    Can you compare the logging settings you have in the http_application_update example to the logging settings in at_client or assert_tracker to see that they match?

    Best regards,

    Andreas

  • Hi,

    I am using NCS v1.0.0 tag and when I changes in my proj.config here is below updated file:

    CONFIG_BSD_LIBRARY=y
    CONFIG_GPIO=n
    CONFIG_SERIAL=y
    CONFIG_STDOUT_CONSOLE=y
    CONFIG_UART_INTERRUPT_DRIVEN=y
    CONFIG_TEST_RANDOM_GENERATOR=y
    CONFIG_NETWORKING=y
    CONFIG_NET_BUF_USER_DATA_SIZE=1
    CONFIG_NET_SOCKETS_OFFLOAD=y
    CONFIG_NET_SOCKETS=y
    CONFIG_NET_SOCKETS_POSIX_NAMES=y
    CONFIG_NET_RAW_MODE=y
    CONFIG_TRUSTED_EXECUTION_NONSECURE=y
    CONFIG_HEAP_MEM_POOL_SIZE=1024
    # LTE link control
    CONFIG_LTE_LINK_CONTROL=y
    CONFIG_LTE_AUTO_INIT_AND_CONNECT=n
    
    # Enable Log, with debug messages and in place processing
    CONFIG_LOG=y
    CONFIG_LOG_DEFAULT_LEVEL=3
    CONFIG_LOG_IMMEDIATE=y
    
    # Main thread
    CONFIG_MAIN_THREAD_PRIORITY=7
    CONFIG_MAIN_STACK_SIZE=4096

    But still stuck in Booting zephyr OS is as below logs on LTE link monitor:

    SPM: NS image at 0xc000 
    SPM: NS MSP at 0x200287a8 
    SPM: NS reset vector at 0x126a5 
    SPM: prepare to jump to Non-Secure image. 
    ***** Booting Zephyr OS build v1.14.99-ncs3-snapshot2-1-g9420e7247ba2 *****Code

    What should I do to get proper Logs and work with LTE connection?

    One another important ques is My location is India so we are not able use ibasis SIM card due to not available their network, So can I use other local SIM that we are using in Mobile phone with LTE network such as Vodaphone, idea, reliance Jio etc ?

    Thanks...

Related