fix a unstable internet connection bug in microcontroller C code
$200-600 USD
Closed
Posted over 8 years ago
$200-600 USD
Paid on delivery
We had a company develop for us a hardware, equipped with a PIC18F46K22, connected via UART communication to another hardware using another PIC.
The hardware works by connecting to the internet using a ENC28j60 module, with a ethernet connection using DHCP, and then, downloads data from a mysql server to microcontroller RAM.
The code is working fine in some some routers/ISPs, but the connection to the server is highly unstable if connected to other routers/ISPs. This is the bug that I need to fix, unstable connection to the remote server.
Device has a character LCD, that displays the percentage indicator for the download that is being done, in some internet provider, I get many download error messages.
Code is attached.
Hello,
First of all thank you for inviting me to your project. It's highly appreciated.
I just looked at your code and based on what I saw, there is only one condition that the code disconnects the TCP connection and it is when the device goes to server mode. If somehow the related variable (server_mode) becomes 1 or the other side of the link (remote server) terminates the connection, then there is not much we can do. the second one is unavoidable but the first one may happen due to memory leakage and overwriting the variables because of the lags and delays for remote connections that hold memories for longer period of time and makes the code unstable. And of course the code is not well written nor optimized and probably that's the reason why it gets unstable under stress. If you have the IDE to compile the codes and have teamviewer then I can connect to your PC to make some modifications on the codes and optimize it for you to see if the problem gets resolved. Please let me know if you are interested.
Best regards,
Shahram
Hi.
Im telecommunication engineer. I can do your project and take a look but I would need someway to test the device and uploading codes(maybe with team viewer?). Also I would need to acess the server to check logs, status and make some tests. I also can test in my servers with some tools.
I can also speak Portuguese.
Regards.Greg.
Hello,
Trust you are doing well! :)
I introduce myself as a well experienced Embedded Software developer.
Total experience of 5 years.
I have delivered previous projects on time and with 100% satisfaction on Freelancer.
(https://www.freelancer.in/u/kaush9287.html#/reviews)
I have good experience of developing embedded software for Microchip PIC micro controllers.
Kindly get in touch for discussing the details.
Be rest assured that your work will be completed with best quality and on time.
Hoping to hear from you soon! :)
Best Regards,
Kaushal
Hi,
I am electronics and telecommunication engineering undergraduate of university of moratuwa. I have very good experience in micro controller, micro controller programming, analog circuit design etc. i can do a best job with in your time. Please talk to me we can talk more about the projcet.
Hey,
I am Ravi Jivani. I am a professional Firmware Engineer. I feel glad to see the project based on PIC 18 Controller. From past half year I am working on PIC 18 and really impressed with it's performance. So, I will give you hats off for choosing a really smart chip. its CCP module and ECCP module is the plus point of using the advantage of modern architecture.
The problem basically you are facing is based on the Interrupt from where i could understood from the description given with it.
Feel free to contact me if you are interested.
Ravi Jivani
9427387999