How to use eservice LCD

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

How to use eservice LCD

Dr. Trigon
Hello Jan

I should have had included more info. So I am running owfs on a raspi. It accesses ethernet 1wire masters through lan (linkhub, owserver enet).

1. login to raspi, run killall to shut owfs down
2. start owfs as described here on another machine for testing (as I can access the master from any machine on my lan)
3. killall the testing version
4. start owfs on raspi again to get my usual system back

Between 1. and 2. I have to change connected devices, e.g. connect eservice lcd for testing.

Using that setup I have 2 different machines running owfs, accessing the same hardware (not at the same time). The first is the usual system I run (raspi), the other is a machine running the build with patch as described here.

What I logged here is 2. and 3. - I omitted info from steps 1. and 4. as I assumed them to be irrelevant for you.


>> $ git clone git://git.code.sf.net/p/owfs/code owfs-code
>> $ cd owfs-code/
>> ~/owfs-code$ ./bootstrap
>> ~/owfs-code$ ./configure
>> (get patch from https://sourceforge.net/p/owfs/mailman/owfs-developers/?viewmonth=201606&viewday=28)
>> ~/owfs-code$ patch -p1 < eservice_lcd.diff
>> ~/owfs-code$ make
>> ~/owfs-code$ nano owfs.conf
>> (copy content from my wiki)
>> ~/owfs-code$ module/owserver/src/c/owserver -c ~/owfs-code/owfs.conf --debug -u
>>
> Uhhh, no. -c ~/owfs-code/owfs.conf and -u may be mutually exclusive. You haven't listed what is inside ~/owfs-code/owfs.conf.

Hmm, yes... I did not check the meaning of -u beforehand, as I was assuming you know what I want... ;)))
Of course using -u with my config having ethernet-master does not make sence, I removed that.
I'll send the conf file in another mail.


> Does your user have sufficient rights to access the host adaptor? Because you don't start owserver as root.

Another good question - but as I access lan not usb, did not get an error message and the lcd reacted after sending the clear command, I strongly assume it should be fine. Also the working raspi system uses sudo for owfs only, not for owserver or owhttpd.


>> ~/owfs-code$ module/owshell/src/c/owwrite /29.2F7214000000/strobe 1
>> ~/owfs-code$ module/owshell/src/c/owwrite /29.2F7214000000/LCD_H/clear 1
>> ~/owfs-code$ module/owshell/src/c/owwrite /29.2F7214000000/LCD_H/message "Foobar"
>> (copy output of 1st/debug window for maillist then quit app)
>>
> I'd like to see that log.

I tried to send it to the maillist 2 times now. It always refuses to deliver it since its too big (>60kB) - so a moderator has to make it go through.
http://dpaste.com/2W4Z0GF


> Please try again, cleanly.

I tried again without the -u param but it did not make any change. Still lcd background goes on after clear command. May be I need to test using the other master. Currently the lcd is connected to the linkhub - can consider connecting it to the enet, but would need to get 12V from somewhere else then.

Thanks for your support! Greetings

Dr. Trigon
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Owfs-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Reply | Threaded
Open this post in threaded view
|

Re: How to use eservice LCD

Jan Kandziora
Am 03.07.2016 um 13:48 schrieb Dr. Trigon:
>
> I tried again without the -u param but it did not make any change.
> Still lcd background goes on after clear command. May be I need to
> test using the other master.
>
Please test it all with a minimal setup. A single host adaptor. A single
cable. A single device. No owfs.conf. All configured on command line.

And, if possible, not the enet master.

Kind regards

        Jan


------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Owfs-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Reply | Threaded
Open this post in threaded view
|

Re: How to use eservice LCD

Dr. Trigon
In reply to this post by Dr. Trigon
# Sample configuration file for the OWFS suite for Debian GNU/Linux.
#
#
# This is the main OWFS configuration file. You should read the
# owfs.conf(5) manual page in order to understand the options listed
# here.

######################## SOURCES ########################
#
# With this setup, any client (but owserver) uses owserver on the
# local machine...
! server: server = localhost:4304
#
# ...and owserver uses the real hardware, by default fake devices
# This part must be changed on real installation
#server: FAKE = DS18S20,DS2405
#
# USB device: DS9490
#server: usb = all
#
# Serial port: DS9097
#server: device = /dev/ttyS1
#
# owserver tcp address
#server: server = 192.168.10.1:3131
server: enet = 192.168.11.4:8080
server: link = 192.168.11.5:10001
#
# random simulated device
#server: FAKE = DS18S20,DS2405
#
######################### OWFS ##########################
#
mountpoint = /mnt/1wire
allow_other
#
####################### OWHTTPD #########################

http: port = 2121

####################### OWFTPD ##########################

ftp: port = 2120

####################### OWSERVER ########################

server: port = localhost:4304



Dr. Trigon
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Owfs-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Reply | Threaded
Open this post in threaded view
|

Re: How to use eservice LCD

Dr. Trigon
In reply to this post by Dr. Trigon
>> $ module/owserver/src/c/owserver --debug --link=192.168.11.5:10001
>>
>Yes.

Disconnected all devices and connected the LCD instead, then:

~/owfs-code$ module/owserver/src/c/owserver --debug --link=192.168.11.5:10001
in another window:
~/owfs-code$ module/owshell/src/c/owwrite /29.2F7214000000/strobe 1
~/owfs-code$ module/owshell/src/c/owwrite /29.2F7214000000/LCD_H/clear 1
~/owfs-code$ module/owshell/src/c/owwrite /29.2F7214000000/LCD_H/message "Foobar"
copy output of 1st/debug window to http://dpaste.com/0PMQDTN then quit server by Ctrl+C

Behaviour was as described earlyer, background led on after sending the clear command.

