digidotcom / xbee-micropython

MIT License
70 stars 29 forks source link

HTTP request not working #89

Open omkarmali1984 opened 9 months ago

omkarmali1984 commented 9 months ago

I have a Digi XBee3 Cellular LTE-M/NB-IoT module with a firmware version: 1141A. I am using a 1NCE NB-IOT sim. Preferred network technology is set to NB-IoT Only.

I am following user guide examples presented in the link below https://www.digi.com/resources/documentation/Digidocs/90002258/#containers/cont_examples.htm?TocPath=XBee%2520connection%2520examples%257C_____0

Everything worked fine, but the example in Perform a (GET) HTTP request section did not work. Then I tried the HTTP Request Sample Application micro-python program found at https://github.com/digidotcom/xbee-micropython/blob/master/samples/cellular/http_request/main.py

Why is HTTP Request not working? The micro-python code runs, connects to the cellular network, then crushes away with an error. Please see below. Traceback (most recent call last): File "", line 48, in OSError: [Errno 7005] EIO

I tried everything, and I am running out of an idea. Google search says this is the issue with connecting with AWS Console, but I am not using an AWS, and I am trying a simple HTTP get request.

When preferred network technology is set to LTE-M Only and it works without any issue. Am I missing anything? Any assistance on how to move forward would be greatly appreciated.

Thanks! Omkar

mikewadsten commented 9 months ago

I would suggest that you reach out to 1NCE for support on this, since as you mention, the request works fine when using LTE-M, but fails with NB-IoT. My guess is that your SIM is configured to not allow HTTP traffic (or possibly even TCP traffic in general?) when using NB-IoT. 1NCE would be able to tell you whether that is the case.