8000 GitHub - jackzones/ruby-cwmp: A ruby library for parsing and crafting CWMP messages. Includes an ACS server and a CPE simulator.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A ruby library for parsing and crafting CWMP messages. Includes an ACS server and a CPE simulator.

License

Notifications You must be signed in to change notification settings

jackzones/ruby-cwmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby CWMP

A ruby library for parsing and crafting CWMP messages. Includes an ACS server and a CPE simulator.

Crafting CWMP messages

require 'cwmp'

puts Cwmp::Message::inform "Moonar", "130978", "00001", "1 BOOT", "0.0.1"
puts Cwmp::Message::inform_response
puts Cwmp::Message::get_parameter_values ["Device.ManagementServer.", "Device.Time."]
puts Cwmp::Message::set_parameter_values [["InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.Enable", "Enabled"], ["InternetGatewayDevice.LANDevice.1.LANHostConfigManagement.DHCPStaticAddress.1.Enable", "true"]]

Running ACS server

just run acs command on your shell

$ acs

and acs will be up, using thin

Running CPE simulator

type cpe on your shell

$ cpe

and cpe simulator will be up, sending periodic messages every 30s and accepting incoming connection requests

About

A ruby library for parsing and crafting CWMP messages. Includes an ACS server and a CPE simulator.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0