GithubHelp home page GithubHelp logo

grodansparadis / can4vscp-frankfurt-rs232 Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 138.76 MB

CAN4VSCP Frankfurt RS-232 module

Home Page: https://www.grodansparadis.com/frankfurt/rs232/frankfurt-rs232.html

License: Other

C 66.45% Makefile 5.36% C++ 2.55% Assembly 8.13% Prolog 0.26% HTML 13.11% Batchfile 0.02% Pawn 3.83% Shell 0.30%
vscp m2m iot iot-platform pic microchip rs-232 serial-communication

can4vscp-frankfurt-rs232's Introduction

can4vscp-frankfurt-rs232's People

Contributors

grodansparadis avatar

Stargazers

 avatar

Watchers

 avatar  avatar

can4vscp-frankfurt-rs232's Issues

Add "always open" mode.

Scenario 2

  1. The test rig is powered on and the daemon and VSCP Works are started.
    
  2. Events (temperature measurements) are received in the VSCP Client window.
    
  3. The power from the Frankfurt module is powered off and 2 seconds later on.
    
  4. No temperature events are received. // I waited > 10 minutes
    
  5. VSCP Works is closed and the Daemon is restarted.
    
  6. The Daemon reports a driver failure for the Frankfurt module (see attached pic).
    
  7. The Frankfurt module is powered off and the daemon is closed.
    
  8. The Frankfurt module is powered on and the daemon is started. The driver is successfully loaded.
    
  9. VSCP Works is started and the temperature events are received in the client window.
    
  10. The scenario does NOT always happen when I cycle the power on the Frankfurt module.

Hang!?

This happened one time: I tried to enable the DM row with the context menu (a test for the observation above) and I got the update error message. Normally “closing and opening” the Device Configurator fixed the problem. But this time, when I initially tried to update the registers, an error was displayed: Failed to read standard registers of device. When I tried to scan for the devices (through the daemon) no devices where found. But the strange thing is that all events (temperature and buttons) where still received (in the VSCP Sessions window). ???

Attempts to fix this (chronologically:

  1. Restarting VSCP Works did not work.
    
  2. Restarting the daemon resulted in a “Failed to open driver. Will not use it!” message
    
  3. Restarting the daemon resulted in a “Failed to open driver. Will not use it!” message
    
  4. Restarting the daemon resulted in a “Failed to open driver. Will not use it!” message
    
  5. Stopping daemon and cycling the power of the Frankfurt module and restarting the daemon
    
  6. Scan found 2 devices.
    

Possible false reset (Brown out?)

Some observations regarding the disconnected status when a module is powered off/on.

Layout

A Frankfurt module is connected to my computer (COM2).

The Frankfurt is connected with a CAT5 cable to a Beijing module.

The Beijing module is connected to a Kelvin module with a inter module connector.

All three modules are connected a piece of wood (test rig), so all cables are short.

Scenario 1

  1. The test rig is powered on (with a reliable power supply). Daemon and VSCP Works are started.
    
  2. The Kelvin module sends some temperature measurements. Those are visible in a VSCP Client window “connected” to the daemon.
    
  3. I had some strange behavior from the buttons connected to the Beijing module, but basically those events are received to.
    
  4. When I pull the RJ45 connector from the Beijing module this happens:
    

a. Beijing and Kelvin module are powered off.

b. The Frankfurt module stays online.

c. No surprise but: No temperature or button events are received.

  1. When I attach the RJ45 connector, the Beijing and Kelvin modules are powered on.
    
  2. No events are received any more in the VSCP Client window except some heartbeats (not from the modules) and a SEGCTRL_HEARTBEAT. // I waited > 10 minutes
    
  3. If a device scan is performed, no devices are received.
    
  4. When the Frankfurt power is cycled, the situation stays the same.
    
  5. When I restart the Daemon all messages are received.
    
  6. The scenario does NOT always happen when I cycle the power on the Beijing (and Kelvin) module.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.