PDA

View Full Version : serial polling



mataston
- 5th July 2010, 01:54
i have a device which i need to poll it to get information from it, how do you poll using basic???

rsocor01
- 5th July 2010, 14:51
i have a device which i need to poll it to get information from it, how do you poll using basic???

Mataston,

You need to provide more details if you want some real help. What device is it? What PIC are you planning to use?

Robert

mataston
- 5th July 2010, 17:43
ok i was looking at a pic 16f84, the device is an engine ecu, which i need to poll to get info from

rsocor01
- 5th July 2010, 18:00
ok i was looking at a pic 16f84, the device is an engine ecu, which i need to poll to get info from

You need to get the ECU datasheet and see what I/O it has available to interface with the MCU. The PIC that you are choosing is a very basic one. Definitely, not suitable for the kind of project that you want.

Robert

mataston
- 5th July 2010, 22:36
o.k basicly the ecu, has a serial connection, standard 9600,n,8,1, All the data about the engine comes down via serial, apparently it sits in a buffer till someone polls it for the info. its 120bytes in total, so i would probably have to poll it via serial drag all the info then filter out the bit i want.

Archangel
- 6th July 2010, 04:09
o.k basically the ecu, has a serial connection, standard 9600,n,8,1, All the data about the engine comes down via serial, apparently it sits in a buffer till someone polls it for the info. its 120bytes in total, so i would probably have to poll it via serial drag all the info then filter out the bit i want.It would be useful to know the Make, Model of the vehicle OR what data must be sent to activate the ecu to send. Old GM obd1 systems would send if you ground a certain wire on the ALDL, OBDII is a bit more complicated. I suggest you use the Google search engine (the one which will search just this forum) as this has been done before by others here.
http://www.google.com/custom?q=&sa=Google+Search&cof=S%3Ahttp%3A%2F%2Fwww.picbasic.co.uk%2Fforum%3B AH%3Aleft%3BLH%3A37%3BL%3Ahttp%3A%2F%2Fwww.crownhi ll.co.uk%2Flogo.gif%3BLW%3A174%3BAWFID%3Af08c2ab0d 3333e22%3B&domains=picbasic.co.uk&sitesearch=picbasic.co.uk

mataston
- 11th July 2010, 21:39
its called megasquirt