Skip to main content

Universal Adapter Protocol for fast device communication

Project description

RegenNexus UAP

Universal Adapter Protocol - Connect devices, robots, apps, and AI agents with minimal latency and maximum security. MCP-compatible for seamless AI integration.

ReGenNexus Logo

Installation

pip install regennexus

Or with all features:

pip install regennexus[full]

Quick Start

import asyncio
from regennexus import RegenNexusProtocol

async def main():
    protocol = RegenNexusProtocol()
    await protocol.initialize()

    # Register entities
    await protocol.registry.register_entity(
        entity_id="sensor_01",
        entity_type="device",
        capabilities=["temperature", "humidity"]
    )

    # Send messages
    await protocol.send_message(
        sender="controller",
        recipient="sensor_01",
        intent="read",
        payload={"sensors": ["temperature"]}
    )

    await protocol.shutdown()

asyncio.run(main())

Features

Device Support

  • Raspberry Pi - GPIO, PWM, camera, sensors
  • Arduino - Digital/analog I/O, serial commands
  • NVIDIA Jetson - GPU, CUDA, camera, inference
  • IoT Devices - MQTT, HTTP, CoAP protocols

Robotic Arms

  • Amber B1 - 7-DOF control, gripper, trajectory
  • Lucid One - Cartesian control, force sensing, teach mode
from regennexus.plugins import get_amber_b1_plugin

AmberB1 = get_amber_b1_plugin()
arm = AmberB1(entity_id="arm_001", mock_mode=True)
await arm.initialize()

# Move joints
await arm.move_to([0, 45, -30, 0, 90, 0, 0], duration=2.0)

# Gripper control
await arm.open_gripper()
await arm.close_gripper(force=15.0)

Transport Layers

Transport Latency Use Case
IPC < 0.1ms Local processes
UDP Multicast 1-5ms LAN discovery
WebSocket 10-50ms Remote/internet
Message Queue Variable Reliable delivery

Security

  • Encryption: AES-128/256-GCM
  • Key Exchange: ECDH-384
  • Authentication: Tokens, API keys
  • Rate Limiting: Adaptive throttling

AI Integration (MCP)

Control hardware directly from Claude Desktop or any MCP-compatible AI:

# Start MCP server for Claude Desktop
python -m regennexus.mcp_server

Configure in claude_desktop_config.json:

{
    "mcpServers": {
        "regennexus": {
            "command": "python",
            "args": ["-m", "regennexus.mcp_server"]
        }
    }
}

Now ask Claude:

  • "Move the robot arm to pick position"
  • "Turn on GPIO pin 17"
  • "What's the temperature sensor reading?"

LLM Bridge (Ollama, LM Studio)

Connect local LLMs to hardware:

from regennexus.bridges import LLMBridge, LLMConfig

llm = LLMBridge(LLMConfig(provider="ollama", model="llama3"))
response = await llm.chat("Turn on the lights")

Mesh Networking

Auto-discovery across devices on the network:

from regennexus.core import MeshNetwork, MeshConfig

mesh = MeshNetwork(MeshConfig(
    node_id="controller",
    capabilities=["command"]
))
await mesh.start()

# Devices auto-discovered
for peer in mesh.get_peers():
    print(f"Found: {peer.node_id} ({peer.capabilities})")

Interactive Demos

Try RegenNexus in Google Colab:

CLI Usage

# Start server
regen server --host 0.0.0.0 --port 8080

# Run example
regen run examples/robotic_arms/arm_demo.py

# Version info
regen version

Optional Dependencies

pip install regennexus[api]        # FastAPI server
pip install regennexus[mqtt]       # MQTT support
pip install regennexus[robotics]   # Robotic arms
pip install regennexus[arduino]    # Arduino support
pip install regennexus[dev]        # Development tools

Documentation

Examples

examples/
├── simple_connection/    # Basic protocol usage
├── mcp_integration/      # Claude Desktop & LLM demos
├── mesh_network/         # Device auto-discovery
├── llm_integration/      # Ollama/LM Studio demos
├── robotic_arms/         # Amber B1 & Lucid One demos
├── ros_integration/      # ROS 2 bridge examples
├── security/             # Encryption & auth
└── binder/               # Jupyter notebooks

Docker

docker-compose up

See Docker Deployment for details.

Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

License

MIT License - see LICENSE for details.


RegenNexus UAP - Connect Everything, Securely.

Copyright (c) 2024-2025 ReGen Designs LLC

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

regennexus-0.2.4.tar.gz (108.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

regennexus-0.2.4-py3-none-any.whl (132.7 kB view details)

Uploaded Python 3

File details

Details for the file regennexus-0.2.4.tar.gz.

File metadata

  • Download URL: regennexus-0.2.4.tar.gz
  • Upload date:
  • Size: 108.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for regennexus-0.2.4.tar.gz
Algorithm Hash digest
SHA256 790d18aa092d77a8f7601ad3964f6753dcdf636f275d4fd3744a693d6e5455a5
MD5 65a99b112fbe783d2a7c5e5ac3bdfd86
BLAKE2b-256 7842dcc2ff63d596b8a3c7b9342d2001b12adf1100fd45ba08ed1c1fca034e42

See more details on using hashes here.

File details

Details for the file regennexus-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: regennexus-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 132.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for regennexus-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a8d5e291f1e0f0ae0aea555aea5d2aebdc12a55ea69d45c6a9bab4ceeeeb7790
MD5 94326ef1e677b78a37d496a0de91536e
BLAKE2b-256 ed41b5f5e7c4de9bae42eb643b2841d9d1c5e41d063a5309fc37dc61cc9fceba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page