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 - Наука та технологія
For more projects - youtube.com/@ThatProject
That Project Github Repository - github.com/0015/ThatProject
Join FB Group - facebook.com/groups/138965931539175
오랜만에 채널 들어왔는데 영상 퀄리티랑 프로젝트 퀄리티가 완전 업그레이드 되었네요. 잘 보고 갑니다. 언제 한 번 뵙고 싶네요!
Awesome work on this video! Thanks.
this is amzing
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?
Maybe. Let me think about that project.
The SIM7600G-H is EOL. The SIM7600G-H R2 is the recommended modual to use. It costs ~$50 usd.
Thank you for good information.
@hwhack do you have a link to the SIM7600-H R2?
@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?
@@Gerald-iz7mv also looking for one without battery, let me know if you find anything
Sooo cool thank you! I am a noob, did you make this board from scratch?
Thank you. I used products from LilyGo for this project.
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!
I don't know if you can use the same way to update images over a 2G network but it's worth trying.
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 ?
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
Also check: Walter - ESP32-S3 5G IoT module - looks like they will be available soon - what you think of the specs?
Any link for this?
@@ThatProject how to post links here? If you google it it should be first result.
This is an absolutely amazing project, but this board is soo expensive. 😢
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.
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?
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
nice
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!
I'll give it a try when I get a good chance. Thank you.
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?
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();
}
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!
Do you use SIM7600G-H R2? What sim card do you use?
@@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!
@@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!
@@Gerald-iz7mv Right now, I do not use a sim card, just want to make a serial output in the monitor.
What is Google server using as OS? Linux? Or does it matter? (I prefer self server to store my data.
Usually, cloud servers run on Linux. You can choose any OS according to your options.
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?
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.
What do you think about video or voice streaming with this set up. Is it even possible with 12s of delay ?:))
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%.
@@ThatProject Did you make some progress about the fps? Did you tested also with baudrate 1Mbps for uarts?
@@SA-oj3bo Unfortunately, I'm too busy. haha. I will try to get a better performance if possible.
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.
Can we make a call and send SMS to a mobile phone using this board along with sending images captured by this board ?
Yes. Search for VoIP or SIP ESP32 projects.
@@seanbrodie Thanks a lot for your suggestion.
Can you make the device call you back and listen to the microphone on the device ?
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.
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.
Since I chose a data-only SIM card, I did not choose which phone to use.
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.
@@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.
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.
Hi, Is it possible to upload the image in a google drive folder whith out pass on a server ? Thanks
What do you mean by without a password? I don't get it.
@@ThatProject i mean without using a server HTTP ? directly between esp and google drive (sorry my english is not very good)
@@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.
@@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
@@anlpereira I believe there is a similar project already. Something like using Google API to upload files to Google Drive.
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
If so, your server is not ready to accept to connect to any connections. How did you set up your server?
@@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 :)
How much power it needs to run all together?
I'll check it out on my next project.
@@ThatProject amazing!
hi is there a solar cell which could power that board?
It seems that there is no solar cell associated with this product. You need to purchase a product separately and connect it.
@@ThatProject i know - which solar cell you suggest? any experience in this area?
@@Gerald-iz7mv Unfortunately, I haven't tried anything about it yet.
@@ThatProject ok np - looking forward for your new videos :)
My god 😭
Did U hear something about smartphones? )))