Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 20:17 15 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Read 1Wire Device ID MM+

Author Message
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 724
Posted: 05:46am 08 Mar 2016
Copy link to clipboard 
Print this post

Hello,

do we have a Function to read out the 1-Wire Device ID's?

THX
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10250
Posted: 07:30am 08 Mar 2016
Copy link to clipboard 
Print this post

Not in 5.1

There was a command "OWSEARCH" in some previous releases but it didn't make the "cut" in 5.1

The command is still in the source file but not compiledEdited by matherp 2016-03-09
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 07:50am 08 Mar 2016
Copy link to clipboard 
Print this post

This will read the ROM serial number (Family code, serial number, checksum) for a single device attached to pin 25.

Onewire.PIN = 25

ONEWIRE RESET Onewire.PIN
PRINT MM.ONEWIRE

ONEWIRE Write Onewire.PIN, 9, 1, &h0F
ONEWIRE READ Onewire.PIN, 10, 8, r1, r2, r3, r4, r5, r6, r7, r8

PRINT Hex$(r1)
PRINT Hex$(r2)
PRINT Hex$(r3)
PRINT Hex$(r4)
PRINT Hex$(r5)
PRINT Hex$(r6)
PRINT Hex$(r7)
PRINT Hex$(r8)


Matherp is saying that there isn't a search routine built into MMBASIC for reading multiple devices connected to one pin.



Micromites and Maximites! - Beginning Maximite
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 724
Posted: 08:31am 08 Mar 2016
Copy link to clipboard 
Print this post

Hi,

i think enumerating multiple devices is is a useful function.
Don't know the reason why Geoff decided to not compile it in the new Versions.
Place, or simply forgot it????

Answers?

THXh
 
Justplayin

Guru

Joined: 31/01/2014
Location: United States
Posts: 327
Posted: 09:20am 08 Mar 2016
Copy link to clipboard 
Print this post

  atmega8 said  Don't know the reason why Geoff decided to not compile it in the new Versions. Place, or simply forgot it????

Answers?


Space. When Geoff saw developing the MicroMite 150, he was tight on space and felt the OneWire code was very bloated. So, he chopped it down to fit the limited space available.

--Curtis
I am not a Mad Scientist...  It makes me happy inventing new ways to take over the world!!
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 724
Posted: 09:24am 08 Mar 2016
Copy link to clipboard 
Print this post

Ok,

but with the actual processors there should be some space left...
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10250
Posted: 09:35am 08 Mar 2016
Copy link to clipboard 
Print this post

There is definitely no space in the MX170. There is in the MM+ but I assume Geoff has had so little demand for it it wasn't considered worth including. Other than the DS18B20 one-wire seems like a pretty dead technology.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025