logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Interim Hobbyist lowest priority Address Claim Name
marinettejoe
#1 Posted : Monday, January 21, 2008 11:03:30 AM(UTC)
marinettejoe

Rank: Administration

Groups: Admin2
Joined: 12/3/2007(UTC)
Posts: 515
Points: 611
Location: Aquia, Va

Thanks: 31 times
Was thanked: 37 time(s) in 24 post(s)
Address priority pseudocode for hobbyist

I've decided not to implement dynamic addressing per SAE J1939 -81, I don't really need it and I own the network. So A Service Configurable Single Address it is.
MSB 1 8
Byte 8 0000 010 0 (no Group, no system, no arbitrary address).
Byte 7 0 0000000 Vehicle System
Byte 6 00000000 Function
Byte 5 111 00001 ECU, Function Instance
Byte 4 11111111 Manufacturer number (msb 8)
Byte 3 00000 000 Identity + Manu Number (Lsb)
Byte2 000000000 Identity number
Byte 1 00000001 Identity number


Power up and init network objects.

Naming will be highvalues for that address.

Add Address Claim message handler to can interrupt handler.
Send Address Claim for #247 (it's a preset (A decrement button will allow this to decrement)) to Address 255 Global




250K
Byte1


Wait about 1/4 sec + 1 ms
Start messages


On can interrupt
if addressing {
If collision or bus error resend claim
if contending address and is hobbyname and my hobbyname less than contending hobby project - Send cannot claim
beep, beep, beep, and display Address claim error
Will not try (address -1 downto 129)
reset wait}

On button interrupt (address = address -1) store in flash
wait 1/4 second + 1-10 ms






Unzinced ships sink at slips. yep
Sponsor
Please Register : To weed out spammers, new members may not post until approved. An email is usually sent after approval. This forum is for Marinette Owners and other aluminum boat boaters who wish to share boating information. Aluminum Roamer owners are also welcome. (Do not post content you do not have the right to post and mass (robots) posters are unwelcome. We also have a marine electronics page and lots of Chrysler Engine info. State by what permission you copy content and give credit properly.) The site is now fixed with some more Chrysler information. We have space for pictures on the new location. Use shinkpic to autochange size http://www.onthegosoft.com/sp_download.htm

Great Sites - http://www.marinette.com Marinette Company

http://web.me.com/dougmrose/Doug_Roses_Website/Welcome.html

http://fastjeff.tripod.com/ Repair Tricks and Techniques for Marinettes

http://www.greatlakesmarinetteclub.com/

PLEASE post in the appropriate folder. Please, do not post your actual email address in publicly readable websites. The first rule is be a class act.

Users browsing this topic
guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.100 seconds.