Florent Clairambault

TC65 HTTP POST request

This is just a quick code to show how to do a simple http POST request from a TC65 chip. private void httpCheck() { String data = "Parameter1=000009960623185&Parameter2=$GPWPL,4807.038,N,01131.000,E,WPTNME*5C"; String url = "http://test.webingenia.com/postIdent"; HttpConnection conn = null; InputStream is = null; OutputStream os = null; try { // Test HTTP connection // We prepare the POST request conn = (HttpConnection) Connector.open( url ); conn.setRequestMethod( HttpConnection.POST ); conn.setRequestProperty( "Content-Type", "application/x-www-form-urlencoded" ); os = conn.

Server-Side HTTP Request tester

I made this simple test website for those of you who would want to check if their HTTP request made from a simple equipment like the TC65 are sent correctly. The idea is simple : You choose an id like “ThisIsMe” You access the test website with this id : http://test.webingenia.com/ThisIsMe You check what was the content of the request at this address : http://test.webingenia.com/read/ThisIsMe You can contact me if you don’t understand something, if something doesn’t work or if you would like me to add a feature.

TC65 : Slow UDP reception

Introduction Receiving UDP datagrams on the TC65 is easy but inefficient. You need to create a new thread if you want to receive data asynchronously. There’s no way of knowing if a new datagram has been received or not without hanging on the ::receive( Datagram ); method. This is quite weird considering you can do it in TCP. The real problem is it’s freaking slow. The Cinterion documentation just tells you “This method blocks until a datagram is received.

Cinterion TC65’s TCP stack limits

WARNING: All the Cinterion related content from this blog will be removed to go to the javacint wiki soon. Please get used to going there. If you use the TC65 to transmit some frequent (with a transmission interval of less than 700 ms) data, you should know that the TC65’s has a poor TCP implementation considering the ACK management of sent messages. When the TC65 sends a TCP packet, it waits for an ACK packet before sending any other packet.