JP1 Remotes Forum Index JP1 Remotes


FAQFAQ SearchSearch 7 days of topics7 Days MemberlistMemberlist UsergroupsUsergroups RegisterRegister
ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in

LEGO power functions
Goto page Previous  1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    JP1 Remotes Forum Index -> JP1 - General Forum
View previous topic :: View next topic  
Author Message
ElizabethD
Advanced Member


Joined: 09 Feb 2004
Posts: 2348

                    
PostPosted: Mon Dec 14, 2015 11:16 pm    Post subject: Reply with quote

All my remotes run extender. I guess I could sacrifice an extender on 8910. But the amount of data this LEGO remote sends out is enormous. Wait till you see the wheel which I still haven't figured out how to learn.
_________________
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride Smile
Back to top
View user's profile Send private message
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21234
Location: Chicago, IL

                    
PostPosted: Mon Dec 14, 2015 11:29 pm    Post subject: Reply with quote

Here's the learning data from the first 8 learns posted:

ch1 blue brake,
+160 -1021 +179 -567 +160 -267 +160 -286 +160 -267 +160 -294 +152 -567 +160 -294 +160 -567 +152 -567 +160 -294 +160 -267 +152 -294 +160 -567 +160 -286 +160 -567 +160 -267 +160 -100886
ch1 red brake,
+165 -1018 +182 -263 +164 -291 +154 -263 +165 -290 +165 -263 +182 -563 +164 -263 +165 -280 +165 -563 +164 -291 +154 -263 +165 -290 +165 -263 +182 -263 +164 -563 +182 -546 +154 -100891
ch2 blue brake,
+157 -1022 +178 -569 +158 -269 +157 -290 +157 -569 +158 -295 +152 -569 +157 -296 +157 -569 +152 -569 +157 -296 +157 -269 +152 -295 +158 -569 +157 -290 +157 -569 +158 -569 +157 -138169
ch2 red brake,
+162 -1038 +162 -292 +154 -265 +162 -292 +162 -565 +154 -292 +162 -565 +162 -265 +154 -292 +162 -565 +162 -265 +181 -265 +162 -292 +154 -265 +162 -292 +162 -565 +154 -265 +162 -138165
ch3 blue brake,
+163 -1019 +181 -265 +162 -292 +154 -564 +163 -292 +163 -264 +154 -564 +163 -292 +163 -564 +154 -564 +163 -292 +163 -264 +181 -265 +162 -292 +154 -264 +163 -292 +163 -264 +154 -179846
ch3 red brake,
+162 -1046 +181 -565 +162 -265 +162 -565 +181 -265 +162 -292 +154 -565 +162 -265 +162 -292 +154 -565 +162 -292 +162 -265 +181 -265 +162 -565 +162 -284 +162 -265 +162 -565 +162 -179484
ch4 blue brake,
+156 -1022 +178 -570 +156 -270 +156 -570 +178 -570 +156 -270 +156 -570 +178 -270 +156 -570 +156 -570 +178 -270 +156 -296 +152 -296 +156 -570 +156 -270 +152 -296 +156 -570 +156 -221418
ch4 red brake,
+163 -1019 +181 -564 +164 -264 +163 -564 +181 -564 +164 -264 +163 -564 +181 -264 +164 -291 +154 -564 +163 -264 +164 -291 +154 -264 +163 -592 +163 -264 +154 -291 +164 -264 +163 -221337

and here it is converted into binary:

ch1 blue brake 1000010110001010
ch1 red brake 0000010010000011
ch2 blue brake 1001010110001011
ch2 red brake 0001010010000010
ch3 blue brake 0010010110000000
ch3 red brake 1010010010001001
ch4 blue brake 1011010110001001
ch4 red brake 1011010010001000
_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Back to top
View user's profile Send private message Visit poster's website
ElizabethD
Advanced Member


