Re: BAE0911 update - 1wire bus and ae11_asm
2011-06-22 21:44:36 GMT
Just a clarification about spi and i2c.
On bae0911, i2c is not shared with spi and they could be operated at the same time.
some limitations exist however:
1)It was not possible to open two flows simultaneously. I've already adressed this (software) limitation for serial interface and will also adjust this for other flows (lcd, spi & i2c) in next firmwares.
2)spi is an interface used by the onboard sdcard, connecting and external spi device may confilict if a card is installed.
spi is generally faster than i²c and is preffered for huge data volumes, realtime adc, storage, graphic displays, etc
3)i2c is a bus allowing multiple chips installed at the same time. each i2c slave are addressable and will not conflict as long as their address are distinct. (each i2c chip model has a base address and has 2 or 3 pin to select lower bits of i2c address) i2c has "only" 7 bits for adressing, allowing max 112 device (16 reserved)
4)Both are short distance connectivity solutions and should not extend over 50~100cm.
I recommends to select i2c devices where possible for the ease of use and expandability.
using --debug start the program in the foreground and output all debugging info on the console
you have to start multiple sessions to start each distinct deamon.
Thanks for the new assembler, it now compiles bot examples without errors, the output binary look the same as your versions too. I have compiles ae_asm for both Ubuntu and OpenRD. The new BAE0911 firmware is working fine too. I'll have to get talking to an external device soon I have some boards with SAA1064 7 segment lcd and PCF8574 and PCF8576 I/O iic devices on them I could try. From what you said before about the iic and spi sharing one bus I may be better to find some SPI devices to try, I'd better read the manual.
I have put the 911 back onto my Ubuntu server together with the DS9490R usb bus master device. Using commands similar to your own to start owserver, owfs, owhttpd all together I find a sure way to crash owserver is to try and view the directory /BAE0911/911 in a web browser, if I try and get a directory listing of the same folder it does not crash owserver completely but afterwards the directory listing in owhttpd are all messed up with items in the wrong locations. It is possible to successfully write to /mnt/1wire/BAE0911/911/lcd/text before owserver has crashed however. I could try the debug options in owserver, ive never done this before however and I'll need to see how to do it and retrieve the results.
Best regards, David.
On 20.06.2011 22:02, Pascal Baerten wrote:sdcard up to 2GB are supported by bae0911.
simple.asm is not a clean sample, just some various opcodes accumulted during testing compiler.
I've done a bit cleaning in the code and it now compile with current ae_asm. (I still have to test running this code with current firmware however)
please find an updated ae11_asm.tgz with some enhancements (changelog below).
and an updated version of firmware.
Some testing is still required, fell free to report your experience.
to avoid problems, the autostart feature of testing firmwares is disabled.
Regarding owfs-owserver stability, I recommands to start owfs deamon directly connected to the busmaster until we find time to diagnose and fix that.
here how I start my deamons:/opt/owfs/bin/owserver --i2c=/dev/i2c-0:0 -p 40666
/opt/owfs/bin/owhttpd -s localhost:40666 -p 81
#/opt/owfs/bin/owfs -s localhost:40666 -s localhost:40667 -m /tmp/ow #(unstable)
/opt/owfs/bin/owfs --i2c=/dev/i2c-0:0 -m /tmp/ow
if your are able to reproduce a straight crash scenario, you may start the deamons with --debug option and post the output.
to subscribe, send a mail to <list-subscribe <at> brain4home.eu>