need help with a remote control program on Nokia 3650

Login to reply to this topic.
Wed, 2007-10-31 08:44
Joined: 2007-09-15
Forum posts: 5

I have modified the IRScope program [url=http://newlc.com/Programming-IrComm3-wire-raw.html] that is available on the newlc
website. I have eliminated the read from the program and sending the bytes directly to the write. I am trying to make it work with
the Sony triniton having the remote RM783.

I am sending the volume- signal described at [url=http://www.sbprojects.com/knowledge/ir/sirc.htm]

I am using Visual .net 2003 IDE with Carbide.vs plugin.

The main problem is that I can not figure out what to write in the write() method.
I changed that write so many times. I learned that comb of 0xdb pulses at [url=http://www.veg.nildram.co.uk/remote.htm] (Search for 0xdb on the page) could do the work.

the article states:
"I make the assumption that most receivers will be happy with combs of pulses at 38.4kHz, since they are designed round R-C
filters and diode pumps (at least conceptually, though most use one integrated device). I can achieve this by transmitting
suitable characters at 115200 baud out of any serial port, so long as there are no gaps between characters. The precise pattern
for a comb is the character value 0xdb, at 115k2/8/e/2 (0x5b at 115k2/7/n/1"

i have a question here... it is about the character value ... what will the write statement have in its parameter ... a string ? or a buffer and what will be its value ?

I am attaching the zipped file of the source and the header file. Please if some kind soul can see what Wrong I am doing here.
Most probably i think there is some problem with the write() method only.
Does anyone know what exactly in the code I have to write so that it can work.
It has been so many days but I am still not able to make it work with that. Please anyone help me with this program. I really do not know what wrong i am doing in it. I have been stuck with it for so many days.

code snippet of our program:

#if defined (__WINS__)
RFs fileServer;
User::LeaveIfError(fileServer.Connect());
fileServer.Close();
#endif

err = User::LoadPhysicalDevice(KPddName);
if ((err != KErrNone)&& (err != KErrAlreadyExists))
User::Leave(err);

err = User::LoadLogicalDevice(KLddName);
if ((err != KErrNone)&& (err != KErrAlreadyExists))
User::Leave(err);

StartC32();
if (err != KErrNone && err != KErrAlreadyExists)
User::Leave(err);

User::LeaveIfError(iCommServ.Connect());

err = iCommServ.LoadCommModule(KRS232);

err = iComm.Open(iCommServ, KCommPort, ECommExclusive);

TCommCaps commCaps;
iComm.Caps(commCaps);

TCommConfig portConfig;
iComm.Config(portConfig);
portConfig().iHandshake = 0;
portConfig().iDataBits = EData8;
portConfig().iStopBits = EStop2;
portConfig().iParity = EParityEven;
portConfig().iSIREnable = ESIREnable;
portConfig().iSIRSettings = KConfigSIRPulseWidthMaximum;
portConfig().iRate = EBps115200;
User::LeaveIfError(iComm.SetConfig(portConfig));

iTxTimeOut = 6000000;
Cancel();
iTxData.Copy(aTxData);
TInt p = iTxData.Length();
_LIT8(DATA_STRING1,"dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb
dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb
dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb
dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb
dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb
dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb
dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb
dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb
dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb
dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb
dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb
dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb
dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb
dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb
dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb
dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb
dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb
dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb
dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb
dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb
dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb
dbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdbdb");
//TUint p = DATA_STRING1.iTypeLength;
iComm.Write(iTxStatus, iTxTimeOut, DATA_STRING1);
//iComm.Write(iTxStatus, DATA_STRING1,DATA_STRING1.iTypeLength);
iComm.Close();
iCommServ.Close();

AttachmentSize
Final.zip8.85 KB
  • Login to reply to this topic.