MCU with 4G LTE Modem. Connecting with the server anywhere!

Поділитися
Вставка
  • Опубліковано 5 лип 2024
  • [ESP32-S3 + Camera Module(OV2640) + LTE Modem(SIM7600G-H) + Google Fi SIM]
    It's impossible to communicate with the server in an environment without WiFi.
    Depending on the project, equipment that can communicate with the outside is needed to enable communication with the server even in an environment without WiFi.
    Satellite connectivity is probably the only means of communication available anywhere on the Earth, but it's probably very difficult to actually use it.
    The next possible thing is to use a cellular modem. This is the most reasonable way, and you can connect to the server anywhere in the environment where cellular communication is connected.
    In this project, I'll cover what we need to know about cellular connectivity from ESP32. Also, we'll check how to upload images taken by the OV2640 to a server via cellular.
    *Timestamps
    0:00 - T-SIMCAM Hardware
    2:48 - Prepare for a Data-only SIM card (Google Fi)
    3:40 - T-SIMCAM Self-Test Example
    4:08 - TinyGSM
    6:40 - Local Network Comm & Static IP
    7:16 - Google Cloud Platform - VM Instance
    9:31 - ChatGPT makes HTTP Server with Node.js
    11:37 - Google Cloud Platform - Firewall
    12:26 - T-SIMCAM Image Uploader
    [T-SIMCAM]
    MCU: ESP32-S3
    Camera: OV2640 2 Million Pixels
    mPCIe: Support LILYGO T-PCIE SIM module
    Microphone: I2S Digital Microphone
    www.lilygo.cc/products/t-simcam
    [Here's a referral code to get a $20 credit when you join Google Fi!]
    g.co/fi/r/8XUH38
    [TinyGSM]
    github.com/vshymanskyy/TinyGSM
    [Source Code]
    github.com/0015/ThatProject/t...
    #LTE #SIM #Cellualr #SIM7600G #ESP32 #OV2640 #4G #ThatProject
  • Наука та технологія

КОМЕНТАРІ • 76

  • @ThatProject
    @ThatProject  Рік тому +6

    For more projects - youtube.com/@ThatProject
    That Project Github Repository - github.com/0015/ThatProject
    Join FB Group - facebook.com/groups/138965931539175

  • @user-oq1id2zc6h
    @user-oq1id2zc6h Рік тому

    오랜만에 채널 들어왔는데 영상 퀄리티랑 프로젝트 퀄리티가 완전 업그레이드 되었네요. 잘 보고 갑니다. 언제 한 번 뵙고 싶네요!

  • @jesusbejaranoquesada4838
    @jesusbejaranoquesada4838 11 місяців тому

    Awesome work on this video! Thanks.

  • @markadyash
    @markadyash Рік тому +1

    this is amzing

  • @Gerald-iz7mv
    @Gerald-iz7mv Рік тому

    Can you also make a video about the T-SIM7600 R2 and a solar cell and a camera (e.g. OSV5640, OV2640) with live streaming?

    • @ThatProject
      @ThatProject  Рік тому +1

      Maybe. Let me think about that project.

  • @hwhack
    @hwhack Рік тому +2

    The SIM7600G-H is EOL. The SIM7600G-H R2 is the recommended modual to use. It costs ~$50 usd.

    • @ThatProject
      @ThatProject  Рік тому +1

      Thank you for good information.

    • @Gerald-iz7mv
      @Gerald-iz7mv Рік тому

      @hwhack do you have a link to the SIM7600-H R2?

    • @Gerald-iz7mv
      @Gerald-iz7mv Рік тому +1

      @hwhack It seems The SIM7600G-H R2 only comes in this big package with this battery already - is there one without that battery - where did you order it?

    • @birhon
      @birhon 8 місяців тому

      ​@@Gerald-iz7mv also looking for one without battery, let me know if you find anything

  • @birhon
    @birhon 8 місяців тому

    Sooo cool thank you! I am a noob, did you make this board from scratch?

    • @ThatProject
      @ThatProject  8 місяців тому

      Thank you. I used products from LilyGo for this project.

  • @varadchiney1451
    @varadchiney1451 8 місяців тому

    Hi is a similar approach to upload images on server using sim800/900 series possible over 2G network?
    As I get iot enabled 2G SIM cards for dirt cheap prices!

    • @ThatProject
      @ThatProject  8 місяців тому

      I don't know if you can use the same way to update images over a 2G network but it's worth trying.

  • @sahasourav8157
    @sahasourav8157 11 місяців тому

    Sim7600 has USB 2.0 (USB device mode only). Do you think it is possible to interface the module with MCU via USB & achieve high data rate ?

    • @ThatProject
      @ThatProject  11 місяців тому

      If you control directly using AT mode, it seems that you can use it like a modem. Have a look at this www.waveshare.com/wiki/SIM7600E-H_4G_HAT

  • @Gerald-iz7mv
    @Gerald-iz7mv Рік тому

    Also check: Walter - ESP32-S3 5G IoT module - looks like they will be available soon - what you think of the specs?

    • @ThatProject
      @ThatProject  Рік тому

      Any link for this?

    • @Gerald-iz7mv
      @Gerald-iz7mv Рік тому

      @@ThatProject how to post links here? If you google it it should be first result.

  • @anlpereira
    @anlpereira Рік тому

    This is an absolutely amazing project, but this board is soo expensive. 😢

  • @stevegulick7656
    @stevegulick7656 Рік тому +3

    The slow sped is consistent with the baud rate form the ESp32 to the modem- 115200 bits per second = 11520 bytes per second - so 120kB file at 11.5kB per sec would take 10.41 sec plus some overhead. Try a faster UART baud rate.

    • @ThatProject
      @ThatProject  Рік тому +1

      Thank you for your comments.
      When I was working on this project, I tested by changing the baud rate between LTE modems, but there was no change in transfer speed. Maybe I'm missing something else?

    • @SA-oj3bo
      @SA-oj3bo 5 місяців тому

      Did you check if you used LTE and what LTE-mode the module was in?
      UMTS R99 speed: 384 kbps DL/UL
      HSPA+: 5.76 Mbps(UL), 42 Mbps(DL)
      HSDPA/HSUPA: 2.2 Mbps(UL), 2.8 Mbps(DL)
      LTE CAT 1: 10 Mbps(DL)
      5 Mbps(UL)
      LTE-FDD CAT4 :150 Mbps (DL),50 Mbps (UL)
      LTE-TDD CAT4 :130 Mbps (DL),35 Mbps (UL)@@ThatProject
      Did you use baudrate up to max? Baud rate: 300bps to 4Mbps

  • @EasyOne
    @EasyOne Рік тому

    nice

  • @rajmehta9706
    @rajmehta9706 Місяць тому

    Could you kindly explain how to update the firmware of an ESP32 using an LTE Modem, specifically the SIM7600G-H model? I'm interested in the process, including any required hardware setup, software configuration, and steps to ensure a reliable update. Additionally, if there are any particular best practices or precautions to consider, I'd appreciate your insights. Thank you!

    • @ThatProject
      @ThatProject  Місяць тому +1

      I'll give it a try when I get a good chance. Thank you.

  • @ryandougher4237
    @ryandougher4237 Рік тому

    Is there any way to modify your code to have the t-simcam board go into deep hibernation and only wake every 60 minutes to take a photo, send it over LTE to a server, then go back to deep hibernation?

    • @ThatProject
      @ThatProject  Рік тому

      Yes, it seems possible enough. After taking and uploading a picture, you can switch to Deep Sleep mode using the following function.
      void deep_sleep(int seconds) {
      esp_sleep_enable_timer_wakeup(seconds * uS_TO_S_FACTOR); // uS_TO_S_FACTOR 1000000ULL // Conversion factor for micro seconds to seconds
      esp_deep_sleep_start();
      }

  • @rolandpfeifer4239
    @rolandpfeifer4239 Рік тому

    Hi, thanks for this usefull tutorial!
    I do not get a Connection to my T-SimCam-board while uploading the code. Is there a trick? Did you press the "boot" Button while uploading or anything else?
    Thanks!

    • @Gerald-iz7mv
      @Gerald-iz7mv Рік тому

      Do you use SIM7600G-H R2? What sim card do you use?

    • @rolandpfeifer4239
      @rolandpfeifer4239 Рік тому

      ​@@timschmidt9296 Yes, thanks. After reinstalling Arduino IDE, now i can upload code. Can the T-SimCam make a serial output in the serial monitor? It does not work for me!

    • @rolandpfeifer4239
      @rolandpfeifer4239 Рік тому

      @@Gerald-iz7mv I use A7670E from Lilygo. I fixed my Connection Problem, so I can upload code now. Can the T-SimCam make a serial output in the serial monitor? It does not work for me!

    • @rolandpfeifer4239
      @rolandpfeifer4239 Рік тому

      @@Gerald-iz7mv Right now, I do not use a sim card, just want to make a serial output in the monitor.

  • @smartassist9700
    @smartassist9700 Рік тому

    What is Google server using as OS? Linux? Or does it matter? (I prefer self server to store my data.

    • @ThatProject
      @ThatProject  Рік тому

      Usually, cloud servers run on Linux. You can choose any OS according to your options.

  • @smartassist9700
    @smartassist9700 Рік тому

    What about personal server (raspberry pi 4). Then how do I access from cell phone? (That way I do not think I need gsm from Google. Right?

    • @ThatProject
      @ThatProject  Рік тому

      If you have a personal server in your local server, you can access it from your phone via WiFi. The purpose of this project is to demonstrate updating to a cloud server using GSM within an MCU environment.

  • @kienvictor736
    @kienvictor736 Рік тому

    What do you think about video or voice streaming with this set up. Is it even possible with 12s of delay ?:))

    • @ThatProject
      @ThatProject  Рік тому +1

      This is not possible with my current settings. Please let me have more drill down for the LTE connection. This is my first cellular project so I need to do more to use 100%.

    • @SA-oj3bo
      @SA-oj3bo 5 місяців тому

      @@ThatProject Did you make some progress about the fps? Did you tested also with baudrate 1Mbps for uarts?

    • @ThatProject
      @ThatProject  5 місяців тому

      @@SA-oj3bo Unfortunately, I'm too busy. haha. I will try to get a better performance if possible.

    • @SA-oj3bo
      @SA-oj3bo 5 місяців тому +1

      We hope so, because nobody else seems to offer a solution to send video over 4G with esp32 and sim7000. Your 4W-car with esp32 cam, controlled by 4G in 2024 please :-) thx in advance.

  • @I_am_Ashok
    @I_am_Ashok Рік тому

    Can we make a call and send SMS to a mobile phone using this board along with sending images captured by this board ?

    • @seanbrodie
      @seanbrodie Рік тому

      Yes. Search for VoIP or SIP ESP32 projects.

    • @I_am_Ashok
      @I_am_Ashok Рік тому

      @@seanbrodie Thanks a lot for your suggestion.

  • @chaihow-to6300
    @chaihow-to6300 4 місяці тому

    Can you make the device call you back and listen to the microphone on the device ?

    • @ThatProject
      @ThatProject  4 місяці тому +1

      It's a very interesting idea. In order for that to be possible, a continuous phone connection must be established, but that part may not be easy.

  • @timvandusen4192
    @timvandusen4192 4 місяці тому

    What phone did you select in order to order the sim card? It seems a phone needs to be selected - no option to enter simcom as what the sim card is for.

    • @ThatProject
      @ThatProject  4 місяці тому

      Since I chose a data-only SIM card, I did not choose which phone to use.

    • @timvandusen4192
      @timvandusen4192 4 місяці тому

      unfortunately now there is not option to choose a data only plan without first selecting a phone of some sort. Do you by chance have a new link that would get me to the data-only plan without selecting a phone? The link you provided for the referral code just goes to a main landing page.

    • @ThatProject
      @ThatProject  4 місяці тому

      @@timvandusen4192 In my case, I think I was able to apply for a data-only SIM because I was already using Google Fi. Would you please check this out? I'm not sure.

    • @timvandusen4192
      @timvandusen4192 4 місяці тому

      I found out that all nano-SIM cards are the same, so I just found a phone that takes the nano-SIM and selected that as the one. Anxious to see how it works.
      BTW, awesome video! Very much appreciate you taking the time and effort to be so thorough.

  • @MaximeROBERT-rl6hd
    @MaximeROBERT-rl6hd Рік тому

    Hi, Is it possible to upload the image in a google drive folder whith out pass on a server ? Thanks

    • @ThatProject
      @ThatProject  Рік тому

      What do you mean by without a password? I don't get it.

    • @MaximeROBERT-rl6hd
      @MaximeROBERT-rl6hd Рік тому

      @@ThatProject i mean without using a server HTTP ? directly between esp and google drive (sorry my english is not very good)

    • @ThatProject
      @ThatProject  Рік тому

      @@MaximeROBERT-rl6hd In order to send any data to the server, at least TCP communication is required. HTTP is just a layer on top of TCP. Anyway, you must use TCP (HTTP) to upload images to the server.

    • @anlpereira
      @anlpereira Рік тому

      ​@@ThatProject Hi, I already tried to do this with an Esp-cam without success. I would like to take a lot of pictures in one day and send them to a Google Drive folder to make a time-lapse video. Can you make such project please? Thank you very much

    • @ThatProject
      @ThatProject  Рік тому

      @@anlpereira I believe there is a similar project already. Something like using Google API to upload files to Google Drive.

  • @timschmidt9296
    @timschmidt9296 7 місяців тому

    since weeks I tried to make it run, but everything I do I only get this error: if (!client.connect(server, port)) {
    Serial.println("... failed");
    } What can I do? GPRS Connection is established

    • @ThatProject
      @ThatProject  7 місяців тому

      If so, your server is not ready to accept to connect to any connections. How did you set up your server?

    • @timschmidt9296
      @timschmidt9296 7 місяців тому

      @@ThatProjectthank you for the answer. I check the firewall rules (of my google cloud VM) and I didn't create a firewall rules. Instead I created a firewall policy. Now it works fantastic. Sorry for my comment. Maybe someone else has the same error :)

  • @Gerald-iz7mv
    @Gerald-iz7mv Рік тому

    How much power it needs to run all together?

  • @Gerald-iz7mv
    @Gerald-iz7mv Рік тому

    hi is there a solar cell which could power that board?

    • @ThatProject
      @ThatProject  Рік тому

      It seems that there is no solar cell associated with this product. You need to purchase a product separately and connect it.

    • @Gerald-iz7mv
      @Gerald-iz7mv Рік тому

      @@ThatProject i know - which solar cell you suggest? any experience in this area?

    • @ThatProject
      @ThatProject  Рік тому

      @@Gerald-iz7mv Unfortunately, I haven't tried anything about it yet.

    • @Gerald-iz7mv
      @Gerald-iz7mv Рік тому

      @@ThatProject ok np - looking forward for your new videos :)

  • @sudutpandang4787
    @sudutpandang4787 Місяць тому

    My god 😭

  • @aka_vitfil
    @aka_vitfil Рік тому

    Did U hear something about smartphones? )))