element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Monarch Go
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Monarch Go
  • More
  • Cancel
Monarch Go
Forum Azure OOB demo connection issue.
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Monarch Go to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 7 replies
  • Answers 1 answer
  • Subscribers 9 subscribers
  • Views 2288 views
  • Users 0 members are here
  • monarchgo
Related

Azure OOB demo connection issue.

skruglewicz
skruglewicz over 4 years ago

Hello,

I had the demo working once with your Monarch free trial template.

I set it up from the helpful Workshop#2 video's and docs.

 

When the 7 day trial was up I created a new Monarch template on a new free trial version. I configured the MCU Project with the Device info as before.

 

But now when I debug the app,  it is doing some communication but the results are not showing up on the IotCentral dashboard.?

where is the data going?

DO I have to use a different MQTT broker?

I'm at a lost here?

 

Thanks in advance

Steve K

  • Sign in to reply
  • Cancel

Top Replies

  • jafoste4
    jafoste4 over 4 years ago in reply to skruglewicz +1 suggested
    Hi Steve, Can you email this entire log? (you emailed me previously). In the first log you showed its acting as if there isn't a network connection. Are you able to try it in a different location perhaps…
Parents
  • skruglewicz
    0 skruglewicz over 4 years ago

    Hi jafoste4  #jafoste4

     

    Any thoughts on this?

     

    SteveK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jafoste4
    0 jafoste4 over 4 years ago in reply to skruglewicz

    Hi Steve,

     

    The things that can change when you create a new templace instance are the device info and primary key information.

     

    I'd probably start my debug by verifying the following files within your IDE are configured correctly for the new template/device.

     

    msft_Azure_IoT_cientcredential.h

    msft_Azure_IoT_cientcredential_keys.h

     

    If those are configured correctly please let me know and I can help further.

     

    -Josh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • skruglewicz
    0 skruglewicz over 4 years ago in reply to jafoste4

    I'll check again, but I believe I followed your directions in your workshop part2?

     

    On Iot Central I opened my device which I created on my 2nd free 7 day template. I Opened the "Connect" dialog  and using the information to fill in the following info in the code

     

    1) In your MCU application, navigate to msft_Azure_IoT\demo section

    then open :

    msft_Azure_IoT_clientcredential.h

     

     

    Copy the Scope ID (ID Scope) and Device ID values to the header file

         #define clientcredentialAZURE_IOT_SCOPE_ID ""

         #define clientcredentialAZURE_IOT_DEVICE_ID ""

     

     

    Edit line #22, adding the Azure DPS provisioning service as the MQTT Broker Endpoint

    "global.azure-devices-provisioning.net"

     

    2) This application also includes some code to support the simpler Shared Access Signature (SAS) authentication. This requires SAS Primary Key for connecting your real device also needs to be added. While still in this Device      Connection window, click on Shared Access Signature (SAS) then copy to the clipboard the Primary key that is displayed…

     

     

    Back in MCUXpresso, under the msft_Azure_IoT\demo section that you accessed before, open

    msft_Azure_IoT_clientcredential_keys.h

    and edit line 14, adding the SAS Primary Key that you have just copied from the      Azure IoT Central application

         #define keyDEVICE_SAS_PRIMARY_KEY       ""

     

    I'll try again

    Steve K

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • skruglewicz
    0 skruglewicz over 4 years ago in reply to jafoste4

    Still no data in IoT cental

    Device and scope set

    and primary key set

    hope there is no hackable but here is the debug output maybe you can see something I can't

     

    [MCUXpresso Semihosting Telnet console for 'lpcxpresso55s69_aws_remote_control_Cellular_Head LinkServer Azure_Cloud_Config_Debug' started on port 59614 @ 127.0.0.1]

     

     

    0 0 [Tmr Svc] Starting GSM application!

    1 0 [Tmr Svc] Starting Cellular-IoT Hardware configuration...

    2 130 [Tmr Svc] Cellular-IoT Hardware configuration initialized.

    3 130 [Tmr Svc] Library initialized!

    AT+CFUN=1,1

     

     

    OK

    ATE0

     

     

    +SHUTDOWN

     

     

    +SYSSTART

     

     

    +CEREG: 2

     

     

    +CREG: 2

     

     

    +CEREG: 0

     

     

    +CREG: 0

     

     

    +CEREG: 2

     

     

    +CREG: 2

    Network registration status changed. New status is: Network registration status changed. New status is: Network registration status changed. New status is:

    OK

     

     

    +CEREG: 1,"3B00","00E6D203",7

     

     

    +CREG: 1

    AT+CFUN=1

    Network registration status changed. New status is:

    OK

    AT+CMEE=2

    4 6149 [USART_Handler_T] Searching for network!

     

     

    OK

    AT+CGMI

    5 6149 [USART_Handler_T] Not registered to a network (can be a SIM card error)

     

     

    SEQUANS Communications

     

     

    OK

    AT+CGMM

    6 6150 [USART_Handler_T] Searching for network!

     

     

    GM01Q-GO

     

     

    OK

    AT+CGSN

    7 6153 [USART_Handler_T] Connected to home network!

     

     

    354658090472009

     

     

    OK

    AT+CGMR

     

     

    UE5.2.0.1

     

     

    OK

    AT+CREG=1

     

     

    OK

    AT+COPS?

    8 6222 [Tmr Svc] AT Parser library initialized.

     

     

    +COPS: 0,2,"311480",7

     

     

    OK

    AT+SQNCTM="verizon"

    9 6222 [Tmr Svc] Wait to be connected to the network...

    10 6223 [USART_Handler_T] Operator number: 311480

     

     

    OK

    AT+CSQ

     

     

    +CSQ: 21,99

     

     

    OK

    AT+SQNCTM?

    11 6846 [USART_Handler_T] Network operator RSSI: -71 dBm

     

     

    +SQNCTM: verizon

     

     

    OK

    12 6849 [Microsoft Azure] [INFO ][INIT][6849] SDK successfully initialized.

    13 6850 [Microsoft Azure] [INFO ][MQTT][6850] MQTT library successfully initialized.

    AT+SQNSCFG=1,3,1450,0,600,50

     

     

    OK

    AT+SQNSCFGEXT=1,1,1,0,1,1

     

     

    OK

    AT+SQNDNSLKUP="global.azure-devices-provisioning.net"

     

     

    +SQNDNSLKUP: global.azure-devices-provisioning.net,52.168.180.95

     

     

    OK

    14 7093 [Microsoft Azure] Looked up global.azure-devices-provisioning.net as 52.168.180.95

    AT+SQNSD=1,0,8883,"52.168.180.95",0,0,1,0

     

     

    OK

    AT+SQNSSENDEXT=1,146

     

     

    > 160303008D01000089030333D9AFD4861232C9593F9C5886B626DE9C8EE04F518443A06D2D23A4F85B765500000AC014C02FC027C01300FF010000560000002A0028000025676C6F62616C2E617A7572652D646576696365732D70726F766973696F6E696E672E6E6574000D000E000C040304010303030102030201000A000400020017000B000201000016000000170000

    OK

     

     

    +SQNSRING: 1,536

    AT+SQNSRECV=1,536

     

     

    +SQNSRING: 1,536

     

     

    +SQNSRING: 1,536

     

     

    +SQNSRING: 1,536

     

     

    +SQNSRING: 1,536

     

     

    +SQNSRING: 1,536

     

     

    +SQNSRING: 1,536

     

     

    +SQNSRING: 1,109

     

     

    +SQNSRECV: 1,536

    1603030F10020000510303605C2AE5104A9BC80B1AF6CCE5019CE85CFA0EC7CEB9D5B01689CD3B8D26A53E20EF0C000068A609633D44D155F608D6220B6B95571B62AFAA3C3588FE854F9544C02F00000900170000FF010001000B000D48000D450007E1308207DD308205C5A00302010202137F0002882BD706DD24663FA70500000002882B300D06092A864886F70D01010B0500304F310B3009060355040613025553311E301C060355040A13154D6963726F736F667420436F72706F726174696F6E3120301E060355040313174D6963726F736F66742052534120544C53204341203032301E170D3230313130393138353731355A170D3231313130393138353731355A302B3129302706035504030C202A2E617A7572652D646576696365732D70726F766973696F6E696E672E6E657430820122300D06092A864886F70D01010105000382010F003082010A0282010100E731B1083A683782800EE6266DD9B5A5E5B003E533198FF5A0A3F28037F1C60449F8AADA993F5E82D790014494EF1C2A1228D9A7D92D5B4F3D7EEAA23D5A68BC0CEE040A3B8E038E21A5A2288DB2C8A1C1DC0C628D8053584D393554A36EE17BB810A820802D4626F912BCE492B43074F95BF28C3714923364F0541780FCF77CD1E1EFE99CDB0124FD073811357E2CA170C70FFDF4862FE5E1C5584BF1BB66EE87DC02E558FB429AE6BB02BC94827857695666362509D76DEC0CD679A0AACB2EFC8CA288

     

     

    OK

    AT+SQNSRECV=1,536

     

     

    +SQNSRECV: 1,536

    01A1345D18EC17E83AC6132889CF3F832AB1C742237DB4C1737EDDF88E1DA67C53F2804AA7EBB77E01514ADA52A64F3799724C95D5D2545CDF8102450203010001A38203D4308203D030820104060A2B06010401D6790204020481F50481F200F00076007D3EF2F88FFF88556824C2C0CA9E5289792BC50E78097F2E6A9768997E22F0D700000175AE67CCB0000004030047304502210080CD65C3C3C4EA079647A034BCF316717576A1DC1A1C8FDE5AC420ADF399AF6F022024BA50E83304431DD8CD9866B099992369C0EA32C0A3EE9EC703DBC568FEB1970076005581D4C2169036014AEA0B9B573C53F0C0E43878702508172FA3AA1D0713D30C00000175AE67CED20000040300473045022100D2DA20766E517376603983A293A827DCDDF64263DCC820A0DC21A2EBBCF105F402207548B4B4456CA6DB4BEFFFE29AF968955CFF67B560F80F4E381AF76A93494348302706092B060104018237150A041A3018300A06082B06010505070301300A06082B06010505070302303E06

     

     

    [Closed Telnet Session]

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • skruglewicz
    0 skruglewicz over 4 years ago in reply to skruglewicz

    Connected now but I keep getting this error after a while ?

     

    OK

    AT+SQNSSENDEXT=1,12

     

     

    +CME ERROR: operation not supported

    AT+SQNSSENDEXT=1,12

     

     

    +CME ERROR: operation not supported

    15 8757 [Microsoft Azure] ERROR: Handshake failed with error code -0x1

    16 8757 [Microsoft Azure] [ERROR][NET][8757] Failed to establish new connection. Socket status: -1.

    AT+SQNSH=1

     

     

    OK

    17 8773 [Microsoft Azure] [ERROR][MQTT][8773] Failed to establish new MQTT connection, error NETWORK ERROR.

    18 8773 [Microsoft Azure] Connection refused!!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jafoste4
    0 jafoste4 over 4 years ago in reply to skruglewicz

    Hi Steve,

     

    Can you email this entire log? (you emailed me previously).

     

    In the first log you showed its acting as if there isn't a network connection. Are you able to try it in a different location perhaps with a better network?

     

    -Josh

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • skruglewicz
    0 skruglewicz over 4 years ago in reply to jafoste4

    HI jafoste4

    Thanks for help

    Your right when I move my workstation to another location. I get better results,

    I forgot I was dealing with Cellular ...LOL.

    I'm now having better results.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
Reply
  • skruglewicz
    0 skruglewicz over 4 years ago in reply to jafoste4

    HI jafoste4

    Thanks for help

    Your right when I move my workstation to another location. I get better results,

    I forgot I was dealing with Cellular ...LOL.

    I'm now having better results.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube