Making changes to the existing services

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Currently I'm working on the CY8CKIT-042-BLE with the User Data Service.

I want to make some changes to the standard service according to out own specifications.

When I add a new characteristic to it, it doesn't generate the same code as when a custom service is created.

This makes it difficult to use the new characteristic because it isn't taken into the generated code.

For now, I made an extra extension service to implement the needed functionality, but it would be preferred to be included into the UDS, as it is more complex to exchange data between the two .

Is there a way to easily extend a service, or should other steps be taken, like the extended service that I made or making the entire service as a custom service?

0 Likes
1 Solution
Anonymous
Not applicable

Yeah, unfortunately I'm not really surprised by that. From what I've seen, the custom services are more of a "low-level-access" kind of implementation rather than a useful API similar to the standard/defined functions.

There is nothing to stop you from implementing code that mimics the structure of the UDS API/code file generation however, so once you setup the constants in a file and include it, it would behave similar (less the event handling )

For my own project, I found it easier to create a new service than to use an implemented one, but to each his own...

Condolences,

Epratt

View solution in original post

0 Likes
3 Replies