Search found 12 matches

by sbrazz
Sun Jul 16, 2017 12:44 pm
Forum: Serial Communication
Topic: Reliability of DS18x20 temperature sensors
Replies: 8
Views: 10767

Re: Reliability of DS18x20 temperature sensors

I Think I've found the problem - the old compiler uses and old ONEWIRE.bas - which has this Function for OWOUT which returns temp:- FUNCTION OWOUT (pin, OUTcnt, BYREF OUTlist as string) DIM temp as integer DIM i as integer INTERRUPT (0) temp = ow_reset(pin) i = 0 do if OUTcnt = 0 then if OUTlist(i) ...
by sbrazz
Sun Jul 16, 2017 12:09 pm
Forum: Serial Communication
Topic: Reliability of DS18x20 temperature sensors
Replies: 8
Views: 10767

Re: Reliability of DS18x20 temperature sensors

But even this example from the help file on owout (i've inserted the main: and end) on ARMbasic[9.36k] present = owout (7 ,5, outbytes) -ERROR D:/OneDrive/Sisyphus/House Monitor/new1.bas: 12: Expected numeric Function present = owout (7 ,5, outbytes) -ERROR D:/OneDrive/Sisyphus/House Monitor/new1.ba...
by sbrazz
Sun Jul 16, 2017 10:52 am
Forum: Serial Communication
Topic: Reliability of DS18x20 temperature sensors
Replies: 8
Views: 10767

Re: Reliability of DS18x20 temperature sensors

Sorry. I should have explained more. They are only subroutines within a larger program where all the #includes are at the top of the program as well as all the variable definitions. I just posted them for Mozobata to have a look at. The program has been working for years, it runs my solar heating, h...
by sbrazz
Thu Jul 13, 2017 10:12 pm
Forum: Serial Communication
Topic: Reliability of DS18x20 temperature sensors
Replies: 8
Views: 10767

Re: Reliability of DS18x20 temperature sensors

I've attaced the CRC code I've been using for years, as well as my temperature reading subroutine. It reads one temperatue each time its called and initiates the next conversion for the next time. So in my case it takes 5 calls to get all my temperatures. I call it once a minute. [attachment=0]Tempe...
by sbrazz
Thu Mar 26, 2015 9:37 pm
Forum: Software issues
Topic: size of variable names and compiled code size
Replies: 3
Views: 3928

Re: size of variable names and compiled code size

Thanks basicchip, thats what I imagined would be done, but wasn't sure.
by sbrazz
Fri Mar 20, 2015 9:56 pm
Forum: Software issues
Topic: size of variable names and compiled code size
Replies: 3
Views: 3928

size of variable names and compiled code size

Hello
Does the length of variable names affect the size of code loaded into an ARMweb. How are the names resolved between the compiled code and that used in web pages?
Thanks
by sbrazz
Fri Sep 06, 2013 7:55 am
Forum: Software issues
Topic: Firmware upgrade error
Replies: 3
Views: 4188

Re: Firmware upgrade error

have run webrom and get the same mac address as with 7.49 :- Rom contents 8 0 4d be 41 b5 ff ff ff ff ff Reset of 7.49 gives - my_MAC 8:0:4d:be:41:b5 Secutity ON get MacAddr MacInit No Change Searching for DHCP MyName ARMweb MyIP 192.168.1.4 MyMask 255.255.255.0 MyDNS 192.168.1.1 mb_dhcp_MAC 74 44 0...
by sbrazz
Thu Sep 05, 2013 10:07 am
Forum: Software issues
Topic: Firmware upgrade error
Replies: 3
Views: 4188

Firmware upgrade error

I've been trying to instal web0766.hex but I get the following:= g-security if Off Read EEROM failed Get MacAddr Failed ethernet controller not found g-security if Off Read EEROM failed Get MacAddr Failed ethernet controller not found my mac 0:0:0:0:0:0 g_echo_stuff is at *&H4000091C Welcome to ARMb...
by sbrazz
Fri May 24, 2013 8:54 am
Forum: Projects
Topic: ARMweb webpage with synch of RTC and displaying print page
Replies: 0
Views: 5415

ARMweb webpage with synch of RTC and displaying print page

The RTC on my ARMweb runs aboout a minute fast each day, so I've got my webpage to return the time of day in the CGI string each time it auto refreshes. I've included plenty of comments in the .htm listing; hopefully it's clear enough. Also print statements are output to the file txta.htm on the ARM...
by sbrazz
Thu May 23, 2013 10:25 am
Forum: Projects
Topic: CRC checker for OneWire
Replies: 0
Views: 4857

CRC checker for OneWire

The code attached checks the CRC of the returned data from dallas onewire devices and returns 0 if no errors are found, -1 if all zeros are input or the number of bits remaining set at the end of the cycle. It assumes the returned data from OWIN is in an Inbytes array of 0-8 = 9 bytes, as per the OW...