So I think we need to add CR LF to each transmission.
Hello Ghica,
I will try to be clearer. I wrote a program for the Microchip 18F4685.
This one controls LED lighting. I have 42 commands that arrives on the serial bus of the peak on which is plugged the module Wifi RN171-XV.
I test the characters that happen on the serial bus. I verify that they are between 01 and 60 (01, 02, ...., 40, ..., 50, ... 60).
Each character corresponds to a function.
01 Enable Wifi
51 Disabled Wifi
02 Manual
52 Auto
05 Program 1
24 Program 20
30 to 40 Speed / Brightness
Etc ...
The program works perfectly with the Roving Wifly software available for free at Play Store (Android) and Apple Store (MacOS).
So I was able to validate my application on the microprocessor.
I still have to realize the Android interface. This is what I do with my MAI2 application.
The GUI is finished, I still have to write the code. If you watched my application, you can see the number that I should send in wifi. Any function on MAI2 except the transmission of this value. This is the last thing I have to do.
My module is connected in USB on my computer and I can see thanks to Coolterm the data that arrive on the COM port.
On my Samsung tablet I installed the Roving Wifly program which allows me to send the characters. For programming the microprocessor, I use Flowcode and ISIS which simulates in real time my electronic card. Flowcode generates a HEX file that is read by ISIS in real time.
Everything works perfectly if I use Roving Wifly on the tablet.
As soon as I am in MAI2 on tablet, only the first two character sends works. It is to the second that I have the error 1103.
The settings of the wifi module are ok because as soon as I switch back on the Roving Wifly software, it works.
So it is in the connection to the module with MAI2 that I have the problem.
I do not know in what mode the Roving software connects.
All I can see is that as soon as I chose the Wifi RN171-XV module with the Roving Wifly software, the green LED flashes completely and I receive:
* Open * Hello
On the other hand, with the application MAI2, when I send my two characters (Example: 52), the green LED lights up completely and I receive:
PUT / HTTP / 1.1
Connection: Close
User-Agent: Dalik / 1.6.0 (LINUX; Android 4.1.2; GT-P5110 Build / JZ054K)
Host: 192.168.0.69:2000
Accept-Encoding: gzip
Content-Type: application / x-www-form-urlencoded
Content-Length: 4
52
I will try to know in which mode the wifi module passes at the time of the connections.
As you can see on my previous messages, I test each time all the solutions that are proposed to me.
Is there not another way to transmit characters without going through the http?
Best wishes for 2017, Lecalou60