Jump to content

rwblinn

Members
  • Gesamte Inhalte

    126
  • Benutzer seit

  • Letzter Besuch

Alle erstellten Inhalte von rwblinn

  1. For a Master Brick 2.1 receiving after 34 to 50% error message - tried several times. 1) Could not flash Brick: Timeout while reading from address 0x400E0A08. 2)Removed all connected bricklets, writing went thru but during verification receiving error: Could not flash Brick: Length error while reading from address 0x00400000 3)Master brick is connected to Raspberry Pi. Latest Brick Deamon / Viewer are installed. 4)Switched to a Windows PC. Flashing went successful. Any hints why under Raspberry Pi a flashing error occurs.?
  2. Hi, I am using following steps on the Raspberry Pi: * sudo apt-get install python3-pip * sudo apt-get install python-pip * sudo pip install tinkerforge paho-mqtt * sudo apt-get install mosquitto mosquitto-clients python-mosquitto * sudo apt-get install libusb-1.0-0 libudev0 pm-utils * mkdir /home/pi/tinkerforge * cd /home/pi/tinkerforge * wget http://download.tinkerforge.com/tools/brickd/linux/brickd_linux_latest_armhf.deb * sudo dpkg -i brickd_linux_latest_armhf.deb * delete the file brickd_linux_latest_armhf.deb: rm brickd_linux_latest_armhf.deb * Copy the file brick-mqtt-proxy.py to this folder after download from the TinkerForge website https://github.com/Tinkerforge/brick-mqtt-proxy * OR use wget https://raw.githubusercontent.com/Tinkerforge/brick-mqtt-proxy/master/brick-mqtt-proxy.py * Start the Brick-MQTT-Proxy as process: python brick-mqtt-proxy.py&
  3. SOLVED - replaced the cable and now working fine. Thanks for your help = appreciated.
  4. Hi, when running the call example from here www.tinkerforge.com/en/doc/Software/Bricklets/AmbientLight_Bricklet_Delphi.html#ambient-light-bricklet-delphi-examples, no data is returned. When running the simple example, then data is returned. Bindings: delphi/laz 2.1.12; Delphi XE3 and 10.1 Berlin; Lazarus: 1.6. Any guidance appreciated.
  5. Thanks. For those interested, the Windows Client and Server solutions, both developed with B4J are making progress. Read more https://www.b4x.com/android/forum/threads/lighthouse58.71382/.
  6. To share my Project Lighthouse58 - a Node-RED Internet of Things Learning Case using a Raspberry Pi with connected TinkerForge Bricks and Bricklets. Good fun integrating TinkerForge Bricks into LEGO. Communication is based on MQTT. Prototype Control Unit Circuit Lookup http://www.rwblinn.de > IoT > Lighthouse58 or for the detailed PDF document http://www.rwblinn.de/iot/lighthouse58.pdf.
  7. Confirmed - Thanks a Lot.
  8. Hi, while testing the OLED 64x48 MQTT write_line/set, noticed a mismatch between the german and english documentation: german: The text can have a maximum of 14 characters english: The text can have a maximum of 13 characters. The tests showed 14 char length is not working, 13 char length is OK. The same applies for the position 0-12 vs 0-13. Further more number of lines stated 0-5, while testing 0-4 is working and not 0-5. Please verify.
  9. No probs - Thanks a Lot.
  10. Hi, would it be possible to implement write(ln) for the OLED bricklet. Thinking of something like done for the LCD20x4 display. This enables to send text messages to the OLED display. Appreciated
  11. Perfect - Many Thanks.
  12. Hi, kindly request for an answer on this request please.
  13. Hi, noticed that get_port is not exposed in the MQTT Proxy. Are there any plans to include? For the IO-4 several getters are defined. Are these also planned for the IO-16 Bricklet? class BrickletIO4Proxy(DeviceProxy): DEVICE_CLASS = BrickletIO4 TOPIC_PREFIX = 'bricklet/io4' GETTER_SPECS = [('get_value', 'value', 'value_mask'), ('get_configuration', 'configuration', None)]
  14. Thanks a lot for the information and swift reply. Have integrated this into a Node-RED Flow and its working fine. For those interested in Node-RED, look up my website http://www.rwblinn.de > IoT > Node-RED > Category TinkerForge. One of the Node-RED flows uses the Bricklets LCD20x4, Temperature, Humidity, Barometer. Here some screenshots:
  15. Thanks for reply. For MQTT Looked at source brick-mqtt-proxy.py and noticed work in progress (see code snippet). So will wait for an updated brick-mqtt-proxy. Any timelines when special chars will be supported? # FIXME: get_custom_character and get_default_text need special handling class BrickletLCD20x4Proxy(DeviceProxy): GETTER_SPECS = [ ... ] SETTER_SPECS = [ ... (set_custom_character', 'custom_character/set', ['index', 'character']), ... ]
  16. Hi, seeking for an example how to define and write a special character to the LCD20x4 bricklet, f.e. arrow up, using the brick-mqtt-proxy? If possible, also how to do the same via javaScript. Appreciated
  17. Thanks Have added AmbientLight and UVLight (see attachement). Working fine. The TF device identifies can be found www.tinkerforge.com/en/doc/Software/Device_Identifier.html. Next: New LED Bricklet with ability to set the color = will use the LED strip as example. 20160725: Correction to AmbientLight (see attachment) v11.zip
  18. UPDATE Installed: $sudo npm install -g tinkerforge Added to NODE_PATH: $export NODE_PATH=$NODE_PATH:/usr/local/lib/node_modules Installed: $npm install body-parser in the .node-red folder under node_modules Created folder: /home/pi/.node-red/node_modules/node-red-contrib-tinkerforge Copied the lib folder and other files to node-red-contrib-tinkerforge Started node-red TinkerForge nodes available COOL Added the ambientlight (v1) sensor by amending lib/bricklets.js, tinkerforge.js & tinkerforge.html. Again Thanks a Lot = Job Well Done
  19. Great and Thanks a lot. Could you pls advice how to install in Node-RED? Tried npm install node-red-contrib-tinkerforge, but npm can not find the package.
  20. Great hint - Many Thanks.
  21. Appreciated - Thanks
  22. Hi, noticed that the new RGB LED Bricklet is not icluded in the MQTT Proxy. Any information by when the RGB LED Bricklet will be supported. Appreciated.
  23. Solved by using the MQTT proxy as broker on localhost:1883. Defined a simple test flow with: Input Node "MQTT In" subscribing to topic "tinkerforge/bricklet/ambient_light/mdh/illuminance" Function Node JSON to convert MQTT string to javascript object Function Node Function to log the payload properties illuminance and _timestamp Debug Node to log the MQTT payload (which is a JSON string) Looks promising to explore further integration of TinkerForge in Node-RED.
  24. Hi, is there guidance available on how to use the TinkerForge Javascript Bindings in Node-RED. Have tried to define a simple call to an ambilight bricklet in a Node-RED function, but received error 31=timeout. //var Tinkerforge = require('/usr/lib/node_modules/tinkerforge'); var Tinkerforge = context.global.tinkerforge; var HOST = '192.168.0.88'; var PORT = 4223; var UID = 'mdh'; var ipcon = new Tinkerforge.IPConnection(); var al = new Tinkerforge.BrickletAmbientLight(UID, ipcon); ipcon.connect(HOST, PORT, function (error) { node.warn('Connect Error: ' + error); } ); ipcon.on(Tinkerforge.IPConnection.CALLBACK_CONNECTED, function (connectReason) { al.getIlluminance( function (illuminance) { msg.payload = "{\"Illuminance\":" + illuminance/10.0 + "}"; node.warn('Illuminance: ' + illuminance/10.0 + ' Lux'); }, function (error) { msg.payload = "{\"lluminance\":" + error + "}"; node.warn('Get Error: ' + error); } ); } ); ipcon.disconnect(); return msg; Note: defined in node-red settings, after installing tinkerforge via npm: functionGlobalContext: { tinkerforge:require('/usr/lib/node_modules/tinkerforge')
  25. Hi, tried to run on a Raspberry Pi with Master Brick, Wifi Ext 2.0, Ambientlight the ExampleSimple.js. When running from the commandline $node ExampleSimple.js, received error: module.js:340 throw err; ^ Error: Cannot find module 'tinkerforge' The line in ExampleSimple.js not changed: var Tinkerforge = require('tinkerforge'); Installed the javaScript bindings using npm. Steps taken as user Pi with install message. cd /home/pi sudo npm -g install tinkerforge tinkerforge@2.0.9 /usr/lib/node_modules/tinkerforge When adding the full path to require('/usr/lib/node_modules/tinkerforge') it is working. How to setup without the need to add the full path in require. Any help appreciated.
×
×
  • Neu erstellen...