Code Monkey home page Code Monkey logo

apexsim's Introduction

ApexSim

This is a simple APEX3000 simulator.

test case:

char send_buf[1024] = 
{ 
	0x81, 0x01, 0x00, 0x46,		// header
	0x01, 0x02, 0x03, 0xE8,		// TSID
	0x02, 0x06, 0x12, 0x34,		// CMMAC
	0x56, 0x78, 0x9A, 0xBC,		// CMMAC
	0x03, 0x43,					// DBC, len
				0xAB, 0xCD,		// TransactionID
	0x01, 0x01,					// NumberOfFragments, FragmentSequenceNumber
				0x32, 0x20, 	// 50		DSID Encodings
	0x01, 0x03, 0x65, 0x43,		// 50.1		Downstream Service Identifier (DSID)
	0x21, 
		  0x02, 0x01, 0x00,		// 50.2		Downstream Service Identifier Action
	0x04, 0x16,					// 50.4		Multicast Encodings
				0x02, 0x06,		// 50.4.2	Multicast CM Interface Mask bitmap 4FFF00000001
	0x4F, 0xFF, 0x00, 0x00,
	0x00, 0x01, 
				0x03, 0x0C,		// 50.4.3	Multicast Group MAC address Encodings
	0x12, 0x34, 0x56, 0x78,
	0x9A, 0xBC, 0xFE, 0xDC,
	0xBA, 0x98, 0x76, 0x54,
	0x31, 0x1B,					// 49		Receive Channel Configuration (RCC)
				0x01, 0x05,		// 49.1		Receive Channel Profile ID	 0x0010000003 
	0x00, 0x10, 0x00, 0x00,
	0x03, 
		  0x05, 0x12,			// 49.5		Received Channel assigned by CMTS
					  0x01,		// 49.5.1	Receive Channel (RC) Index
	0x07, 0x01, 0x02, 0x03,
	0x04, 0x05, 0x06, 0x07,
	0x04, 0x04, 0x00, 0x0D,		// 49.5.4	Receive Channel Center Frequency
	0x90, 0x38,
				0x05, 0x01,		// 49.5.5	RC Primary DS Channel Indicator
	0x00
};

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.