Joined: 09 Feb 2004
Posts: 2348

                    
PostPosted: Tue Dec 15, 2015 12:27 pm    Post subject: Reply with quote

Rob, you're taking first of the signals, right?
The binaries might match "LEGO Power Functions RC Protocol" page where cc=channel, t=toggle, MMM=mode, and dddd=data 1000 for brake command, like this:
Code:
-------------- t e cc aMMM dddd LLLL
ch1 blue brake 1 0 00 0101 1000 1010
ch1 red brake  0 0 00 0100 1000 0011
ch2 blue brake 1 0 01 0101 1000 1011
ch2 red brake  0 0 01 0100 1000 0010
ch3 blue brake 0 0 10 0101 1000 0000
ch3 red brake  1 0 10 0100 1000 1001
ch4 blue brake 1 0 11 0101 1000 1001
ch4 red brake  1 0 11 0100 1000 1000
Correct?
_________________
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride Smile
Back to top
View user's profile Send private message
ElizabethD
Advanced Member


Joined: 09 Feb 2004
Posts: 2348

                    
PostPosted: Tue Dec 15, 2015 1:03 pm    Post subject: Reply with quote

Wheel signals. I did not do all possibilities this time, because I need advice on the amount of data. It might be that I could do less pressing variations.

On wheels I need to catch direction, which is simple, and speed which is not. Perhaps if I see the binaries for the new files, I'll know better what/how to record.
The users tell me that wheels have no zero position. Timeout causes it to always start at zero independent of physical position of a wheel.
Rob, I included just one .ict file. So if you have IRscope you can see what I see.
http://www.hifi-remote.com/forums/dload.php?action=file&file_id=13775
_________________
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride Smile
Back to top
View user's profile Send private message
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21234
Location: Chicago, IL

                    
PostPosted: Tue Dec 15, 2015 1:32 pm    Post subject: Reply with quote

Yeah, that's probably it. I didn't get time to dig further yesterday. The next step for me is to produce a KM file that represents all the functions listed in the PDF.
_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Back to top
View user's profile Send private message Visit poster's website
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21234
Location: Chicago, IL

                    
PostPosted: Tue Dec 15, 2015 3:48 pm    Post subject: Reply with quote

I don't think we need any more learns from the Lego remote. The following zip file contains a KM file which should re-create most of the functions of the Lego remote.

http://www.hifi-remote.com/forums/dload.php?action=file&file_id=13776

There are a few combo functions that I didn't try to re-create because there would be too many combinations.

I've also included the PB file as I don't expect it to work right the first time, and I haven't tried testing it.
_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!


Last edited by The Robman on Tue Dec 15, 2015 10:06 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
ElizabethD
Advanced Member


Joined: 09 Feb 2004
Posts: 2348

                    
PostPosted: Tue Dec 15, 2015 7:28 pm    Post subject: Reply with quote

Rob, you're amazing. The speed with which you make a protocol and deocde all the stuff is impressive. So Big Thank You Smile

I haven't yet downloaded your latest creation, but earlier I looked at your PB you posted few daays ago and it looked amazing to me how you figured it from the .pdf.

Bad news: something broke IR. Can't blame Microsoft since they don't push updates anymore. It continues complaining that it can't see RDF in RM\203alpha... which is ok since I updated. BUT - I tell IR to change the path to \203 and next time, it still talks about alpha.
Then it can't recognize any interface (for 6131). Delcom Proxy had to be reinstalled, I don't know why since it worked before. So I dragged out the old parallel cable. It's seen, but I get errors such as "Priviledged instruction" on both interfaces.

I'll download your files now, and hope somebody can help me with broken IR.
_________________
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride Smile
Back to top
View user's profile Send private message
ElizabethD
Advanced Member


Joined: 09 Feb 2004
Posts: 2348

                    
PostPosted: Tue Dec 15, 2015 8:09 pm    Post subject: Reply with quote

Broken IR is OT here. I will use RM unless all cables fail.
Amazing worksheet and the complete KM file. Thank you.

