12-30-2024, 10:03 AM
(This post was last modified: 12-30-2024, 01:11 PM by Gesinentec.)
(12-30-2024, 09:55 AM)admin Wrote: 1. what's your KC868-A2 pcb version? take a photo.
2. sure, you can use SIM7600E connect to cloud server by MQTT.
1) It is A2 V2.4.
I tested the module using the latest firmware 2.2.10 and using your own interface I can send a message and call my phone so I know the module works and the SIM does as well.
I want to do the same but using our ESPHome code we have implemented but I am not sure if the pinout is correct and also I can simulate buttons and I see the AT commands coming in but no output and unable to test AT commands.
I am also unsure on how to test if it is working or connecting using only the SIM connection to the internet other than making some mqtt configuration messages.
Code:
button:
- platform: template
name: "Call Button"
on_press:
then:
- uart.write:
id: uart_sim7600
data: "ATD[phone number];\r\n" # Replace with the phone number to dial
- platform: template
name: "Send SMS Button"
on_press:
then:
- uart.write:
id: uart_sim7600
data: "AT+CMGF=1\r\n" # Set SMS to text mode
- delay: 1s
- uart.write:
id: uart_sim7600
data: "AT+CMGS=\"[phone number]\"\r\n" # Replace with the recipients phone number
- delay: 1s
- uart.write:
id: uart_sim7600
data: "testdevice-02\x1A" # Send the message and terminate
So apparently this is the proper pinout for the GSM in the A2, which is different than the one on this website https://devices.esphome.io/devices/KinCony-KC868-A2:
Code:
- id: uart_sim7600
tx_pin: GPIO5
rx_pin: GPIO13
Also I don't know if this also was needed but it works for me but in this code of one of your examples
Code:
- platform: template
name: "Call Button"
on_press:
then:
- uart.write:
id: uart_sim7600
data: "ATD[phonenumber];\r\n" # Replace with the phone number to dial
In [phone number] I also added the area code of the country.
I could recieve a message and a call using button components to simulate the press of a button.
EDIT: MY NEW ISSUE IS THIS: I need to be able to get this device running connecting to the internet using a 4G/LTE connection. I can receive messages and calls and I can send them using your software and ESPHome but as far as I know there is no 4G connection integration with ESPHome so I assume this must come from an external component.
Do you have anything at hand you could help me with for this?