Uploading protocol to arduino

Hi everyone. Please help me with this.

I have an app (the source code is not available to me). This app has a wifi module with its own ssid and password. My task is to connect the app to arduino.

I have an esp board(Espressif Systems). With this board i can generate ssid and password and has wifi capabilities. The problem is this app only connects with the wifi module. There is a protocol between the app and the wifi module. I have protocol: TCP/IP text based protocol. My question is what can i do to make this connection between app and the esp happen? I am new to this area. I really need help with this one. I thank you for your assistence and understanding.

confirm you can connect the ESP to the app wifi module using its SSID and password?
I assume app wifi module runs a TCP server with this text based protocol?
do you know the TCP server port number?
if so you should be able to connect a TCP client and receive text

1 Like

I can only connect the app with its own wifi module.

But when i generate esp32 with ssid and password, it is not working.

I have no idea, how to connect these two(app and esp32). :disappointed_relieved: What i was give is only a text based TCP ip protocol. it is stating something like General command structure:
[STX][RequestID][Flags][Command][Data][ETX]

I dont have server port number. or where can i find it. Thank you for your reply and reading till end

can you upload the text based TCP protocol details or at least a summary and examples of commnds?
I would think it should specify the server port - otherwise could use wireshark to look at traffic

App  Wifi-Box
Request: [STX][..][80][03][ETX]
Response: [STX][..][00][03][SetupState][Motor][ReceiverState][Light][Fan]
[Systemmode][SystemFlags][Roomtemperature][Settemperature]
[Name][IconIndex][Wifi_RSSI][ETX]
[SetupState]: 0bxxxxxxx1: Fan present
0bxxxxxx1x: Light present
0bxxxxx1xx: AUX present
0bx1xxxxxx: Setup complete
0b1xxxxxxx: connected to Network 1 Byte
[Motor]: Motor position 1 Byte
[ReceiverState]: 0bxxxxxxxxxxxxxxx1: Module connected
0bxxxxxxxxxxxxxx1x: new error
0bxxxxxxxxxxxxx1xx: Lamp
0bxxxxxxxxxxxx1xxx: Aux
0bxxxxxxxxxxx1xxxx: Ignition
0bxxxxxxxxxx1xxxxx: Mainburner (if 2.TC connected)
0bxxxxxxxxx1xxxxxx: Fan state
0bxxxxxxxx1xxxxxxx: Fire/Pilot state
0bxxxxxxx1xxxxxxxx: Shutdown
0bxxxxxx1xxxxxxxxx: Handset connected
0b1xxxxxxxxxxxxxxx: Receiver connected 2 Bytes
[Light]: Dim Level (0: Off) 1 Byte
[Fan]: Fan Level 1 Byte
[Systemmode]: System Mode 1 Byte
[SystemFlags] 0bxxxxxxx1: Countdown active
0bxxxxxx1x: Temperature control enable
0bxxxxx1xx: User profile active
0bxxxx1xxx: Child lock active
0bxxx1xxxx: Programmer active
0bxx1xxxxx: Programs invalid
0bx1xxxxxx: Updating 1 Byte
[Roomtemperature]: Handset or external Temperature sensor
in 0.1°C 2 Bytes
[Settemperature]: Set Temperature in 0.1°C 2 Bytes
[Name]: Wifi-Box Name 32 Bytes
[IconIndex]: 1 Byte
[Wifi-RSSI]: in -dBm 1 Byte
[Handset mode]: 1 Byte

It says something like this. I have alot of commands similar like this. But at first i wannted to make connection between this app and esp.

have you tried using wireshark to view network traffic?
what does the app run on?
when you connect the app to the WiFi module you should be able to see the protocol (TCP or UDP) and the port - you should also be able to see the contents of packets
e.g. if it is using telnet it is normally port 23

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.