shameem wrote:Do you have a link to the source code? I am looking to develop a visualization tool for the serial interface - i am kinda bogged down by something right now - but i should be able to get on it soon. Your gauges and graphs look interesting - if all that code is GPL then i may borrow some - just for gauges...
Well, I don't have any link (i should, but time is not my friend). It's all GPL, but this gauges and graphs uses Qt4 libraries, adding all that library just because a couple of gauges is a waste. Oh, I also must recommend qextserialport. It reaches my usb-serial adapter perfectly (working on a debian laptop. Worked with kubuntu too), and is multiplatform.
Really, i wrote 80% of that code in a couple of months. It should be multithreading, but i thought it was hard to do (it's not! maybe in some free time i'll do it). The code is a little messy.
Lets keep talking about serial comm. This is getting off topic
The length of the string sent to the PC is not relevant. Unless you are transmitting 90+ channels, the communication speed will be fine. The procol can be as tricky as you want (but not trickier). For example, i was sending a VE table stored in the PC's RAM, to the ECU, and the ECU use it to do all the math.
This is the nice thing:
For on-the-fly table changes, the ECU used a sort of micro_table, sent by the PC on demand. So the data table is stored and changed in the PC, and it send all variables needed by ecu in real time. THE CODE FOR THIS WAS A MESS. It took me many months of trial and error. But, incredibly it worked. I was sending lots of data @ 119200baud, filling tables on real time (i think 4 milliseconds). So don't worry about string lenght
I did this because i have only 400 bytes of ram on the ECU. A few weeks later i changed the whole thing.
For developing, i think that a tool like minicom or cutecom (i love it) isn't enough. It surely is good enough for the first attempts but, in my case, i found my own software for debugging a priceless tool. Its just a thought, take it or leave it.
btw, i'm 20 years old, so feel free to refuse my ideas, hehe.
Byebye