RCXMotorMux and PCF8574 on EV3
Page 1 of 1

Author:  Bichon [ Sat Jan 10, 2015 12:22 pm ]
Post subject:  RCXMotorMux and PCF8574 on EV3


I just try to use my old multiplexers that worked fine on my NXT with RobotC 2.x. But now I have an EV3 and RobotC 4.28beta.
I read that drivers were not all up to date so I didn't expect it worked at first, and I decided to work on the driver for me and the community if possible.
So I took the github deposit and modiied what was necessary.
But nothing works.
When I use the Test I2C sensor utility, I have a good answer for the PCF8574 (only input multiplexor) and the good behavior for the rcxmotrmux. So both my multiplexors and my EV3brick are functionnal.
But when I try to use I2C functions in a RobotC program, nothing works even if I fix the I2CStatus and things like that .
The first error I found is the test of SensorType in common.h.
So I tried to simplify and I realized that the SensorType is always set to 0 (noSensor) even if I force it to another value
#pragma config(Sensor, S1,     PCF8574,        sensorEV3_GenericI2C)
task main ()
   while (true)
      SensorType[PCF8574] = sensorI2CCustom;
      toto = SensorType[PCF8574];

Running this code on EV3, I can see that the SensorType (toto) is always 0.
Maybe that's the reason why nothing can be done on I2C.
Can anyone confirm?

Author:  mightor [ Sun Jan 11, 2015 3:16 am ]
Post subject:  Re: RCXMotorMux and PCF8574 on EV3

I can confirm that the drivers have not been fully tested on the EV3. I have a semi-working common.h on my development VM here that I have not uploaded yet. It has fixes for most of the issues you guys are having with the suite.

= Xander

Author:  Bichon [ Mon Jan 12, 2015 3:36 pm ]
Post subject:  Re: RCXMotorMux and PCF8574 on EV3

Yes but despite the drivers are not working, why the SensorType value is not taking into account when I modify it?

Author:  mightor [ Mon Jan 12, 2015 4:29 pm ]
Post subject:  Re: RCXMotorMux and PCF8574 on EV3

You need to use ROBOTC 4.28, that bug was fixed in the latest version.

= Xander

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group