Thank you Steve,
that did the trick
all I do knoy is
adapter.select(IDasLong);
adapter.putByte(0x08);
to turn the backlight on
nce again thank you
/MArtin
Search found 12 matches
- Thu May 08, 2008 7:04 am
- Forum: 1-Wire Forum
- Topic: Sending codes with OneWireAPI.net
- Replies: 4
- Views: 9058
- Wed May 07, 2008 9:06 pm
- Forum: 1-Wire Forum
- Topic: Sending codes with OneWireAPI.net
- Replies: 4
- Views: 9058
Sending codes with OneWireAPI.net
I have seen this but I have to get my students to be able to code their own in C sharp (C#) and to help them I really must be able to handle it myself :) After reading the PDF I suppose I can do like this: adapter.select(IDasLong); // where IDasLong is the ID for the LCD controller Now should it be ...
- Wed May 07, 2008 7:24 pm
- Forum: 1-Wire Forum
- Topic: Sending codes with OneWireAPI.net
- Replies: 4
- Views: 9058
Sending codes with OneWireAPI.net
Hi all, I now have a new class and we are using OneWireAPI.net and C sharp to program applications for reading and writing 1-wire devices. But when I preparing for the classes I got a little problem. How do I read or write to a device that has no prepared container? (hat I mean is OneWireContainer10...
- Wed Feb 20, 2008 11:52 am
- Forum: 1-Wire Forum
- Topic: Reading DS2406 And DS2423 using TMEX and VB6
- Replies: 16
- Views: 20979
Reading DS2406 And DS2423 using TMEX and VB6
Alright thanx alot,
But I don't understand why we need to read two additional bytes, but if we need to do that we gotta do that *smile*
I will try when I get the +5V powered in *smile*
And thanx again for all
/Maeron
But I don't understand why we need to read two additional bytes, but if we need to do that we gotta do that *smile*
I will try when I get the +5V powered in *smile*
And thanx again for all
/Maeron
- Wed Feb 20, 2008 7:55 am
- Forum: 1-Wire Forum
- Topic: Reading DS2406 And DS2423 using TMEX and VB6
- Replies: 16
- Views: 20979
Reading DS2406 And DS2423 using TMEX and VB6
Doesn't it work if powered with the DS94940R (The USB)?
What I understood IT could power the 1 wire network.
/Maeron
What I understood IT could power the 1 wire network.
/Maeron
- Tue Feb 19, 2008 11:07 pm
- Forum: 1-Wire Forum
- Topic: Reading DS2406 And DS2423 using TMEX and VB6
- Replies: 16
- Views: 20979
Reading DS2406 And DS2423 using TMEX and VB6
The device is found by the program and it shows up correctly. Here is the complete function: Function SetFlipFlop(S As Integer, RoMID As String, Fam As Integer) As Boolean '// Start session SHandle = -1 Num = 0 While (SHandle <= 0) SHandle = TMExtendedStartSession(PortNum, PortType, vbNullString) Nu...
- Tue Feb 19, 2008 7:05 pm
- Forum: 1-Wire Forum
- Topic: Reading DS2406 And DS2423 using TMEX and VB6
- Replies: 16
- Views: 20979
Reading DS2406 And DS2423 using TMEX and VB6
Hmm I tried to send the following command "flag = TMTouchByte(SHandle, &H1F)" HEX 1F = 31 thay SHOULD set channel a AND B to ON but it does not work the complete code I tried: '// Write STATUS command flag = TMTouchByte(SHandle, &H55) CRCByte = &H55 CRC16 = TMCRC(1, CRCByte, CR...
- Tue Feb 19, 2008 4:00 pm
- Forum: 1-Wire Forum
- Topic: Reading DS2406 And DS2423 using TMEX and VB6
- Replies: 16
- Views: 20979
Reading DS2406 And DS2423 using TMEX and VB6
mhwlng,
I found what I was looking for in you C++ code, thanx for sharing.
I will try this tonight and see if I can get it to work
/Maeron
I found what I was looking for in you C++ code, thanx for sharing.
I will try this tonight and see if I can get it to work
/Maeron
- Tue Feb 19, 2008 2:41 pm
- Forum: 1-Wire Forum
- Topic: Reading DS2406 And DS2423 using TMEX and VB6
- Replies: 16
- Views: 20979
Reading DS2406 And DS2423 using TMEX and VB6
That was fast *smile*
Thanx alot I will check that page ...
And thax again
/Maeron
Thanx alot I will check that page ...
And thax again
/Maeron
- Tue Feb 19, 2008 1:38 pm
- Forum: 1-Wire Forum
- Topic: Reading DS2406 And DS2423 using TMEX and VB6
- Replies: 16
- Views: 20979
Reading DS2406 And DS2423 using TMEX and VB6
Thanx
I will contact him
/M
I will contact him
/M
- Tue Feb 19, 2008 1:23 pm
- Forum: 1-Wire Forum
- Topic: Reading DS2406 And DS2423 using TMEX and VB6
- Replies: 16
- Views: 20979
Reading DS2406 And DS2423 using TMEX and VB6
Yes I've seen that but that code does not set the switch it just check for it and try to acces its filesystem that generates a error.
- Tue Feb 19, 2008 12:59 pm
- Forum: 1-Wire Forum
- Topic: Reading DS2406 And DS2423 using TMEX and VB6
- Replies: 16
- Views: 20979
Reading DS2406 And DS2423 using TMEX and VB6
Hi all, Im writing a litte class lab for students to program 1 Wire devices from Visual Basic 6. We use TMEX API. I have some problems with the DS2406. What should I send for setting the switch value? flag = TMAccess(SHandle., ??) The same code I use for DS2405 does not work on DS2406. I havn't star...