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
The Robman
Site Owner


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

PostPosted: Mon Dec 21, 2015 11:59 am    Post subject: Reply with quote

I guess u can get that big with just PB, I thought when I tried it didn't take. Does it work for ch1? If it does, have you tried it for the other channels just to see if the long leadout is really required?
_________________
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: 2287

PostPosted: Mon Dec 21, 2015 12:18 pm    Post subject: Reply with quote

Rob, $C738 came from your edit Posted: Thu Dec 17, 2015 11:23 am.

I tried some numbers in PB earlier, and I think I don't know how to get Setup values into Assembly. So both then, and now I just do it in IR.

Have I tried? No. Because nothing worked yet. I will today or tomorrow retry just ch1 with $C738 and your new checkbyte code, but I have no way to test ch2-4 if don't have the right numbers. But I will try all channels with what I have, of course.

If you look at that Measurements _ Hack van de dam link I wrote on p3 - he seems to confirm the spread of messages I see in the Lego remote, though his values are a bit higher.
_________________
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: 2287

PostPosted: Mon Dec 21, 2015 5:27 pm    Post subject: Reply with quote

Success Smile with the new checksum code and $C738 leadoutOff.
Details - Channel 1 worked. Channels 2-4 did not.
On ch1, A and B sides worked: inc, dec, inc, brake. The train starts slowly and as I hold Increment PWM, speeded up and travelled nicely. Slowed down as needed.
One unexpected glitch was that once I used brake, I could not start the train again. I had to reset the receiver by pushing a button on top of the train.
I'll have to learn about it more next time I go there. It could have been that the first click or two start the train so very slowly that I may have missed, misinterpreted, and reset instead.
_________________
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: 18311
Location: Chicago, IL

PostPosted: Mon Dec 21, 2015 5:54 pm    Post subject: Reply with quote

Good to know. And I am working on extending the leadout time as we speak.
_________________
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: 18311
Location: Chicago, IL

PostPosted: Mon Dec 21, 2015 7:21 pm    Post subject: Reply with quote

Ok, give this a try, I think this is producing the desired results

Upgrade protocol 0 = 01 FF (S3C8+) Lego LPF RC Protocol (PB v4.02)
43 8C 11 8B 12 85 44 08 08 00 4F 01 00 00 4F 00
6F 74 36 00 4F 01 ED 6C 05 76 00 01 6B 03 B6 03
08 28 03 F0 03 B4 04 C2 F0 04 B4 04 C2 18 04 56
C1 0F 44 C1 03 56 04 F0 60 C2 56 C2 0F 44 C2 04
F6 01 46 48 03 F0 C4 56 C4 03 4E C6 F8 50 14 F6
01 58 4A F7 6A EA AF
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
ElizabethD
Advanced Member


Joined: 09 Feb 2004
Posts: 2287

PostPosted: Mon Dec 21, 2015 10:20 pm    Post subject: Reply with quote

I think it is too.
Great work, Rob, amazing really.
Timings vary nicely. Channels 2,3,4 timing values are very close to what we expect.
Long values for ch1,2,3,4 came out about 100K, 140.8, 181.5, 222.3 from the 6131.
I wonder if channel 1 will be OK. Lego remote said 100900. I do get 100K, but many signals from 6131 are 99.9K especially when I repeat a lot.

PB question:
When I disassemble, Setup values don't fill - is that correct?
For instance Disassembly shows 1 and 0 bursts reversed, as it was in your first version, since changed. That threw me off a bit.
Do you have annotated assembly (PB file) or is it asking too much after all this work you did?
_________________
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: 18311
Location: Chicago, IL

PostPosted: Tue Dec 22, 2015 12:34 am    Post subject: Reply with quote

I put the latest PB file in the zip.
_________________
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: 18311
Location: Chicago, IL

PostPosted: Wed Dec 23, 2015 4:56 pm    Post subject: Reply with quote

Any updates?
_________________
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: 2287

PostPosted: Wed Dec 23, 2015 5:29 pm    Post subject: Reply with quote

Not yet on the real trains. I should be able to test first or second day of Christmas.

