HDLC as Character Driver - linux-device-driver

We have a working network interface driver for HDLC protocol. Customer requirement is to have a character driver like UART. Is it possible to re write it as a character driver? Google search gives me this link which from 2000.
Had anyone come across HDLC protocol driver character based?

Related

OPC server create model information from existing nodeset file

I have a task that is create an opc server and instantaneously read data from an injection molding cnc machine with opc client. I have read a lot of documentation and came to a conclusion which I need a model information xml file and create c# classes with a compiler according to the model information file.
I have come across with OPCFoundation/UA-Nodeset repository which has Node Id's that plastic rubber devices shares.(I assume that) There is also a Opc.Ua.PlasticsRubber.IMM2MES.NodeSet2.xml file which is the final ingredient that model compiler produces.
Also I assume when I point my opc server address to the molding cnc device, I will read or machine push data with those spesific nodeIds.(I might be awfully wrong here)
Now the confusion begins here; In the Opc.Ua.PlasticsRubber.IMM2MES.NodeSet2.xml, there are some nodeIds presented. Is the data presented by the molding device published with that nodeIds or those id's are just a unique key for model file? Also when I try to create model information file, nodeId's are different. Is nodeIds should match with the nodeset2.xml?
In the end, I want to read lets say machine status data which nodeId is 5006, should match the model information file which I created in order to get data?
Thank you.
The nodeset in the Companion Specification usually contains only Types (such as ObjectTypes, VariableTypes, etc.) and sometimes an object that serves as an entry point (e.g. DeviceSet of DI). To use these types, you need to create an instance of an object in the address space of your OPC UA server. For example, in your case, the instance might be of the IMM_MES_InterfaceType. The nodes of your instance will have different nodeIds than the types.
As an OPC UA client, you should use the BrowsePath (and the browse service) to locate the correct node in the address space. Once you have the nodeId, you can read or write data from it. In the first step, you can use a generic OPC UA client such as UaExpert for browsing, but it is recommended to implement browsing in your own application. This will allow you to connect to other machines with the same interface.
In think your BrowsePath for the MachineStatus should something like this:
Objects.DeviceSet.IMM_<Manufacturer>_<SerialNumber>.MachineStatus
An example of an plastic rubber devices should be here

lwip: using LWIP_PBUF_CUSTOM_DATA together with socket api

I'm trying to port a project to lwip. This project uses BSD sockets calls, so first, I used lwip's socket APIs.
The project I'm trying to port has to deal with packet timestamping, that's why I used LWIP_PBUF_CUSTOM_DATA as explained here https://savannah.nongnu.org/bugs/?55078
This way I can "enrich" the pbuf structure with metadata fields of my own.
The question is: how do I retrieve my metadata using the socket API? For example how do I get a read pbuf? Or how do I convert the socket to a netconn?

What is Tally query language?

What is Tally query language? I searched online but I didn't get anything on TQL. I got something about Tally definition language. Is there any difference between Tally query language and Tally definition language?
Tally query language:-
it's another name is Natural Query Language acts as an interface between the user and a company connected to Tally Software Services (TSS). Natural Query Language uses queries composed of basic, non-technical, English words.
Tally definition language:-
it's including working with different Units of Measures.it's the application development language of Tally and using the application is build than generate a TCP extension file. That file copy-paste in install location of tally erp 9.
Natural Query Language acts as an interface between the user and a company connected to Tally Software Services (TSS). It is a way of communicating in normal words, following the grammar or syntax of a spoken language. Natural Query Language uses queries composed with basic, non-technical, English words.
To retrieve information from a company connected to Tally[.]net, the user types a query on the mobile phone and sends it to a designated number. Tally.ERP 9 converts the query to a format which the database understands and extracts the required information from the company. The user receives a response with information in a simple format.
Example:
1.Working Capital ( Returns Working Capital)
2.Ledger Kotak Bank Address / Closing Balance / Account Name ( Returns Detailed Ledger of Kotak Bank)
It's called Natural Query Language, and has documentation available here.
Natural Query Language acts as an interface between the user and a company connected to Tally Software Services (TSS). It is a way of communicating in normal words, following the grammar or syntax of a spoken language. Natural Query Language uses queries composed with basic, non-technical, English words.
How It Works
To retrieve information from a company connected to Tally.NET, the user types a query on the mobile phone and sends it to a designated number. Tally.ERP 9 converts the query to a format which the database understands and extracts the required information from the company. The user receives a response with information in a simple format.

how to access a BTLE attribute table from yocto linux

I'm working on interfacing a BTLE peripheral with intel edison. I'm using puTTY for accessing linux environment. So far I have achieved the connection but when I list the attributes, it gives me services and characters with handle values. but I don't have any table to match the handle with respective services. I do have the complete BT protocol of the device so I know the UUID for each service but I don't know which handle is representing which service due to which I cannot configure the registers and read required data. How can I get an attribute table?
What I'm getting on the console is below:
and what I want is something like this sensorTag attribute table:
http://processors.wiki.ti.com/images/a/a8/BLE_SensorTag_GATT_Server.pdf

What is the purpose of setting a client character set when connecting to mySQL in PHP?

Using mysqli I might do:
$mysqli = new mysqli(...);
$mysqli->set_charset("utf8");
I assume that $mysqli->get_charset gets the current setting which is otherwise set by this.
This is the character set used for the client-server connection (PHP to talk to the MySQL server) - not the collation on the database I believe?
What is the significance of this? What is it used for? If there is a chunk of utf8 encoded data being passed from PHP to the MySQL Server (say in an INSERT query) what difference will this setting make? If this setting was latin1 would it matter?
Should it be the same as the collation used in the database?
do you use notepadd++ ? if you can see the images in notepadd ++ in dependence of encode is show "í" ... mysql set_charset work at same
enter image description here
enter image description here