I was wondering whether we need to set LCD contrast as well? The datasheet sais "software controlled contrast" not more. The code example [1] they provide mentions a ST7036 display controller [2]. May be that is related as I never saw any dots of the matrices.

[1] https://www.eservice-online.de/media/archive/Programmbeispiel-1-Wire-Display-163559d6f87339f9.zip
[2] http://www.lcd-module.de/eng/pdf/zubehoer/st7036.pdf

Thanks and Greetings
Dr. Trigon
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Owfs-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Reply | Threaded
Open this post in threaded view
|

Re: How to use eservice LCD

Jan Kandziora
Am 05.07.2016 um 07:41 schrieb Dr. Trigon:

>>> $ module/owserver/src/c/owserver --debug
>>> --link=192.168.11.5:10001
>>>
>> Yes.
>
> Disconnected all devices and connected the LCD instead, then:
>
> ~/owfs-code$ module/owserver/src/c/owserver --debug
> --link=192.168.11.5:10001 in another window: ~/owfs-code$
> module/owshell/src/c/owwrite /29.2F7214000000/strobe 1 ~/owfs-code$
> module/owshell/src/c/owwrite /29.2F7214000000/LCD_H/clear 1
> ~/owfs-code$ module/owshell/src/c/owwrite
> /29.2F7214000000/LCD_H/message "Foobar" copy output of 1st/debug
> window to http://dpaste.com/0PMQDTN then quit server by Ctrl+C
>
> Behaviour was as described earlyer, background led on after sending
> the clear command.
>
Thats ok, turning the background LED to (100%) is hardcoded into the patch.


> I was wondering whether we need to set LCD contrast as well?
>
When you turn on power, the first line of the display should show all
full blocks. When you don't see it, contrast may be too low.


> The
> datasheet sais "software controlled contrast" not more. The code
> example [1] they provide mentions a ST7036 display controller [2].
> May be that is related as I never saw any dots of the matrices.
>
Uh, another complication. Let me check.

Kind regards

        Jan

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Owfs-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Reply | Threaded
Open this post in threaded view
|

Re: How to use eservice LCD

Jan Kandziora
In reply to this post by Dr. Trigon
Am 05.07.2016 um 07:41 schrieb Dr. Trigon:
> The
> datasheet sais "software controlled contrast" not more. The code
> example [1] they provide mentions a ST7036 display controller [2].
> May be that is related as I never saw any dots of the matrices.
>
Please rollback the previous patch, then apply the new one.

[owfs-code]$ patch -p1 -R <eservice_lcd.diff
[owfs-code]$ patch -p1 <eservice_lcd-2.diff
[owfs-code]$ make

Kind regards

        Jan


------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Owfs-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

eservice_lcd-2.diff (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to use eservice LCD

Dr. Trigon
In reply to this post by Dr. Trigon
Hello Jan

Thanks a lot for the patch. To summarize; its still the same situation, do not see any dots/pixels.

So I am wondering; can or shall I play with contrast values? Should I measure the voltages at the lcds pins? I could e.g. compare the patch applied against the voltage measured?

Here is the log: http://dpaste.com/1QWRE11

And what I did:

~/owfs-code$ patch -p1 -R < eservice_lcd.diff
~/owfs-code$ patch -p1 < eservice_lcd-2.diff
~/owfs-code$ make
~/owfs-code$ module/owserver/src/c/owserver --debug --link=192.168.11.5:10001
(in another window)
~/owfs-code$ module/owshell/src/c/owdir /uncached
(check for device 29.2F7214000000 - must be the only one existing)
~/owfs-code$ module/owshell/src/c/owwrite /29.2F7214000000/strobe 1
~/owfs-code$ module/owshell/src/c/owwrite /29.2F7214000000/LCD_H/clear 1
~/owfs-code$ module/owshell/src/c/owwrite /29.2F7214000000/LCD_H/message "Foobar"

best regards
Dr. Trigon
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Owfs-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Reply | Threaded
Open this post in threaded view
|

Re: How to use eservice LCD

Jan Kandziora
Am 06.07.2016 um 07:45 schrieb Dr. Trigon:
>
> Thanks a lot for the patch. To summarize; its still the same
> situation, do not see any dots/pixels.
>
I'm out of ideas.


> So I am wondering; can or shall I play with contrast values? Should I
> measure the voltages at the lcds pins? I could e.g. compare the patch
> applied against the voltage measured?
>
The value is 0x17, which should be somewhere in the middle. You can
adjust the lower 4 bits of "CONTRAST1" and the lower 2 Bits of
"CONTRAST2" to set other values.


> Here is the log: http://dpaste.com/1QWRE11
>
Nothing wrong in there.


> And what I did:
>
> ~/owfs-code$ patch -p1 -R < eservice_lcd.diff ~/owfs-code$ patch -p1
> < eservice_lcd-2.diff ~/owfs-code$ make ~/owfs-code$
> module/owserver/src/c/owserver --debug --link=192.168.11.5:10001 (in
> another window) ~/owfs-code$ module/owshell/src/c/owdir /uncached
> (check for device 29.2F7214000000 - must be the only one existing)
> ~/owfs-code$ module/owshell/src/c/owwrite /29.2F7214000000/strobe 1
> ~/owfs-code$ module/owshell/src/c/owwrite
> /29.2F7214000000/LCD_H/clear 1 ~/owfs-code$
> module/owshell/src/c/owwrite /29.2F7214000000/LCD_H/message "Foobar"
>
That's what I did and with my test circuit it works. Kind of.

Please retry with power-cycling the display, then wait a while, then
send the message. From my testing, the display sometimes goes into a
non-working state when it just flickers on a command instead of
displaying the text.


Kind regards

        Jan

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Owfs-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/owfs-developers