I did get your zip file with the PB file, thank you. Studying and admiring in process Smile
And, as I wrote earlier, ran 6131 through IRscope, which made me wonder if ch1 leadout isn't a tad low. Not yet sure how to tweak it if needed.

Frivolous update: I put 4 channels/devices on the number buttons by 1-step macros.
I assigned Red functions to vol+ vol- mute, and Blue to ch+ ch- prev. Very convenient on 6131. So KM needed change.
_________________
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: 18311
Location: Chicago, IL

PostPosted: Wed Dec 23, 2015 6:23 pm    Post subject: Reply with quote

If you want to try tweaking the PB file, here's how I did it. I changed the regular leadout to about 59,000 and then add multiples of 41,000 based on which device code is used. So, if you increase the base time, you will increase all of them by the same amount. Therefore, if the others all end up being a bit too big, you can reduce the pause time (ie, the 41,000).

Also, just FYI, the numbers on the front page of PB are just what I started with, once you switch over to assembler, they are not used anymore, so, if you want to regenerate the hex for a given time, you can uncheck the "use assembled code" thing and make the change, then see what changes and then incorporate it into the assembler.

Another option, and this is what I do, is to save your file, then use the "Load Generated Code" button, and copy the generated code to the cells on the right (paste values) and then re-load your file and copy the code back into place.
_________________
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: 2287

PostPosted: Wed Dec 23, 2015 10:05 pm    Post subject: Reply with quote

Just PB things:
1. Thanks for the explanation why Setup doesn't always show what disassembly shows.
2. Leadout: It's a clever argorithm. How do you come up with such tricks?
3. I guessed earlier that you were taking expected leadout and halved it. Indeed, your two numbers in this code $7436 and $5014 get doubled. What's going on? Is that what UEI does? Just curious.
4. Possible maintenance issue (if anybody ever uses this): Is $0158 pause the same in all unextended remotes? I know that XMITIR varies, 7800 is different.
_________________
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: 18311
Location: Chicago, IL

PostPosted: Wed Dec 23, 2015 11:39 pm    Post subject: Reply with quote

You mean, the address? In older remotes, like the URC-7800, 15-1994, etc the XMITIR address is $0133 and in more recent remotes it's $0146 (a difference of $0013) so likewise, the pause routine is $0145 in older remotes and $0158 in newer remotes.

I had to download the vectors spreadsheet to remind myself of the address.
_________________
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: 2287

PostPosted: Fri Dec 25, 2015 9:52 pm    Post subject: Reply with quote

Ah, yes, I did mean exactly those addresses.

Tests of your last protocol - Success all over.
Using volume and channel sides of 6131 worked fine for the four channels on A and B wheels and brakes. I've larned to tap, tap, tap, to accelerate trains faster. Tapping buttons will not replace a continuous moving wheel, but this stuff sure worked.
A new scenario worked well also. That was driving two motors almost at the same time, by quickly alternating taps. A-side moved two connected wheels forward, while B-side moved the other two back. It was on a tank-like contraption kids built.

Thank you, Rob. And Merry Christmas Smile
_________________
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: 18311
Location: Chicago, IL

PostPosted: Fri Dec 25, 2015 10:59 pm    Post subject: Reply with quote

Good to know, thanks Liz.

Regarding the moving wheel, would it be better if holding the button did something? I could make it so that it acts as though you tapped the button again. And while this would be good for the wheel commands, what would happen for the brake commands? Could you try tap, tap, tapping the brake button to see what the reaction would be?
_________________
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: 2287

PostPosted: Fri Dec 25, 2015 11:43 pm    Post subject: Reply with quote

You are full of tricks, aren't you?

Yes, hold the wheel is very likely to be a good thing to get a better acceleration. I'll dig out learned signals of turning the wheel quickly, May have posted it, not sure.
Brake - no. Once you press brake, the the motors stop dead, but I will check soon as I can.

On Dec15 I posted in diagnosis "LEGO wheels-part1.zip" -Diagnosis list isn't coming up at the moment, all blank. It was about fast and slow sweeps of the wheel. Perhaps it'll tell a story. Here's the link I Posted: Tue Dec 15, 2015 1:03 pm
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
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 4 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
Get Smart! the band's official homepage Rockabilly Central