One question: kids have two train devices, so they use ch1 and ch2. On the setup sheet you mention relation of device to channel, but where do I put it. I suspect on the setup sheet Device1 cell and make 2 devices (vcr and tv or whatever on the remote), right?
_________________
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride Smile
Back to top
View user's profile Send private message
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21234
Location: Chicago, IL

                    
PostPosted: Tue Dec 15, 2015 9:44 pm    Post subject: Reply with quote

ElizabethD wrote:
Broken IR is OT here. I will use RM unless all cables fail.
Amazing worksheet and the complete KM file. Thank you.

One question: kids have two train devices, so they use ch1 and ch2. On the setup sheet you mention relation of device to channel, but where do I put it. I suspect on the setup sheet Device1 cell and make 2 devices (vcr and tv or whatever on the remote), right?

You don't need IR for anything here, RMIR is fine. You don't even need to use KM, you can load my file using RM, I just use KM because it's way easier to use with manual protocols and for copying data from a spreadsheet.

Anyway, the upgrade that I created supports 4 possible device codes, with values 0 thru 3, where:
dev 0 = ch1
dev 1 = ch2
dev 2 = ch3
dev 4 = ch4

I have coded the upgrade to use a device code of 0 but you can change that to 1, 2 or 3 if you want to use a different channel.

However, this isn't a combo upgrade, it only supports 1 device code (channel) at a time. Given that you have to change a slider to change channels, I figured that was ok.
_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Back to top
View user's profile Send private message Visit poster's website
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21234
Location: Chicago, IL

                    
PostPosted: Tue Dec 15, 2015 10:52 pm    Post subject: Reply with quote

I just ran some tests on it and the output looks good. The only mistake that I made was that I accidentally got the 1s and 0s reversed, so it was MSB-COMP rather than just MSB. So I fixed that and re-loaded the zip file.
_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Back to top
View user's profile Send private message Visit poster's website
ElizabethD
Advanced Member


Joined: 09 Feb 2004
Posts: 2348

                    
PostPosted: Tue Dec 15, 2015 10:58 pm    Post subject: Reply with quote

Well, I got IR working by bringing up the old RM alpha folder back, and the Delcom cable now works too. Go figure.
Anyway, I made 2 device files after thinking about it Smile I was just going to post the results which were not quite right, but I see you saw that as well.
On second run signals didn't repeat when button is held down.
I'll check your new thing.
_________________
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride Smile
Back to top
View user's profile Send private message
ElizabethD
Advanced Member


Joined: 09 Feb 2004
Posts: 2348

                    
PostPosted: Tue Dec 15, 2015 11:49 pm    Post subject: Reply with quote

Quick peek at your new issue:
Ran it quickly through IRscope, it thinks ch1 is Sony12, and ch2 was not decoding and not repeating when button is held.

Do you think that it'll work the trains if we don't observe those loooong pauses between repeating signals and something about 5 signals at a time?
More tomorrow.
_________________
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride Smile
Back to top
View user's profile Send private message
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21234
Location: Chicago, IL

                    
PostPosted: Wed Dec 16, 2015 8:28 am    Post subject: Reply with quote

I programmed my executor to just send 5 repeats and stop. Looking at your learns, I see they send 5 and then flip the toggle. So, if you are confirming that the signals work, I can explore making it send 5, then flip the toggle, then long pause, then 5 more, etc.
_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Back to top
View user's profile Send private message Visit poster's website
ElizabethD
Advanced Member


Joined: 09 Feb 2004
Posts: 2348

                    
PostPosted: Wed Dec 16, 2015 12:02 pm    Post subject: Reply with quote

Toggle might be the reason why sometimes long press repeated, sometimes did not yesterday. Also it was reporting 40mhz. So I decided to start from scratch.

