Jump to content
The mkiv Supra Owners Club

Anyone able to write serial PDA applications


Wez

Recommended Posts

  • Replies 90
  • Created
  • Last Reply

Top Posters In This Topic

The stream I am using is the one in this post :-

 

http://www.mkivsupra.net/vbb/showpost.php?p=1782545&postcount=36

 

I have also found a windows tool that lets you type in a HEX string to send out the com port, seems to be working but I have something funny going on with my scalar calc at the moment.

 

Getting there slowly :)

 

EDIT: Discovered tonight that I also require a null modem between PDA and ECU, not a problem as I had one with me.

Link to comment
Share on other sites

No worries, think I am banging my head against a brick wall to get the simulator on the PDA (would have worked for the emulator too).

 

Is that how COMMLOG picks it up. Not sure how replaying a constant stream would work.

Could see sending each byte out one by one..

 

ie.

 

55

B9

7E

37

 

Or the 4 bytes at ago.

 

55 B9 7E 37

 

That's for the 2 feed system example you put.

 

Also I think I am making it more complicated for myself then was required. Are you just pumping the data from the laptop to the PDA... IE.. Talking through Com1 on the Laptop where the serial cable is attached.

 

Sorry second night in and I'm tired now.

Link to comment
Share on other sites

When I monitored the stream on the laptop with serial monitor and hyper term is it flowed in a line and wrapped like 55 00 ff ff 55 b9 00 b9. When I looked at it with commlog on the PDA it displayed it line by line.

 

For testing I have a utility called Windmill comDebug on the laptop which sends a string of data out the serial port, this is connected to my PDA running the app.

Link to comment
Share on other sites

Trying to figure out how best to lay stuff out now.

 

I know I can monitor all 19 channels that the AEM offers but PDA screens are too small to have it all on one page. I am thinking about spreading it over a couple of tabs and grouping various items together.

Link to comment
Share on other sites

One option is to use the GDI and draw the output onto Picture Boxes..

That way you just choose what you want to draw and the layout stays the same. Make's it easy to change the layout between Port/Land.

 

It's what I do with the Compass, doesn't matter what size it is, it caters for that.

 

Takes a little more work to set up, but then it's easy to reuse..

Link to comment
Share on other sites

  • 3 weeks later...

Wez,

 

Have a look at this for an example of what I meant of the GUI design.

 

You should be able to run it if you can run my PDA app.

 

I've the source you can have if you like, but it is designed in Visual Studio.

 

Paul.

 

*** Update ***

 

Due to me being lazy, you'll need to run this in Portrate mode and not in 'true vga' ala OzVga.

Just click anywhere on the screen to go to the next screen

GUI Test.zip

Link to comment
Share on other sites

Thats great thanks, I will PM you when I test it.

 

No worries, just first draft and proof of concept.

With this all you need to do is drop a picturebox on the page, pass the subroutine some params and it draws the control.

 

Stuff I'd add.

 

Min/Max alarms

Green bar would show the current value plotted along it, also would show the min/max alarm values in different colours (Params also).

Background would change colour depending on Max/Min alarms, easier to spot something going wrong.

 

Config files for the Feeds and how the screens are set up.

 

Some minor other stuff..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. You might also be interested in our Guidelines, Privacy Policy and Terms of Use.