I did 981 reset on the remote to make sure is not extended. And used your IR file rather than mine which was extended (and KMs also extended).
So we should be on the same page.
For some reason when the buttons are held I don't see repeats today.
On the Lego remote each button press quickly blinked several (5?) times, even on a quick tap.
But from 6131 I don't see that. See uploaded .rtf.
http://www.hifi-remote.com/forums/dload.php?action=file&file_id=13777

I wonder if in the wheel learns you can see the behavior I observed on the LEGO remote.
It has to do with a subtle difference between brake and stop the wheel.
When you brake, it's all off (like when you park the car).
When you stop turning the wheel it seems to be in ready-to-continue mode (maybe as a car at a stop sign). In this mode the train is humming. That might be what they call "float" in the pdf.

At this point I'm lost. I'll test the signals as soon as can coordinate with the train owners. They're far away, and I'm not yet sure I'm ready to test.

Rob, I uploaded 2 tiny movies (.AVI) from the LEGO remote to show you how it blinks, but they don't show up. Each is about 3.25meg.
_________________
Liz
Tweeking 8910, HTPro/9811, C7-7800, 6131o, 6131n, AtlasOCAP-1056B01, RCA-RCRP05B and enjoying the ride Smile
Back to top
View user's profile Send private message
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21234
Location: Chicago, IL

                    
PostPosted: Thu Dec 17, 2015 11:23 am    Post subject: Reply with quote

Here's what I see in your latest rtf file:

Code:
 X 1000011001000010 X  X 1000011001000010 X  X 1000011001000010 X  X 1000011001000010 X  X 1000011001000010 Y
 X 0000011001010011 X  X 0000011001010011 X  X 0000011001010011 X  X 0000011001010011 X  X 0000011001010011 Y
 X 1000010010001100 X  X 1000010010001100 X  X 1000010010001100 X  X 1000010010001100 X  X 1000010010001100 Y
 X 0000011101000011 X  X 0000011101000011 X  X 0000011101000011 X  X 0000011101000011 X  X 0000011101000011 Y
 X 1000011101010010 X  X 1000011101010010 X  X 1000011101010010 X  X 1000011101010010 X  X 1000011101010010 Y
 X 0000010110001101 X  X 0000010110001101 X  X 0000010110001101 X  X 0000010110001101 X  X 0000010110001101 Y
where:
0 = +160 -250
1 = +160 -550
X = +160 -1000 (leadin)
Y = +160 -500000 (gap)

So, at a glance, it looks like the leadout time is the same as the leadin time, whereas it should be a lot longer, so that explains why, even though you are getting 5 repeats, it doesn't look like it to you.

Looking at the specific binaries that you learned, does this look right?
Code:
t ecc aMMM dddd LLLL
1 000 0110 0100 0010 = A-Increment PWM
0 000 0110 0101 0011 = A-Decrement PWM
1 000 0100 1000 1100 = A-Brake
0 000 0111 0100 0011 = B-Increment PWM
1 000 0111 0101 0010 = B-Decrement PWM
0 000 0101 1000 1101 = B-Brake

Here is an updated executor which has the long leadout, so now it should look like you are getting 5 repeats. Tell me if this works properly. What happens when you hold the Lego button down, or is that even possible? My executor is designed to give 5 repeats, regardless of whether you hold the button or not.

Code:
Upgrade protocol 0 = 01 FF (S3C8+) Lego LPF RC Protocol (PB v4.02)
 43 8C 11 8B 14 85 54 08 08 00 4F 01 00 00 4F 00
 6F C7 38 00 4F 01 ED FF 05 28 03 F0 03 B4 04 C2
 F0 04 B4 04 C2 18 04 56 C1 0F 44 C1 03 56 04 F0
 56 C2 0F 44 C2 04 76 00 01 6B 03 B6 03 80 8D 01
 46
End

_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> JP1 - General Forum All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5  Next
Page 2 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

Powered by phpBB © 2001, 2005 phpBB Group
Top 7 Advantages of Playing Online Slots The Evolution of Remote Control